-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixed ListField deletion bug. #1318 #1435
Conversation
Thanks for this @JohnAD! Could you add a unit test and confirm it fails w/o your patch? |
@JohnAD I think you need to rebase against the latest master. |
I will rebase. In fact, if you are okay with it, I would like to add comprehensive tests for all relevant list operators (other than those being tested already). I'll probably label the functions |
Sounds great! The more coverage the better :)
…On Thu, Dec 15, 2016 at 12:34 AM John Dupuy ***@***.***> wrote:
I will rebase and add the unittest code. In fact, if you are okay with I,
I would like to add comprehensive tests for all relevant list operators
(other than those being tested already). I'll probably label the functions
test_list_field_manipulative_operators and
test_list_field_lexographic_operators. It will delay things only by a day
or so.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1435 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABo4ZPCEa91d0gCy1XLMxLhz6hQw5KWlks5rINFWgaJpZM4LLD_V>
.
|
Should be ready. |
Thank you @JohnAD. The diff still shows code changes unrelated to this PR. Can you rebase against the upstream master? |
That is odd. Did another rebase from master of this repo. Is it clean now? |
Yup, still an issue. Do you see the same commit history I'm seeing? Try this:
|
The BaseList supported the __delitem__ operator in a manner similar to DictList, however the key to a list is an index rather than unique key. MongoDB does not support pulling from an array by index; therefore the entire list must be marked as changed. MongoDB reference: https://jira.mongodb.org/browse/SERVER-1014
That is, IIRC, how I did the rebase with upstream. This time, I actually encountered circular merge conflicts on the very changes that I made. Odd. This time I did a |
This is great! Thank you for a comprehensive set of tests and for all the back-and-forths @JohnAD ! |
Fixes #1318
The BaseList supported the delitem operator in a manner
similar to DictList, however the key to a list is an index rather
than unique key. MongoDB does not support pulling from an array
by index; therefore the entire list must be marked as changed.
MongoDB reference: https://jira.mongodb.org/browse/SERVER-1014