Answer the question
In order to leave comments, you need to log in
What to read about building a multi-user data editing application?
Good afternoon. We make a web application, something like CRM. There is a company in which, for example, 10 managers. The company has a website with a huge form. WordPress site, form - gravity forms. The client fills out the form and the application comes to the site. And there is a second application site on Laravel + JS, where the data of these completed forms is loaded using the Gravity forms API. This site, in fact, is empty - in the sense that the markup (almost all) and data substitution are generated in JS based on the received endpoint. Roughly speaking, all this data is drawn up in a table. The designated managers can edit and save this table - then the data on the server is overwritten. Moreover, you can edit one single record, or you can select several or all at once - and change this or that field for several records at once.
The problem is this: how to prevent data from being overwritten if, for example, two or more managers accidentally work on the same form? What can you read about this, in which direction at least google?
I hope I have clearly formulated the situation and the problem, but if anything, I can clarify something.
Answer the question
In order to leave comments, you need to log in
Read about co-authoring. ( the first article that came across )
If it's difficult, and the company is small, then make notifications, such as "this file is being edited by Anton Borisov"
or
"while you were editing, this file was changed by Vasily Ivanov
what to do: overwrite, do not save, see the diff"
What can you read about this, in which direction at least google?The main options, on a vskidka, I can offer the following:
when saving the record, update the timestamp.
if the labels of the record in the database and the record from the user who edited it do not match, then the output is that the row has already been edited. further, depending on the required logic.
Based on the error message, it is in the config.php file on the 9th line. On your screen, another file. Attach the correct one.
On the 9th 'name' = 'blog'
Correct: 'name' => 'blog'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question