OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Implement a locking mechanism for editing the shared entities in bundles. #1504

Open adelmemariani opened 6 months ago

adelmemariani commented 6 months ago

Description of the issue

Certain entities within bundles are shared among multiple bundles. For example "Institutions" or "Contact person". As a result, multiple users can edit these entities simultaneously. This could potentially result in updates that are not consistent.

Ideas of solution

A locking mechanism that prevents simultaneous updates and only allows one update at a time based on a timeout. See below: Screenshot 2023-12-11 at 16 25 31

Workflow checklist