PRX / feeder.prx.org

Dovetail podcast content management system
https://podcasts.dovetail.prx.org
GNU Affero General Public License v3.0
5 stars 0 forks source link

Optimistic locking #1006

Closed cavis closed 3 months ago

cavis commented 3 months ago

Closes #1000.

Adds optimistic locking to UI updates only. This avoids locking a bunch of browser-forms every time an async worker callback touches a record. (Turns out, rails lock_versions bubble up, along with the updated_at timestamps we use to break caches).

If a user updates a form and it's been edited by someone else in the interim, throw up a warning. Which lets them either discard their changes or manually confirm they want to overwrite.

Added to the pages:

image