-
Notifications
You must be signed in to change notification settings - Fork 0
feat: イベント参加者のメンバー順を固定する #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements fixed member ordering for event participants by adding a createdAt
field to event reservation users response and sorting by registration datetime. It also improves local development with seed data insertion.
- Added
createdAt
field to event reservation user response structure for consistent member ordering - Updated database query to include registration timestamp and sort by
created_at
ASC - Added comprehensive seed data for local development environment
- Added Makefile improvements and
CLAUDE.md
documentation
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
schema/test/insert_test.sql | Comprehensive seed data for all tables including users, events, reservations, works, groups, and budgets |
pkg/event/get_event_event_id_reservation_id.go | Added CreatedAt field to eventReservationObjectUser struct |
pkg/db/sql/event/select_event_reservation_user_from_event_id_reservation_id.sql | Updated query to include created_at field and ORDER BY created_at ASC |
pkg/api/spec.gen.go | Generated API specification update with new field |
pkg/api/models.gen.go | Generated model with CreatedAt time.Time field |
document/schemas/res_get_event_event_id_reservation_id.user.yml | Added createdAt field definition to OpenAPI schema |
document/bundle.gen.yml | Generated bundle with createdAt field |
document/bundle-develop.gen.yml | Generated develop bundle with createdAt field |
Makefile | Fixed pipe syntax for insert_test command and added UTF-8 charset |
CLAUDE.md | Comprehensive documentation for Claude Code usage in Japanese |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Name string `db:"username"` | ||
UserIcon string `db:"icon_url"` | ||
UserId string `db:"user_id"` | ||
UserName string `db:"username"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db:"username"
と紐付くプロパティが Name
と UserName
の2つになっている点が気になります
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!修正しました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close #213
変更内容
createdAt
フィールドを追加し、登録日時順でソートするよう改修make insert_test
でシードデータを投入可能CLAUDE.md
を追加