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

(DOCSP-33212): Updating an IQF value from device causes a compensating write #646

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/sync/configure/sync-settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ if your indexed queryable field is ``store_id``, the client cannot change
this value directly. Changing it from the client is not supported because
it may conflict with other updates made to the object in the same timeframe.

If you attempt to change an indexed queryable field's value on the device,
this triggers a compensating write error. For more information about this
error and the behavior it entails, refer to ``ErrorCompensatingWrite`` in
the :ref:`flexible-sync-errors` documentation.

You can still change this value directly in the Atlas database.

.. warning::
Expand Down
2 changes: 2 additions & 0 deletions source/sync/error-handling/errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ The following errors may occur when your App uses :ref:`Flexible Sync
does not have write permissions to.
- Modifying an object in such a way that client would no longer have
write permissions on that object or field after the write.
- Updating an existing object's :ref:`indexed queryable field <fs-indexed-queryable-fields>`
Copy link
Collaborator

Choose a reason for hiding this comment

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

While you're in here, can we add periods to all of these bullets for consistency?

value.

Because the local realm has no concept of "illegal" writes, the write
will always succeed locally. Upon sync, the server will notice the
Expand Down
Loading