FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WIP refactor!: gorm V2 by remyoster · Pull Request #644 · pathwar/pathwar · GitHub

WIP refactor!: gorm V2 - #644

Open
remyoster wants to merge 7 commits into
pathwar:masterfrom
remyoster:dev/roster/gorm_v2
Open

WIP refactor!: gorm V2#644
remyoster wants to merge 7 commits into
pathwar:masterfrom
remyoster:dev/roster/gorm_v2

Conversation

remyoster commented Mar 11, 2021
edited by moul-bot
Loading

Copy link
Copy Markdown

No description provided.

Comment thread go/pkg/pwdb/db.go
Comment thread go/pkg/pwdb/migrations.go
Comment thread rules.mk

moul commented Mar 11, 2021

Copy link
Copy Markdown
Member

except for the few comments, it looks very good!

remyoster force-pushed the dev/roster/gorm_v2 branch 3 times, most recently from 9f7081f to 501c021 Compare March 12, 2021 13:25
Comment thread go/cmd/pathwar/api.go
remyoster force-pushed the dev/roster/gorm_v2 branch from 501c021 to 7854dee Compare March 12, 2021 13:29
Comment thread api/pwdb.proto
Comment on lines +189 to +193
// belongs to
int64 user_id = 200 [(gogoproto.customname) = "UserID", (gogoproto.moretags) = "gorm:\"index\""];
User user = 201 [(gogoproto.moretags) = "gorm:\"foreignKey:UserID;references:ID\""];
// has one
User active_user = 202 [(gogoproto.moretags) = "gorm:\"foreignKey:ActiveTeamMemberID;references:ID\""];

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ForeignKey constraint fails here -> need to investigate or
maybe need to rethink the model association and use a enum to mark a team_member as the active one ?

Comment thread go/pkg/pwdb/db.go Outdated
Comment thread go/cmd/pathwar/api.go Outdated
remyoster force-pushed the dev/roster/gorm_v2 branch 2 times, most recently from 8ed5714 to 73d0b40 Compare March 31, 2021 09:36
Comment thread go/pkg/pwdb/errors.go Outdated
Comment thread go/pkg/pwdb/helpers.go
moul mentioned this pull request Apr 15, 2021
Z-a-r-a-k-i mentioned this pull request Apr 25, 2021
moul force-pushed the dev/roster/gorm_v2 branch from d081dbc to ebcd571 Compare June 27, 2021 10:28
trafico-bot Bot added the 🚧 WIP Still work-in-progress, please don't review and don't merge label Jun 27, 2021
moul-bot force-pushed the dev/roster/gorm_v2 branch 2 times, most recently from a35ed7a to baec25f Compare February 4, 2022 22:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change 🚧 WIP Still work-in-progress, please don't review and don't merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL