• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curationexperts / epigaea
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: turbolinks-batch-fix
DEFAULT BRANCH: master
Repo Added 16 Nov 2017 02:21AM UTC
Files 176
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH bugfix/adding_work_to_collection
branch: bugfix/adding_work_to_collection
CHANGE BRANCH
x
Reset
  • bugfix/adding_work_to_collection
  • add-coveralls-badge
  • add-purge-remove-review-buttons
  • add_collection_to_sample_file
  • admin_sets_breaking
  • advanced-search/feature-spec
  • advanced-search/field-suffix
  • af-base-wo-id
  • analytics
  • application-actor
  • batch-edit-spec
  • batch-index
  • batch-optionals
  • batch-search
  • batch_email_user
  • batch_import_testing
  • batch_user_creation
  • better-readme
  • bugfix/attach_work_to_collection
  • bugfix/blank_display_name
  • bugfix/ignore_date_created
  • catch_object_not_found
  • check_for_well_formed_xml
  • clean-db-metadata-import
  • clean_up_specs
  • cleaner-dot-env
  • collection-export
  • collection-on-import
  • collection-re-import
  • complex-batch-import
  • config_mailer
  • contribute_specs
  • createdby_multiple
  • css-collections-table
  • css-metadata-import
  • de-dupe_feature_tests
  • default_admin_set_stats
  • default_mail
  • delete_spec
  • dependency-update
  • disable_travis_emails
  • do_not_send_email_in_dev_env
  • docs
  • draftable-specs
  • empty_rights_statement
  • enable_video_derivatives
  • ensure-nil-for-singular
  • feature-defaults
  • feature/ajax-pagination-for-batches
  • feature/check_for_valid_id
  • feature/collection_ead_field
  • feature/collection_seeds
  • feature/ldap
  • feature/ldap-email
  • feature/load_workflow_on_deploy
  • feature/modified-uploaded-show
  • feature/normalize-import-fields
  • feature/notifications_refactored
  • feature/only_one_id_on_batch_update
  • feature/revert-drafts-button
  • feature/suppress_individual_notifications
  • feature/technical-metadata
  • file-type
  • filter-selfdeposit
  • finish-transcript-front-end-features
  • fits_not_found
  • fix-help-keyword-warning
  • fix-ignore-date-uploaded
  • fix-show
  • fix/add-creator-term
  • fix/admin-non-admin-routes
  • fix/advanced-search-date-created
  • fix/advanced-search-results
  • fix/batch-create-forms
  • fix/batch-edit-spec
  • fix/batch-edit-spec-
  • fix/collections-pages
  • fix/delete-draft-with-contoller
  • fix/embargo_note
  • fix/env_defaults
  • fix/file_upload_limit
  • fix/gis_poster_description
  • fix/handle-admin-set-predicate
  • fix/potral-portal
  • fix/remove-tufts-filename-from-tech-metadata
  • fix/repopulate-fields-on-form
  • fix/right-statement-param
  • fix/rights-statement-forms-transcript
  • fix/rights-statement-scalar-multivalue
  • fix/rights-twice-on-form
  • fix/search-constraints
  • fix/self-deposit
  • fix/show-view
  • fix/sidekiq-link
  • fix/technical-metadata
  • fix/technical-metadata-formatting
  • fix/unpublished-visibility-in-collection
  • fix/upload_limit
  • fix/uploaded-fade-in
  • fix_held_by_facet
  • fix_intermittent_fail
  • fix_predicates
  • fixup-xml-import-enqueue
  • handle-config
  • handle-dl
  • handle-dot-env
  • handle-url
  • ignore-coverage
  • import-file-upload
  • inherit-behaviors
  • inter-fail
  • inverse_association
  • investigate_failed_spec
  • issue-813
  • key-not-found
  • ldap-wip
  • mail_setup
  • mark-dce-patch-1
  • mark_dirty
  • master
  • metadata_table
  • multi-file-import
  • no-creator
  • okcomputer
  • order_desc
  • ordered_creator
  • ordered_export
  • recent_export_spec
  • redis-store-update
  • refactor/batch-edit-spec
  • refactor/rep-and-thumbnail-assignment
  • register_ead_field
  • register_handle_upon_publication
  • reinstate_test
  • remove_pending
  • require_display_in
  • required_fields
  • restart_on_cap_deploy
  • restrict_sample_data_to_dev
  • revert-677-fix/batch-create-forms
  • sample-xml-5-records
  • sample-xml-files
  • sample_data_rake_task
  • sample_import_file
  • sample_input_file
  • sample_meta_file
  • search/by-batch
  • security_updates
  • self-deposit/abstract
  • self-deposit/refactor-abstract
  • self_dep_note_spec
  • session-store-flash
  • setup-models
  • sidekiq_link
  • sign-out
  • spec/drafts-editable-coverage
  • spec/editable
  • spec/make-xml-import-presenter-status-optional
  • spec/mark-assigns-template-as-optional
  • spec/mark-draft-saved-as-optional
  • spec/mark-flappy-specs-as-optional-on-travis
  • spec/mark-import_object-as-optional
  • spec/mark-xml-import-presenter-spec-as-optional
  • spec/optional-for-publish-unpublish
  • spec/refactor-user-roles-in-factories
  • statistics
  • story_861
  • style/add-metadata-button
  • style/remove-blank-wells
  • submission-date
  • template-upload_fade_in
  • template_notifications
  • template_spec
  • thumbnail-sample-xml-file
  • ticket_649
  • ticket_668
  • ticket_753
  • trailing-whitespace
  • turbolinks-batch-fix
  • unauthenticated_users_redirect
  • update_docs
  • update_fixture
  • update_member_of_queries
  • update_missing_attributes
  • upgrade/hyrax-2.0.0
  • upload-fade-in
  • use-models
  • use-models-rc2
  • user-name
  • v2017.12.07.beta
  • v2017.12.13.beta
  • v2017.12.21.beta
  • v4.0.0-rc3
  • v4.0.0-rc4
  • v4.0.0-rc5
  • v4.0.0-rc6
  • v4.0.0-rc7
  • v4.0.0-rc8
  • v4.0.0-rc9
  • v4.0.0rc1
  • v4.0.0rc2
  • validate_collections_exist
  • view/deposit-types-non-auth
  • views/add-controls-to-batches
  • visibility-round
  • whitespace-deposit
  • xml-import-failures
  • xml-import-no-requeue

pending completion
2406

push

travis-ci

bess
Fix for adding a work to a collection

This test was failing because when HydraEditor runs the
'build_permitted_params' method, the method call
'multiple?(:member_of_collection_ids)' was returning false when it
should return true. This caused that field to be stripped from
the params that are passed to the actor stack, so they never
reach CollectionsMembershipActor.

The problem is fixed by correcting the inheritance of
Tufts::MetadataService so that it inherits from Hyrax, which
in turn inherits from HydraEditor. Crucially,
Hyrax::FormMetadataService, the step in the inheritance
chain that was previously being skipped,  is the place
where :member_of_collection_ids gets defined as multiple.

Hyrax::FormMetadataService also assumes that :rights_statement
is singular, whereas Tufts expects it to be plural, so we
also need to override that setting.

2503 of 2784 relevant lines covered (89.91%)

116.25 hits per line

Relevant lines Covered
Build:
Build:
2784 RELEVANT LINES 2503 COVERED LINES
116.25 HITS PER LINE
Source Files on bugfix/adding_work_to_collection
  • Tree
  • List 0
  • Changed 20
  • Source Changed 1
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2406 bugfix/adding_work_to_collection Fix for adding a work to a collection This test was failing because when HydraEditor runs the 'build_permitted_params' method, the method call 'multiple?(:member_of_collection_ids)' was returning false when it should return true. This caused that... push 03 Jan 2018 08:57PM UTC bess travis-ci pending completion  
2398 bugfix/adding_work_to_collection Fix for adding a work to a collection This test was failing because when HydraEditor runs the 'build_permitted_params' method, the method call 'multiple?(:member_of_collection_ids)' was returning false when it should return true. This caused that... push 03 Jan 2018 06:22PM UTC bess travis-ci pending completion  
2395 bugfix/adding_work_to_collection Fix for adding a work to a collection This test was failing because when HydraEditor runs the 'build_permitted_params' method, the method call 'multiple?(:member_of_collection_ids)' was returning false when it should return true. This caused that... push 03 Jan 2018 06:15PM UTC bess travis-ci pending completion  
2392 bugfix/adding_work_to_collection [squash me] Failing test for adding a work to a collection This test is failing because when HydraEditor runs the 'build_permitted_params' method, the method call 'multiple?(:member_of_collection_ids)' is returning false when it should return tru... push 03 Jan 2018 03:31PM UTC bess travis-ci pending completion  
See All Builds (980)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc