-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: make create/update methods return new resource #112
Conversation
fe4a62c
to
a2280ae
Compare
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.
Overall looks good, just left some comments for the tests to make sure we're checking against the added code.
Also I think this is more of a bug fix or feature request rather than a refactor as it changes the behavior of the program. |
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.
lgtm
What type of PR is this?
/kind refactor
What this PR does / Why we need it:
For
Stores
andRecords
,Create
andUpdate
methods should return the newly created resource. While the RPC is already followingthis best practice, the underlying methods in
metadb
and its implementations are not following this.Which issue(s) this PR fixes:
Closes #
Special notes for your reviewer: