Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5280 - Make the scheduled reindexing job index ExternalWorks and Series. #3202
+27
−20
Conversation
tickinginstant
added some commits
Dec 10, 2017
| + klass = klass.classify # convert to the uppercase version | ||
| + | ||
| + ids.in_groups_of(BATCH_SIZE, false).each_with_index do |id_batch, i| | ||
| + if $rollout.active?(:start_new_indexing) |
| + end | ||
| + | ||
| + # After the ES6 upgrade, delete this whole unless block. | ||
| + unless $rollout.active?(:stop_old_indexing) |
| + | ||
| + # Once the upgrade is complete, this check can be deleted. | ||
| + expect(IndexSubqueue).to receive(:create_and_enqueue).exactly( | ||
| + $rollout.active?(:stop_old_indexing) ? 0 : 1 |
redsummernight
added
the
Awaiting review
label
Dec 10, 2017
sarken
added
the
Priority: Broken on Test (High)
label
Dec 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tickinginstant commentedDec 10, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5280
Purpose
This pull request does three things to try to fix the indexing of ExternalWorks and Series:
id: "external_work-#{id}"field (and similar) from bookmarkable_json, since it apparently causes ES to error when re-indexing a document. (Credit to WendyBeth for figuring out this issue and the fix in #3122.)Testing
Testing instructions are in the bug report.