-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
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.
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.
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:complete! all files reviewed, all discussions resolved
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.
Uid values are now overwritten by default.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain)
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)
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