-
Notifications
You must be signed in to change notification settings - Fork 126
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
DEVPROD-10201: Improve mapping between GraphQL User type and APIDBUser struct #8340
Conversation
rest/model/generated.go
Outdated
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.
this is legacy generated code but according to the comments manual edits are allowed? The legacy codegen tool was already removed from Evergreen a while ago DEVPROD-971
dbUser := restModel.APIDBUserToService(toUpdate) | ||
|
||
dbUser, err := toUpdate.ToService() | ||
if err != nil { |
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.
nit: nil check dbUser
restModel "github.com/evergreen-ci/evergreen/rest/model" | ||
"github.com/evergreen-ci/utility" | ||
) | ||
|
||
// ParsleyFilters is the resolver for the parsleyFilters field. |
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.
Is this removal intended? Was the removal generated?
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.
DEVPROD-10201
Description
I noticed that the way in which we process a
User
in GraphQL doesn't follow the patterns we have elsewhere. This PR updates the logic aroundAPIDBUser
which is the underlying model forUser
in GraphQL.Testing
/graphql
sandbox