Content
View differences
Updated by Mir Bhatia almost 2 years ago
When two users reorder sections at the same time, the last user reordering does not get a notification flash.
Here's an example:
* You have sections A, B, C
* Two users Alice and Bob edit the page at the same time
* Alice moves A to the bottom
* shortly after, Bob moves B to the bottom
Alice will receive a notification flash, as there has been _A_ change after their changes
Bob does not receive a notification, as they are the ones doing the newest change.
Alice sees:
* B, C, A and gets the flash
Bob sees:
* A, C, B and _does not see a flash_
When Bob and Alice reload, they see the order
* C, A, B
C,A,B
This is due to the way acts\_as\_list (our list/reordering gem) updates other positions when you call explicit actions on it (such as "move B to Bottom"). We cannot really identify the changes without sending all positions to the backend. This might not be technically feasible.
Here's an example:
* You have sections A, B, C
* Two users Alice and Bob edit the page at the same time
* Alice moves A to the bottom
* shortly after, Bob moves B to the bottom
Alice will receive a notification flash, as there has been _A_ change after their changes
Bob does not receive a notification, as they are the ones doing the newest change.
Alice sees:
* B, C, A and gets the flash
Bob sees:
* A, C, B and _does not see a flash_
When Bob and Alice reload, they see the order
* C, A, B