-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't attempt to save
AF::WithMetadata::MetadataNode#file_hash
`ActiveFedora::WithMetadata::MetadataNode` provides a `#file_hash` attribute, but writing to it, even with the existing data, prevents all saves. Wings needs to map data in and out of this class freely, and this attribute functions as a honeypot. it baits Wings to preserve the data, and then fails save when the converters try to do keep the existing data. since any attempt to write this data will break save, ActiveFedora should treat it as read only. never include `MetadataNode#file_hash` in changed attributes lists when Wings is loaded.
- Loading branch information
tamsin johnson
committed
Jan 11, 2022
1 parent
6bcbec0
commit f0b067b
Showing
2 changed files
with
29 additions
and
0 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