Add rudimentary conflict prevention to the preview end-point

Created on 29 November 2024, 8 months ago

Overview

Currently we post to /api/preview/{entity_type}/{entity} when the model changes and we need to udpate the preview.
This saves to the auto-save without discrimination.
It is possible that two people may be editing the same entity.
At present each user's changes clobber the other user.

Proposed resolution

Keep a hash or version ID for each auto-save record and fail if the incoming hash doesn't match the currently stored value? When it fails show the user a 'your changes cannot be saved, click to reload latest version' (for now).

In a future version we'll need some sort of conflict resolution

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024