-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support optimistic locking for
ResourceForm
introduces a field and prepopulator for the (maybe confusingly named?) `version` virtual attribute. `Hyrax::WorkForm` implements this by calling `model.etag`, but we don't have that luxury here (since non-fedora backed valkyrie may not have an etag at all). the logic added here is specific Wings adapter, pulling out the etag for compatibility. it's probably okay to keep this wings-specific indefinitely. other adapters should support optimistic locking internally (indeed, so does Wings) so we can phase out application-layer lock validation in favor of leaning on Valkyrie/backend datastore features.
- Loading branch information
tom johnson
committed
May 26, 2020
1 parent
812bb89
commit 1d66c92
Showing
3 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters