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

Use a custom Indexer for AdminSets #4048

Merged
merged 3 commits into from
Oct 29, 2019
Merged

Conversation

no-reply
Copy link
Contributor

Avoid deprecated index.as syntax for AdminSet data.

Admin Sets should be able to index using the AdminSetIndexer, rather than the
old-style index.as syntax.

@samvera/hyrax-code-reviewers

@no-reply no-reply force-pushed the use-indexer-class-for-admin-sets branch from 2c951d4 to 9236840 Compare September 26, 2019 11:22
@no-reply no-reply force-pushed the use-indexer-class-for-admin-sets branch from 9236840 to 6bf3ff7 Compare October 14, 2019 17:51
Tom Johnson added 2 commits October 14, 2019 10:54
Indexing for admin sets is under-tested. Adding a test for keys helps ensure the
behavior stays fixed under upcoming changes.
Avoid deprecated `index.as` syntax for `AdminSet` data.

Admin Sets should be able to index using the AdminSetIndexer, rather than the
old-style `index.as` syntax.
@no-reply no-reply force-pushed the use-indexer-class-for-admin-sets branch from 6bf3ff7 to 1cfabee Compare October 14, 2019 17:56
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good, but there are two failing tests due to solr field suffix mismatches. I added suggestions that should fix them.

spec/indexers/hyrax/admin_set_indexer_spec.rb Outdated Show resolved Hide resolved
spec/indexers/hyrax/admin_set_indexer_spec.rb Outdated Show resolved Hide resolved
Co-Authored-By: cjcolvar <cjcolvar@indiana.edu>
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cjcolvar
Copy link
Member

@no-reply Maybe this needs a rebase to fix the valkyrie tests? Or invalidating the cache?

@no-reply
Copy link
Contributor Author

@cjcolvar seems like the failure is an unrelated random error:

expect(VisibilityCopyJob).to have_been_enqueued

I've seen this one before, and it looks like a test order issue to me.

@cjcolvar cjcolvar merged commit ca50220 into master Oct 29, 2019
@cjcolvar cjcolvar deleted the use-indexer-class-for-admin-sets branch October 29, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants