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
So that servers are able to deal with conflicts from multiple clients performing offline updates, Collect should provide trunkVersion and branchId as part of entity submissions.
Acceptance
Using XForms that include branchId as described in the new spec, the submission resulting from each of these actions satisfy the conditions in each of these scenarios:
Updating a locally created entity
New branchId (UUID)
trunkVersion is blank
baseVersion is the updated entity's version (which will be 1)
Updating an entity in the entity list (an "online" one)
New branchId (UUID)
trunkVersion is entity is the updated entity's version
baseVersion is entity is the updated entity's version
Updating a locally updated entity
Same branchId as the last update submission for this entity
Same trunkVersion as the last update submission for this entity
baseVersion is entity is the updated entity's version
Additionally, XForms that do not behave as the spec describes and set baseVersion, branchId or trunkVersion to unexpected values should not affect Collect. For example, if a form always sets baseVersion to "5" instead of to the provided __version, Collect would still increment __version in its local representation instead of always ending up with "6".
The text was updated successfully, but these errors were encountered:
Blocked by #6267So that servers are able to deal with conflicts from multiple clients performing offline updates, Collect should provide
trunkVersion
andbranchId
as part of entity submissions.Acceptance
Using XForms that include
branchId
as described in the new spec, the submission resulting from each of these actions satisfy the conditions in each of these scenarios:branchId
(UUID)trunkVersion
is blankbaseVersion
is the updated entity's version (which will be 1)branchId
(UUID)trunkVersion
is entity is the updated entity's versionbaseVersion
is entity is the updated entity's versionbranchId
as the last update submission for this entitytrunkVersion
as the last update submission for this entitybaseVersion
is entity is the updated entity's versionAdditionally, XForms that do not behave as the spec describes and set
baseVersion
,branchId
ortrunkVersion
to unexpected values should not affect Collect. For example, if a form always setsbaseVersion
to "5" instead of to the provided__version
, Collect would still increment__version
in its local representation instead of always ending up with "6".The text was updated successfully, but these errors were encountered: