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

Add indexer to work_resource generator #4219

Merged
merged 4 commits into from
Jan 27, 2020
Merged

Add indexer to work_resource generator #4219

merged 4 commits into from
Jan 27, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 25, 2020

Adds an indexer to the work_resource generator, eg. MonographIndexer. The indexer is configured to register the resource-specific Indexer, and adds a commented out example to_solr. Registers the new indexer in config/initializers/indexers.rb.

Corrects rails generate hyrax:work to rails generate hyrax:work_resource in other templates.

Adds config/initializers/indexers.rb to the install generator (via hyrax:config generator).

Adds a test to ensure the correct Indexer is returned by Hyrax::ValkyrieIndexer#for for a generated resource.

@ghost
Copy link
Author

ghost commented Jan 25, 2020

Test failure seems unrelated to my change, and only on one of the circles.

@ghost ghost mentioned this pull request Jan 25, 2020
@ghost ghost force-pushed the generate-indexer branch from 0d69713 to b9d3689 Compare January 26, 2020 01:34
@ghost
Copy link
Author

ghost commented Jan 26, 2020

I think the failure here is because I need to create a new .internal_test_app (circle orb?). Help?!

@no-reply
Copy link
Contributor

@geekscruff you need to bump the number in .regen.

this is our current, slightly hacky---suggestions welcome!---way to handle changes that require bumps for reasons not detected by the circle config.

@jeremyf
Copy link
Contributor

jeremyf commented Jan 27, 2020

I pushed the .regen bump to get this going.

jeremyf added a commit that referenced this pull request Jan 27, 2020
Per #4219

> @geekscruff you need to bump the number in .regen.
>
> this is our current, slightly hacky---suggestions welcome!---way to
> handle changes that require bumps for reasons not detected by the
> circle config.
@ghost ghost force-pushed the generate-indexer branch from f4dc2f2 to 930b5fe Compare January 27, 2020 18:50
@jeremyf jeremyf merged commit c7e8353 into master Jan 27, 2020
@jeremyf jeremyf deleted the generate-indexer branch January 27, 2020 20:27
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