Reload Cloud Config param before updating #2567
Labels
bounty:$20
Bounty applies for fixing this issue (Parse Bounty Program)
type:feature
New feature or improvement of existing feature
New Feature / Enhancement Checklist
Current Limitation
When updating the value of a Cloud Config param, the value may have been updated between the time of loading the Cloud Config page and the time of sending the update to the server. This causes any updates made within that timespan to be overwritten.
Feature / Enhancement Description
Before updating a Cloud Config param reload the current value from the server and compare it with the previous value that will be overwritten. If the current value provided by the sever is different than the previous value stored locally by the dashboard, then show a warning message that changes will be overwritten.
This doesn't prevent edge cases like a race condition, in which a value change occurs between the dashboard fetching the current value from server and sending the updated value to the server. This is really on possible with atomic updates.
Example Use Case
The text was updated successfully, but these errors were encountered: