You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are multiple users updating the same configuration at the same time, no change must be ignored or overridden without explicit user action.
Assuming there are two users:
User A
User B
opens config
opens config
submits changes
submits changes
succeeds
fails
If the update fails, the user must be informed about it. In addition, the new configuration values should be shown in a message at the top of the form.
Tasks
Add a new validator to ConfigForm (You may need to extend method isValid() to achieve this as it should be a validator for the entire form)
Preparations
Goal
If there are multiple users updating the same configuration at the same time, no change must be ignored or overridden without explicit user action.
Assuming there are two users:
If the update fails, the user must be informed about it. In addition, the new configuration values should be shown in a message at the top of the form.
Tasks
ConfigForm
(You may need to extend methodisValid()
to achieve this as it should be a validator for the entire form)hash
for the configuration's scope and compare it against the one sent in the form data (That's a task of AdjustConfigForm
to write configurations to database #4779)FOR UPDATE
)$this->warning
) and list the new options thereHints
You can fake another user by running a transaction on the database in the console with a sleep in it:
The text was updated successfully, but these errors were encountered: