Skip to content
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

Create a FileSet solr doc in Valkyrie solr when files are added to a Work #4766

Closed
elrayle opened this issue Mar 2, 2021 · 0 comments · Fixed by #4780
Closed

Create a FileSet solr doc in Valkyrie solr when files are added to a Work #4766

elrayle opened this issue Mar 2, 2021 · 0 comments · Fixed by #4780

Comments

@elrayle
Copy link
Contributor

elrayle commented Mar 2, 2021

Descriptive summary

When writing to Valkyrie's solr is enabled, FileSets are written to ActiveFedora managed solr core but not to the Valkyrie solr core.

Rationale

FileSets are a core model type and should be saved in the Valkyrie solr core.

Expected behavior

When config.query_index_from_valkyrie = true in config/initializers/hyrax.rb and a File is added to a work...

  • should write a FileSet solr doc to ActiveFedora managed solr core (at least for now)
  • should write a FileSet solr doc to Valkyrie's solr core

Actual behavior

When config.query_index_from_valkyrie = true in config/initializers/hyrax.rb and a File is added to a work...

  • writes a FileSet solr doc to ActiveFedora managed solr core
  • DOES NOT write a FileSet solr doc to Valkyrie's solr core

Steps to reproduce the behavior

Prerequisites

Edit .internal_test_app/config/initializers/hyrax.rb and set config

  config.query_index_from_valkyrie = true

Get count of FileSets solr docs

Get counts through Solr UI for ActiveFedora Solr core:

  1. navigate to: http://localhost:8983/solr/#/hydra-development/query
  2. check facet and set facet.field=has_model_ssim
  3. go to bottom of results and record counts for model types
    • FileSet

Get model type counts in Solr UI for Valkyrie Solr core:

  1. navigate to: http://localhost:8987/solr/#/hyrax-valkyrie-test/query
  2. check facet and set facet.field=has_model_ssim
  3. go to bottom of results and record counts for model types
    • FileSet

Check for count changes when adding a file to a work

BEFORE get counts of FileSets for both ActiveFedora Solr core and Valkyrie Solr core.

  1. Login
  2. Dashboard -> Works -> Add new work -> type=Generic Work
  3. Fill in required fields and add a file
  4. Save

AFTER get counts of FileSets for both ActiveFedora Solr core and Valkyrie Solr core.

Verify that the counts for FileSets increased by one in both Solr cores.

Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants