Skip to content
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

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

hongalex
Copy link
Collaborator

What type of PR is this?

/kind refactor

What this PR does / Why we need it:

For Stores and Records, Create and Update methods should return the newly created resource. While the RPC is already following
this 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:

@hongalex hongalex requested a review from yuryu August 31, 2020 22:55
Copy link
Member

@yuryu yuryu left a 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.

@yuryu
Copy link
Member

yuryu commented Sep 1, 2020

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.

@hongalex hongalex changed the title refactor: make create/update methods return new resource fix: make create/update methods return new resource Sep 1, 2020
@hongalex hongalex requested a review from yuryu September 1, 2020 18:45
Copy link
Member

@yuryu yuryu left a comment

Choose a reason for hiding this comment

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

lgtm

@hongalex hongalex merged commit 612aa55 into master Sep 1, 2020
@hongalex hongalex deleted the fix-create-update branch September 1, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants