-
Notifications
You must be signed in to change notification settings - Fork 48
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
Valkyrize the reindexer jobs #2147
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
class ReindexCollectionsJob < ApplicationJob | ||
def perform | ||
Collection.find_each do |collection| | ||
PcdmCollection.find_each do |collection| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be changed to use the config collection class. Possibly should also reference multiple models? |
||
ReindexItemJob.perform_later(collection) | ||
end | ||
end | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,6 +2,6 @@ | |||||||||
|
||||||||||
class ReindexItemJob < ApplicationJob | ||||||||||
def perform(item) | ||||||||||
item.update_index | ||||||||||
Hyrax.index_adapter.save(resource: item) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Should this turn into the above, based on our convo with Rob? Would this work if there are existing active fedora objects? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to blow away my env to confirm ^^ checking now though... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||
end | ||||||||||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be changed to use the config admin set class. Possibly should also reference multiple models?