You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When removing documents from a collection, the document changes for those removed documents contain the wrong value for the newIndex. The code states it should be equal to NSNotFound, however it's returning -1 which gets converted to 4294967295.
It's worth noting that oldIndex returns the correct value of NSNotFound.
Steps to reproduce:
Add a document to a collection.
Remove the document.
View the newIndex of that document withing document changes.
The text was updated successfully, but these errors were encountered:
It looks like we broke this in #2608 and there's apparently no test that validates these values. For now the workaround would be to test if the value is >= NSNotFound. We'll put together a fix in the meantime.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
When removing documents from a collection, the document changes for those removed documents contain the wrong value for the
newIndex
. The code states it should be equal toNSNotFound
, however it's returning-1
which gets converted to4294967295
.It's worth noting that
oldIndex
returns the correct value ofNSNotFound
.Steps to reproduce:
newIndex
of that document withing document changes.The text was updated successfully, but these errors were encountered: