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

Creating an Admin Set does not save to Valkyrie solr core #5334

Closed
elrayle opened this issue Jan 24, 2022 · 2 comments · Fixed by #5364
Closed

Creating an Admin Set does not save to Valkyrie solr core #5334

elrayle opened this issue Jan 24, 2022 · 2 comments · Fixed by #5364

Comments

@elrayle
Copy link
Contributor

elrayle commented Jan 24, 2022

Descriptive summary

Saving an Admin Set should index the new set in the Active Fedora solr core and the Valkyrie solr core (when configured).

Rationale

Indexing of core models should be indexed in the Valkyrie solr core when it is configured.

Expected behavior

When an Admin Set is created, the ActiveFedora and Valkyrie solr cores should both have a document created describing the new Admin Set.

Actual behavior

When an Admin Set is created, only the ActiveFedora solr core has a document created describing the new Admin Set.

Steps to reproduce the behavior

Prerequisites:

Configure Hyrax:

  1. Edit /config/initializers/hyrax.rb and set:
  config.query_index_from_valkyrie = true
  config.index_adapter = :solr_index
  config.admin_set_model = "Hyrax::AdministrativeSet"
  1. restart rails app
  2. Make sure regular hyrax-development solr is running and hyrax-valkyrie-dev. Your core names may vary depending on how you start them.

To reproduce:

Create Admin Set

  1. navigate to Dashboard -> Collections
  2. click button: New Collection
  3. select type: Admin Set
  4. click button: Create collection
  5. set Title: MY ADMIN SET (or other meaningful name)
  6. click Save

In solr cores for the Hyrax app:

  • run q: title_tesim:MY ADMIN SET for hyrax-development core and verify the admin set solr doc was created
  • run q: title_tesim:MY ADMIN SET for hyrax-valkyrie-dev core and note that the admin set solr doc was NOT created

Related work

See related issues in Issue #5326 UBER: Hyrax-Valkyrization MVP

@elrayle
Copy link
Contributor Author

elrayle commented Jan 28, 2022

Admin sets continue to not be listed at Dashboard -> Collections on nurax-pg. Need to take another look at this to see if the solr doc is created for nurax-pg.

@elrayle
Copy link
Contributor Author

elrayle commented Jan 28, 2022

After creating an AdministrativeSet in nurax-pg:

  • is created in solr with model Hyrax::AdministrativeSet
  • is created in datastore
  • its access control is created in datastore

The object is created as expected. It is just failing to be listed in Dashboard -> Collections

Issue #5408 describes the failure to be listed even though it was correctly created.

@elrayle elrayle closed this as completed Jan 28, 2022
@elrayle elrayle moved this from In Progress to DONE in Hyrax-Valkyrization Jan 28, 2022
@elrayle elrayle moved this from DONE to Ready to be Archived in Hyrax-Valkyrization Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Hyrax-Valkyrization
Ready to be Archived
1 participant