-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Work in Progress) Remove sufia dependency #19
Conversation
72e9b7b
to
29eb41f
Compare
FYI Here the test failures I get when I run the tests on this branch:
|
bc2ebae
to
764d700
Compare
Merging this into master even though there is one remaining failing test so that other work can happen in parallel. The remaining failure is a doozie. CurationConcerns::GenericWork isn't actually including Works::GenericWork and the relationship between CurationConcerns::GenericFile and Batch is at odds with the relationship between CurationConcerns::GenericFile and CurationConcerns::GenericWork. Fixing this breaks a whole lot of tests. The handling of Batches might need to be completely refactored. |
…s and be compatible with sufia
63599b9
to
1b10dfb
Compare
1b10dfb
to
5dea991
Compare
(Work in Progress) Begin Removing sufia dependency
I'm off for the week. If you want to see where I'm at, or push things forward (@kevinreiss, @jcoyne) , here's the rundown:
Broken / Still Needs Work
4 Tests are still failing on the branch. They need attention. Some notes:
Version History
hydra-works is not creating new content versions when you upload a new file, meaning there is no version history. This breaks the features around viewing and restoring revisions
For Example:
rspec ./spec/controllers/curation_concerns/generic_files_controller_spec.rb:214
Derivatives
These tests are marked pending right now (in generic_files_controller_spec), with a reference to samvera/hydra-derivatives#60, which explains the blockage.
Also Need to Revisit/Refactor
ManagesEmbargoesActor#interpret_visibility
This manipulates the actor’s self.attributes. That’s kinda sloppy.
In WW, these methods were chained, so they return true/false. In Sufia they often return other values. Need to reconcile that.
GenericFileActor#update_metadata
WW and Sufia take a very different approach to this step and handle the attributes hash differently. Currently GenericFileActor uses the Sufia approach while GenericWorkActor uses the WW approach. Need to decide which approach to use and make them both use it.
Also need to make sure that embargo_release_date and lease_expiration_date are being applied correctly. I think they are. Just need to double-check.