-
Notifications
You must be signed in to change notification settings - Fork 0
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
TeamDetail.MembersをTeamに移した #484
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.
一部レビューしました
テストがコンパイルに失敗してそうです
…o breaking/move_members_into_team
Codecov ReportAttention:
... and 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
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.
感謝🙌
codecov見るとGetのどのテストもメンバーが入ってなさそうなので適宜メンバー入れてくれると助かります🙏
あとlintの修正もお願いします!
…o breaking/move_members_into_team
失敗してるテスト見るとわかるんですが、membersがnilになってるとこは空配列にして欲しいです🙏 |
…o breaking/move_members_into_team
…o breaking/move_members_into_team
@0214sh7 ここMembers追加し忘れてます traPortfolio/interfaces/repository/user_impl.go Lines 541 to 551 in 2c359ca
|
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.
いくつか🙏
…o breaking/move_members_into_team
マージまじでしんどすぎてマージ・マジ・マジーロ |
makeUserNameMapくんが何者なのかよくわかってません、何を引数とするmapですかこれ
traPortfolio/interfaces/repository/contest_impl.go Lines 585 to 597 in 2ab1502
|
traQ ID = user.Nameですね |
…o breaking/move_members_into_team
interfaces/handler/contest_test.go
Outdated
Name: random.AlphaNumeric(), | ||
Result: random.AlphaNumeric(), | ||
}, | ||
Members: make([]*domain.User, 0), |
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.
ここメンバー1つでもいいので入れ他方がよさそう
interfaces/handler/contest_test.go
Outdated
Name: random.AlphaNumeric(), | ||
Result: random.AlphaNumeric(), | ||
}, | ||
Members: make([]*domain.User, 0), |
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.
ここも
interfaces/handler/contest.go
Outdated
contestTeams := make([]schema.ContestTeam, 0, len(contest.ContestTeams)) | ||
for _, team := range contest.ContestTeams { | ||
contestTeams = append(contestTeams, newContestTeam(team.ID, team.Name, team.Result)) | ||
contestTeams = append(contestTeams, newContestTeam(team.ID, team.Name, team.Result, []schema.User{})) | ||
} | ||
res := newContestDetail(newContest(contest.ID, contest.Name, contest.TimeStart, contest.TimeEnd), contest.Link, contest.Description, contestTeams) |
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.
作成時はチームがないのでここら辺の記述はいらないかも
interfaces/handler/contest_test.go
Outdated
Name: random.AlphaNumeric(), | ||
Result: random.AlphaNumeric(), | ||
}, | ||
Members: make([]*domain.User, 0), |
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.
いいと思います!感謝
#470