formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
643 stars 471 forks source link

formio.saveForm - while concurrently many users doing save form #330

Closed padhumailin closed 9 months ago

padhumailin commented 5 years ago

Any customization to a form requires to call formio.saveForm once changes is done. I believe this is updating the form definition overall. how the concurrent update affect while viewing the form.

travist commented 5 years ago

I do not understand your question. Do you mind rewording?

bh-adrienne commented 4 years ago

@padhumailin seeing as my team has run into this I will give you my answer (as a customer, I'm not with Form.io): when my and my team are both in Form.io, working on a form, and we click save, it overwrites whatever the other person was doing. Form.io does not handle 2 users concurrently working on the same data (whether that be a form or a saved submission).

However, Form.io backend DOES have the ability to turn on version control for a form if you are an Enterprise user. Perhaps you could implement some kind of "pre save" check before you call "saveForm" that checks that you are only incrementing the version by 1 and then prevents the save until the user refreshes the form first? Obviously more advanced version control concepts like merging or updating would be amazing (proposed solutions to the general problem are well detailed here: https://stackoverflow.com/questions/3564877/how-do-you-manage-concurrent-access-to-forms), but Form.io doesn't have any of them right now.

daneformio commented 9 months ago

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!