Releases: samvera-deprecated/curation_concerns
v2.0.0
Data Migration Required
In this release, Curation Concerns flips the collection relationship such that the collection is stored on a curation_concern; collections no longer keep a member list. This mitigates some performance issues coming from the upstream fedora repository software. It also makes a 'collections' facet much easier to implement.
Use the provided rake task to migrate your data after updating, e.g.:
rake curation_concerns:migrate:collections RAILS_ENV=production
Changes since v1.7.6
(I've tried to remove commits that have been backported to 1.7-stable)
2017-04-20: Bump version to 2.0.0 [Anna Headley]
2017-04-12: Relax redlock dependency [Adam Wead]
2017-04-10: Fix task definition to use :environment [Anna Headley]
2017-03-30: Add a test for collections migration task [Anna Headley]
2017-03-29: Add collection migration task [Anna Headley]
2017-03-29: Bump version to 2.0.0 RC2 [Anna Headley]
2017-04-10: Fix intermittently failing view spec [Anna Headley]
2017-03-30: remove unnecessary opts assignment [Nestor Walker]
2017-02-16: allow password protected redis servers [Nestor Walker]
2017-03-22: travis: run redis during tests [Alex Dunn]
2017-03-22: jobs: lock FileSets while attaching Files [Alex Dunn]
2017-03-16: Removing an exclusion for a non-existent file [Jeremy Friesen]
2017-03-10: Update the default workflow to allow_access_grants [Justin Coyne]
2017-03-08: Preserve additional editors when creating works [Glen Horton]
2017-02-09: Better error message for an etag conflict [Justin Coyne]
2017-01-13: Stop add_as_member_of_collections_actor from removing works from
other users' collections fixes samvera-deprecated/sufia#3011 [Anna Headley]
2017-01-02: Change ActiveFedora dependency to disallow 10.3.0-rc* [Tom Johnson]
2017-01-05: Index the file size as a long. Fixes #1117 [Justin Coyne]
2016-12-22: Bump version to 2.0.0 RC1 [Trey Pendragon]
2016-12-15: Fix documentation [GitHub]
2016-12-12: Remove dead code [Justin Coyne]
2016-12-08: Moving member_of_collection_presenters check to parent view [Esmé
Cowles]
2016-12-08: Addressing code review comments [Esmé Cowles]
2016-07-28: Reversing membership to improve performance: Works now use
member_of_collections to link to Collections [Esmé Cowles]
Version 1.7.0
Changes
2016-12-09: Bump version to 1.7.0 [Justin Coyne]
2016-12-05: Render the unavailable template w/ a friendly message if user cannot
act on the work in its current workflow state [Michael J. Giarlo]
2016-12-05: Avoid using deprecated method to_class_uri [Justin Coyne]
2016-12-05: Collections should use their own single_item search builder [Michael
J. Giarlo]
2016-11-15: Suppress deactivated objects in search results [Michael J. Giarlo]
2016-11-30: Reverting to shortened path, but adding full id as last directory to
ensure uniqueness [Esmé Cowles]
2016-10-24: Adds route, controller action, presenter, and view for inspect_work
[Randall Floyd]
2016-11-30: Locking jquery-ui-rails to avoid build failure with v 6.0 [Esmé
Cowles]
2016-11-29: Removing length limit on identifier PairTree path [Esmé Cowles]
2016-11-28: Remove 2 comments and an unnecessary configuration [Joe Atzberger]
2016-11-23: YARD and a default search_builder_class
[Joe Atzberger]
2016-09-02: Bump underlying requirement [Joe Atzberger]
2016-11-22: Backstop browse-everything version [Joe Atzberger]
2016-09-06: A big README.md for SearchBuilders [Joe Atzberger]
2016-11-23: Rework collection_search_builder to align w/ SB conventions [Joe
Atzberger]
2016-11-22: Break out rescue_from blocks to named methods [Joe Atzberger]
2016-08-29: Remove duplicate methods in EmbargoService [Joe Atzberger]
2016-11-17: CC should not use Sufia routes or i18n keys [Justin Coyne]
2016-11-18: the rights_modal partial was dead code [Justin Coyne]
2016-11-17: CC should not use Sufia routes or i18n keys [Michael J. Giarlo]
2016-11-16: Add a built in function to grant edit access to the depositor
[Justin Coyne]
2016-11-16: Add a built in function to grant edit access to the depositor
[Justin Coyne]
2016-11-16: Bump version to 2.0.0.alpha [Justin Coyne]
2016-11-16: Bump version to 1.7.0.beta1 [Justin Coyne]
2016-11-15: Fix route for permissions exception [Justin Coyne]
2016-11-15: Prefer local_prefixes over private _prefixes method [Justin Coyne]
2016-11-14: Remove stale and unused target from link [Michael J. Giarlo]
2016-11-14: Create 0-step default workflow. Fixes #1035. [Michael J. Giarlo]
2016-11-14: Remove the hint for file uploads [Justin Coyne]
2016-11-08: Change subject.agent to subject.user [Justin Coyne]
2016-11-04: Start workflow with an action [Justin Coyne]
2016-11-08: Allow groups to be cast to Sipity::Agents [Justin Coyne]
2016-11-07: url_for_document should return a routable entity, not a string
[Justin Coyne]
2016-11-04: Stub notification service class and remove default from template
(until we have a notification class to ship) [Michael J. Giarlo]
2016-11-04: Quiet, Travis [Michael J. Giarlo]
2016-11-04: Workflow schemas should use Ruby constants as notification names
[Michael J. Giarlo]
2016-11-02: Bump version to 1.7.0.alpha [Justin Coyne]
2016-10-31: Extract a service that gets you the form for a work type [Justin
Coyne]
2016-10-31: Allow dependency injection for the search builder on the
AdminSetService [Justin Coyne]
2016-10-28: Workflow is now separate from work type [Justin Coyne]
2016-10-28: Set label and description for workflow [Justin Coyne]
2016-10-28: Change the work_types key to workflows [Justin Coyne]
2016-10-27: Stop spamming IRC with Travis builds [Michael J. Giarlo]
2016-10-25: Add RSpec module so that it works without monkey patching [Justin
Coyne]
2016-10-24: Use standard bootstrap components for the admin dashboard [Chris
Beer]
2016-10-18: Change when AF::Noid is required so it doesn't break in production
mode. [Michael J. Giarlo]
2016-10-24: Dependency injection for the workflow strategy [Justin Coyne]
2016-10-19: Update data-no-turbolink to data-turbolinks="false" [Tom Johnson]
2016-10-19: Add _blank
target to "Download this File" link [Tom Johnson]
2016-10-19: Replace href target "_new" with "_blank" [Tom Johnson]
2016-10-19: Disable turbolinks on file download links [Tom Johnson]
2016-10-19: UI for adding workflow roles. Fixes #1037 [Justin Coyne]
2016-10-18: Use the actor stack to grant edit access to depositors [Justin
Coyne]
2016-10-18: Return no results if user has no workflow roles [Justin Coyne]
2016-10-14: Query solr for the list of workflow items needing attention [Justin
Coyne]
2016-10-12: Adding LicenseService dependency injection [Justin Coyne]
2016-10-13: Add a built in workflow callback to remove depositor edit access.
Fixes #1049 [Justin Coyne]
2016-10-13: Add a built in deactivate function for workflow [Justin Coyne]
2016-10-13: Add ActivateObject workflow callback [Justin Coyne]
2016-10-12: Save after running callback methods [Justin Coyne]
2016-10-12: Run configured workflow callback methods. Fixes #1023 [Justin Coyne]
2016-10-12: Adding spec for QaSelectService [Jeremy Friesen]
2016-10-11: Expand roles to users. Fixes #1051 [Justin Coyne]
2016-10-11: i18n workflow on admin page [Justin Coyne]
2016-10-10: Drop the REASON_ENTERED_STATE, we aren't using it [Justin Coyne]
2016-10-10: Fleshed out NotificationService [Justin Coyne]
2016-10-09: Handle nil assignment of file_set_params [Mike Korcynski]
2016-10-06: Make assign_visibility work with symbol hash keys [Mike Korcynski]
2016-10-01: Adding link to README for workflow [Jeremy Friesen]
2016-09-30: Fixing scope_processing_agents_for query [Jeremy Friesen]
2016-09-30: Appeasing the Rubocop [Jeremy Friesen]
2016-09-30: Replacing confusing query with more explicit none [Jeremy Friesen]
2016-09-30: Adding a default for the action name [Jeremy Friesen]
2016-09-30: Addressing current_ability anonymous user [Jeremy Friesen]
2016-09-30: Updating work generator USAGE [Jeremy Friesen]
2016-09-30: Updating documentation concerning Responsibility [Jeremy Friesen]
2016-09-30: Removing vestigial relationship from Sipity [Jeremy Friesen]
2016-09-30: Updating documentation [Jeremy Friesen]
2016-09-30: Removing comments relationships [Jeremy Friesen]
2016-09-30: Adding explicit class names to Sipity models [Jeremy Friesen]
2016-09-30: Adjusting documentation for Sipity models [Jeremy Friesen]
2016-09-30: Updating documentation for workflow [Jeremy Friesen]
2016-09-30: Updating specs to reflect documentation [Jeremy Friesen]
2016-09-29: Remove blacklight-advanced-search [Justin Coyne]
2016-09-27: Updating documentation concerning WorkflowSchema [Jeremy Friesen]
2016-09-27: Allowing for non-state changing workflow actions [Jeremy Friesen]
2016-09-27: Updating documentation concerning WorkflowSchema [Jeremy Friesen]
2016-09-27: Adding rudimentary comments to workflow rendering [Jeremy Friesen]
2016-09-27: Moving comments subform up into workflow actions [Jeremy Friesen]
2016-09-26: Refactor the admin controller to initialize the statistics source
[Justin Coyne]
2016-09-26: Revert part of d003622. Restore and deprecate include_current_value
[Justin Coyne]
2016-09-26: Removing default since it is not being used and it causes javascript
errors in sufia tests [Carolyn Cole]
2016-09-23: Adding a module that includes items for a controller to act as an
admin controller [Carolyn Cole]
2016-09-23: Show a list of documents to act on [Justin Coyne]
2016-09-23: Automatically import workflows if none are found in the database
[Justin Coyne]
2016-09-23: Extract WorkflowFactory from the InitializeWorkflowActor [Justin
Coyne]
2016-09-23: Admin menu render [Trey Pendragon]
2016-09-23: Allow for menu items to other controllers. [Trey Pendragon]
2016-09-23: Tightening up workflow callback style services [Jeremy Friesen]
2016-09-23: Adding plumbing for handling actions taken [Jeremy Friesen]
2016-09-23: Adding plumbing for handling notifications [Jeremy Friesen]
2016-09-23: Adding hooks for email and processing workflow [Jeremy Friesen]
2016-09-22: Updating specs to duck type workflows [Jeremy Friesen]
2016-09-22: Fixing broken spec concerning array vs relation [Jeremy Friesen]
2016-09-22: Updating permission query concerning entity [Jeremy Friesen]
2016-09-22: Translations for workflow actions [Justin Coyne]
2016-09-22: Adding @Works for AdminController [Jeremy Friesen]
2016-09-22: Removing a bug in the polymorphism for users [Jeremy Friesen]
2016-09-22: Fixing to only send one solr query for restricted totals [Carolyn
Cole]
2016-09-22: Support importing in ImportExportJob [Adam Wead]
2016-09-22: Adding #scope_entities_for_the_user query [Jeremy Friesen]
2016-09-22: Use bootstrap styles for radio buttons [Justin Coyne]
2016-09-22: Test suite should fail when there are missing translations [Michael
J. Giarlo]
2016-09-22: Add a page to list workflows that need actions [Justin Coyne]
2016-09-22: fix spacing issues on workflow actions partial [Kyle Lawhorn]
2016-09-22: Correcting README typo [Jeremy Friesen]
2016-09-22: Converting WorkflowActionForm to proper form [Jeremy Friesen]
2016-09-22: Adding sipity state transition on form submit [Jeremy Friesen]
2016-09-22: Add default translation for dashboard -> menu -> resource_details
[E. Lynette Rayle]
2016-09-22: Add panel-title class [Justin Coyne]
2016-09-22: Rename workflow partials, styles and scripts [Justin Coyne]
2016-09-22: Removing specs concerning column names [Jeremy Friesen]
2016-09-22: Refactor chart helper [Trey Pendragon]
2016-09-22: Fixing the build [Jeremy Friesen]
2016-09-22: Coercing objects in WorkflowActionForm [Jeremy Friesen]
2016-09-22: Adding specs/behavior for WorkflowActionForm [Jeremy Friesen]
2016-09-22: Updating data migration to remove unneeded fields [Jeremy Friesen]
2016-09-22: Renamed workflow partials [Justin Coyne]
2016-09-22: Display the workflow actions you can take on an item [Justin Coyne]
2016-09-19: Use highcharts instead of flot [Trey Pendragon]
2016-09-22: Enable a default search builder coming from admin. [Trey Pendragon]
2016-09-22: Adding WorkflowActions controller and specs [Jeremy Friesen]
2016-09-22: Add advisor actions partial to work show view [Kyle Lawhorn]
2016...
1.6.3
This updates to the new syntax in Turbolinks 5.
Unfortunately, the old syntax is no longer supported so dual support for
older and current Rails is not an option here. More fortunately,
`target="_blank"` should serve as a fallback anyway.
The show actions for file sets did not include a `"_blank"` target for
the download link. The other download links uniformly open in a new
browser tab, so this makes the behavior consistent.
"_new" is not a browsing context keyword in HTML. Some browsers seem to
implement it, but the spec recommends they ignore it.
Turbolinks causes xhr requests on local links. For file downloads, this
causes browsers to render the contents as text, instead of playing media
or displaying the PDF in a viewer.
Changes
- Update data-no-turbolink to data-turbolinks="false" [Tom Johnson]
- Add
_blank
target to "Download this File" link [Tom Johnson] - Replace href target "_new" with "_blank" [Tom Johnson]
- Disable turbolinks on file download links [Tom Johnson]
Version 1.6.0
Changes
2016-09-14: Consolidate CollectionsHelper and
CurationConcerns::CollectionsHelper [Justin Coyne]
2016-09-13: Move include_current_value to the LicenseService [Justin Coyne]
2016-09-13: Avoid using the deprecated method to_class_uri [Justin Coyne]
2016-09-13: Permissions helper has moved to Sufia [Justin Coyne]
2016-09-13: Updates for ActiveTriples 0.11 [Justin Coyne]
2016-09-13: Remove unused and untested methods [Justin Coyne]
2016-09-13: Ignore coverage of the generators [Justin Coyne]
2016-09-13: The collection model is not used. We generate a version instead
[Justin Coyne]
2016-09-13: Move Renderers module to the expected path [Justin Coyne]
2016-09-13: Generate the test app with an rdf 1.99 dependency [Justin Coyne]
2016-09-12: Making the permissions controller use a behavior so we can extend
the behavior in other gems [Carolyn Cole]
2016-09-07: Deprecate SelectsCollections [Justin Coyne]
2016-09-11: Use the raw query handler when searching by id [Justin Coyne]
2016-09-11: Use engine_cart ~> 1.0 [Justin Coyne]
2016-09-08: Refactor filtering by type [Justin Coyne]
2016-09-08: Make search builder classes into class_attributes [Justin Coyne]
2016-09-06: Add representative_id to work indexer [Anna Headley]
2016-09-06: Deduplicate thumbnail_id solr field [Anna Headley]
2016-09-07: MemberSearchBuilder does not need collection from the scope [Justin
Coyne]
2016-09-07: Re-index collections if their files have been characterized. [Adam
Wead]
2016-09-06: Add renderer for external links attributes. [Andy Smith]
2016-09-06: Allow public users to see public collections [Justin Coyne]
2016-09-02: Refactor ingest workflow to use current working file [Adam Wead]
2016-09-06: Add selector for representative media to file manager members, fix
#958 [Anna Headley]
2016-09-01: Add a test for AdminSetSearchBuilder [Justin Coyne]
2016-09-01: Make AdminSetService#search_results a public method [Justin Coyne]
2016-08-31: Add a test to ensure that reverting preserves the original_name
[Justin Coyne]
2016-08-31: Revert "Refactor ingest workflow to use current working file"
[Justin Coyne]
2016-08-31: Use the to_s method on the presenter [Justin Coyne]
2016-08-31: Add property for rights_statement [Justin Coyne]
2016-08-31: Return the correct creator field for AdminSet [Justin Coyne]
2016-08-29: Add alphabetical sort to file manager, fix #929 [Anna Headley]
2016-08-30: Refactor ingest workflow to use current working file [Adam Wead]
2016-08-29: Add creator to AdminSet [Justin Coyne]
2016-08-29: Remove unnecessary override [Justin Coyne]
2016-08-29: Use i18n keys for search form labels [Chris Beer]
2016-08-29: Use #title_or_label for the collection search form; fixes #933
[Chris Beer]
2016-08-29: Generate placeholder spec files for generated models [Chris Beer]
2016-08-29: Update solr_wrapper [Anna Headley]
2016-08-29: Fix jasmine specs so they run and pass via jasmine server [Anna
Headley]
v1.0.0
Steps that may be needed when upgrading to 1.0.0:
- Update catalog controller to s/tag/keyword/
- Update any generated actors to be in the CurationConcerns::Actors:: namespace
Version 0.14.0
Upgrade Notes
- Run
rails generate simple_form:install --bootstrap
- Copy https://github.com/projecthydra-labs/curation_concerns/blob/master/lib/generators/curation_concerns/templates/migrations/create_operations.rb to
db/migrate/20160427155928_create_operations.rb
and runrake db:migrate
- Resque/Resque-pool has been removed as a dependency. If you need Resque add it to your application manually.
- Rights metadata has been updated to require an
active
field. Update yourconfig/authorites/rights.yml
to haveactive: true
for each entry
v 0.12.0
Upgrade Notes
Actors
The actors have been re-architected, so if your app has any code that uses actors, note that the arity of some methods has changed. In particular, attributes are no longer passed to the initializer, instead they are passed to individual methods.
The old way (version 0.11)
actor = CurationConcerns::CurationConcern.actor(GenericWork.new, user, attributes)
actor.create
The new way (version 0.12)
actor = CurationConcerns::CurationConcern.actor(GenericWork.new, user)
actor.create(attributes)
CanCan Abilities
In version 0.11, the default abilities for an admin user were broader. They were analogous to can :manage, :all
.
This change narrowed the scope of what an admin user has permission to do by default. So, you may need to grant some new abilities to your admin user if any abilities have been lost by this change.
WorkActorBehavior
CurationConcerns::WorkActorBehavior
has been deprecated and no longer contains any code. If you are including that module in any of your models, you should remove it.
Collections
The hydra-collections
gem has now been merged into curation_concerns
, so search your codebase for the string "Hydra::Collection".
- In the routes file, remove
mount Hydra::Collections::Engine => '/'
- In your models, remove
include Hydra::Collections::BasicMetadata
- Update your paths/urls in your code and specs. For example, just use
new_collection_path
instead ofHydra::Collections::Engine.routes.url_helpers.new_collection_path
Version 0.11.0
Changes
2016-03-30: Update background jobs to use GlobalID [Justin Coyne]
2016-03-30: Works and FileSets should support to_global_id [Justin Coyne]
2016-03-29: Remove body styling [Chris Beer]
2016-03-28: Use file_set_presenters [Justin Coyne]
2016-03-28: Add --skip-assets option to the generator to ignore javascript and
css assets provided by this controller; fixes #78 [Chris Beer]
2016-03-28: Add file name to upload error; fixes #582 [Chris Beer]
2016-03-28: Rename _form_descriptive_fields.erb to
_form_descriptive_fields.html.erb; fixes #548 [Chris Beer]
2016-03-28: Inject CurationConcern filters into the SearchBuilder [Justin Coyne]
2016-03-28: Rename vendor/assets/javascrips to .../javascripts; fixes #558
[Chris Beer]
2016-03-28: Avoid deprecated Hydra::SearchBuilder [Justin Coyne]
2016-03-25: Use Hydra-Works 0.8.1 [Trey Pendragon]
2016-03-25: Use AF 9.10.1 [Trey Pendragon]
2016-03-24: Add contributing and README necessary [Trey Pendragon]
2016-03-17: Fixed issue where re-ordering attached files wasn't working. Story
curationexperts/heliotrope#83 [val99erie]
2016-03-17: Pass the scope as the first parameter to deprecation [Justin Coyne]
2016-03-17: WorkShowPresenter#file_presenters only returns FileSets [Justin
Coyne]
2016-03-16: Use `feature` instead of `describe` for feature specs [Justin Coyne]
2016-03-17: Remove unused class CurationConcerns::FormBuilder [Justin Coyne]
2016-03-17: Generate a working feature spec. Fixes #677 [Justin Coyne]
2016-03-16: Use the setter instead of set_curation_concern_type [Justin Coyne]
2016-03-16: Remove unnecessary exception from .rubocop.yml [Justin Coyne]
2016-03-16: Remove unused method [Justin Coyne]
2016-03-16: The title attribute is required. Fixes #678 [Justin Coyne]
2016-03-16: Work show view should use a members partial [Justin Coyne]
2016-03-15: Deprecate the search_config method [Justin Coyne]
2016-03-14: Convert Bytes to a stored long [Trey Pendragon]
2016-03-14: Removed an unused method [Justin Coyne]
2016-03-11: Extract work_types method on SearchBuilder [Justin Coyne]
2016-03-10: Fixing rubocop and coveralls dependencies [Esmé Cowles]
2016-03-10: Allow setting presenter/form without overriding [Justin Coyne]
2016-03-09: Use kaminari_route_prefix instead of a branch of kaminari [Justin
Coyne]
2016-03-10: Don't require rubocop-rspec from .rubocop.yml [Justin Coyne]
2016-03-08: Collections select handles nil titles [Justin Coyne]
Version 0.10.0
Changes:
2016-03-04: Preparing for 0.10.0 release [Justin Coyne]
2016-03-04: Don't parse date_created as a Date, fixes #657 [Adam Wead]
2016-03-04: Generate the metadata into the collection model [Justin Coyne]
2016-03-03: Return zero when members is null [Adam Wead]
2016-03-03: Add to collection button shouldn't be a primary button [Justin
Coyne]
2016-03-03: Update templates to not have trailing lines [Justin Coyne]
2016-03-03: Prefer Redis.current to $redis. Fixes #639 [Justin Coyne]
2016-03-02: Configure the thumbnail field [Justin Coyne]
2016-03-02: Use attributes_to_html to render visibility [Justin Coyne]
2016-02-26: Move to DC Elements over DC Terms [Trey Pendragon]
2016-02-26: Put partial path in the curation_concerns ns [Justin Coyne]
2016-02-26: Log a warning when calling attribute_to_html on a non-existing
method [Justin Coyne]
2016-02-18: Add Github Issue templates [Justin Coyne]
Version 0.9.0
Changes:
2016-02-25: Preparing for 0.9.0 release [Justin Coyne]
2016-02-25: Refactor DownloadBehavior [Justin Coyne]
2016-02-25: Change name of local variable to presenter for consistency with
other partials [Justin Coyne]
2016-02-25: Make the views rely on local variables instead of ivars [Justin
Coyne]
2016-02-25: List Redis 2.6 as required installation dependency [Ben Cail]
2016-02-25: Extract the file_set show actions partial [Justin Coyne]
2016-02-25: Update readme for solr_wrapper/fcrepo_wrapper [Justin Coyne]
2016-02-24: Bump hydra-collections to ~> 8.0 [Justin Coyne]
2016-02-24: Set the microdata_default_type in the configuration [Justin Coyne]
2016-02-24: Exepmt the install generator from coverage [Justin Coyne]
2016-02-24: Use Questioning Authority for resource_types [Justin Coyne]
2016-02-24: Put the display_microdata default in the config [Justin Coyne]
2016-02-24: Removed unused permission_levels variables [Justin Coyne]
2016-02-24: Set a default value for max_days_between_audits [Justin Coyne]
2016-02-24: Remove unused variable persistent_hostpath [Justin Coyne]
2016-02-24: Remove fits_to_desc_mapping [Justin Coyne]
2016-02-24: Comment out analytics variable [Justin Coyne]
2016-02-24: add working_path variable to the config. [Justin Coyne]
2016-02-22: Write files to the staging area with their name [Justin Coyne]
2016-02-22: Allow create_content to take a relationship arg [Justin Coyne]
2016-02-19: require date_uploaded and date_modified fields [Justin Coyne]
2016-02-19: Add a way to run tests without rubocop [Justin Coyne]
2016-02-19: Add rake task to count all the objects [Justin Coyne]
2016-02-17: Build the form object when create fails. [Justin Coyne]
2016-02-17: Prune unused module [Justin Coyne]
2016-02-17: Remove any vestiges of datastreams [Justin Coyne]