I have gone through the docs for conflict management. I would like to know what happens in this case:
Case 1:
- User A creates doc AAA with a revision 1-aaa.
- User B gets the doc AAA with revision 1-aaa.
- User A goes offline.
- User B goes offline.
- User B updates the doc AAA with revision 2-bbb.
- User B updates the doc again with revision 3-ccc.
- User A updates the doc AAA with revision 2-ddd.
- User B goes online. Doc AAA is synced with gateway. Latest revision of doc AAA is 3-ccc
- User A goes online.
- Which revision will user A have of doc AAA? 3-ccc? or conflict? Is there a conflict if not the latest revision is in conflicting mode(i.e 2-bbb and 2-ddd)?
Case 2:
- User A creates doc AAA with a revision 1-aaa.
- User B gets the doc AAA with revision 1-aaa.
- User A goes offline.
- User B goes offline.
- User B updates the doc AAA with revision 2-bbb.
- User B goes online. Doc AAA is synced with sync gateway.
- Sync Gateway webhooks the document for quality check. It updates the document with proper formatting with revision id 3-ccc.
- User B gets the latest update of doc AAA 3-ccc.
- User A updates the doc AAA with revision 2-ddd.
- User A goes online.
- Which is the latest revision of doc AAA? Is there a conflict? Will user A get the 3-ccc ignoring 2-ddd? If there will be conflict, than getting conflicted revisions gives me doc 3-ccc, or only 2-bbb and 2-ddd?