-
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
List value returned for a non-list uid predicate #4879
Comments
This is related to: https://discuss.dgraph.io/t/mutation-doesnt-update-value/6046 |
ugh. So it looks like there used to be a check that would prevent you from adding multiple uids. This check was removed in 45a6d5b but the values are not being correctly overwritten. I think the code worked when I introduced this feature but it depended on this check and there was not a regression test so we didn't notice when the feature broke. Two action items.
|
It looks like 1.2 and 1.2.1 are the only releases affected. |
When the warning to delete and re-add the value was removed, non-list uid predicates were not being overwritten. This fixes this by iterating over the list and replacing theexisting postings with a copy with the operation set to a delete. It also adds a test to prevent this from happening again. Fixes #4879
When the warning to delete and re-add the value was removed, non-list uid predicates were not being overwritten. This fixes this by iterating over the list and replacing theexisting postings with a copy with the operation set to a delete. It also adds a test to prevent this from happening again. Fixes #4879
What version of Dgraph are you using?
latest:master
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
doesn't matter
Steps to reproduce the issue (command/config used to run Dgraph).
dgraph zero
dgraph alpha
Expected behaviour and actual result.
Post1
should haveAuthor2
as its only author, but it gives bothAuthor1
andAuthor2
.The text was updated successfully, but these errors were encountered: