Using Geysir in multiple windows can set the node back to an earlier revision

Created on 14 October 2024, 2 months ago

Problem/Motivation

When editing a node in multiple windows or when multiple people are editing on the same node on their own machines through Geysir, it's possible for the node to be set to a revision which is no longer the latest, disabling Geysir on that specific node.

Steps to reproduce

1. Open a node in 2 separate windows
2. Edit one of the paragraphs through Geysir on window 1 and save.
3. Edit one of the paragraphs through Geysir on window 2, without refreshing the page after the previous step and hit save.

Now the node which was being edited will be set to an older revision of the node and Geysir is no longer able to be used on this page as the node is no longer on the latest revision.

Proposed resolution

Create an exception in the code which makes sure the latest revision of the node is used when updating a paragraph to avoid disabling Geysir.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇧🇪Belgium fcobbaert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024