'Save' on Edit Properties mutates objects multiple times for a single property change #5616
Closed
2 of 7 tasks
Labels
Milestone
Summary
Whenever the 'Save' (OK) button is clicked on the Edit Properties dialog, a separate mutation event is fired for each editable object property even if only for a single property change. This has performance and persistence implications when using an external persistence such as CouchDB. This also means that editing a single object property will cause multiple revisions of the object to register in CouchDB.
I believe this is ultimately leading to a lot of bugs related to editing properties (#5398, #5533 , partially #5138).
The behavior was modified in #4947, here, to use multiple
mutate()
calls instead of a singlesave()
so that observers could listen on specific property changes.Expected vs Current Behavior
Current: On hitting 'Save' in the Edit Properties dialog, objects are mutated once for each editable property regardless of whether or not their values have changed.
Expected:
Steps to Reproduce
This is easiest to see while using CouchDB plugin.
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: