[Cosmo-dev] another issue with items in multiple collections

Morgen Sagen morgen at osafoundation.org
Tue Aug 7 11:45:48 PDT 2007


On 8/7/07, Randy Letness <randy at osafoundation.org> wrote:
> I seem to be using this subject a lot.
>
> Bug 10212 describes the issue:
> https://bugzilla.osafoundation.org/show_bug.cgi?id=10212
>
> To summarize:
>
> 1. create collection 1, add item A
> 2. create collection 2, add item A
> 3. publish collection 1
> 4. publish collection 2
> 5. remove item A from collection 1
> 6. sync collection 1 --> item A re-appears
>
> This is occurring because the sync operation involves getting all the
> updated records since the last sync (the publish in this case).  When
> collection 2 was published, it included the recordset for item A so the
> server assumes A has changed.  When collection 1 is synced, these
> changes are sent back before the client sends the deletions and these
> changes override the deletions and the recordset deletions never get
> sent to the server.
>
> I think this is just Chandler's policy, that is server changes always
> override local changes.

A remote update to a local removal is the only case in which a server
change overrides a local change.  Any other conflict goes through
Chandler's conflict resolution framework.  I did it this way because
there isn't a UI affordance at the moment to indicate that a locally
removed item has been changed on the server, and undoing the removal
errs on the side of no-data-loss.  Post preview we could certainly
revisit this.  Mimi, can you give some input as to what you would like
the user experience to be for an item that has been locally removed
but remotely modified?

~morgen


More information about the cosmo-dev mailing list