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

Allow overwriting values of predicates of type uid #4411

Merged
merged 5 commits into from Dec 19, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Dec 13, 2019

When introducing the single uid type, mutations to those predicates were
disallowed to prevent existing users from losing data due to the change
in syntax.

This PR changes the behavior to allow values to be overwritten directy instead
of requiring a delete and an add operation.


This change is Reviewable

When introducing the single uid type, mutations to those predicates were
disallowed to prevent existing users from losing data due to the change
in syntax.

This PR introduces a flag to override that behavior and allow values to
be overwritten directy instead of requiring a delete and an add
operation.
@martinmr martinmr requested review from manishrjain and a team as code owners December 13, 2019 20:26
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

How about skipping the flag? And changing the behavior slightly? That's what we do for setting string values and all, right?

Reviewed 5 of 5 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor Author

@martinmr martinmr left a comment

Choose a reason for hiding this comment

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

Uid values are now overwritten by default.

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain)

@martinmr martinmr changed the title Allow overwriting values of predicates of type uid via a flag. Allow overwriting values of predicates of type uid Dec 18, 2019
@martinmr martinmr merged commit 45a6d5b into master Dec 19, 2019
@martinmr martinmr deleted the martinmr/overwrite-uid-flag branch December 19, 2019 00:01
danielmai pushed a commit that referenced this pull request Jan 12, 2020
When introducing the single uid type, mutations to those predicates were
disallowed to prevent existing users from losing data due to the change
in syntax.

This PR changes the behavior to allow values to be overwritten directy instead
of requiring a delete and an add operation.

(cherry picked from commit 45a6d5b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants