Repository navigation
Create the documented indexes before running a case - #4575
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
A page's createIndex blocks lower as setup, and the scenario's indexes list each with its collection, keys and options. The runner creates them on both databases after seeding. The seven $text cases that stayed on the legacy path because their page creates a text index now convert and pass under both mappers.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One of the plan's deferred cutover features. Stacked on #4574.
Problem
Seven
$textcases stayed legacy-only incutover.jsonwith "the page creates an index, which the runner does not seed yet".$textneeds a text index, so each page starts with one:Lowering already parsed
createIndex(ShellProgramsreturns anIndexOperation), butFormMigration.documentedrefused any example with an index block, andOperatorCaseRunnerrefused any scenario with a non-emptyindexes.Change
FormMigration.documentedlowers index blocks as setup commands beside the inserts.DocumentedScenario.indexeskeeps each one's collection, keys and options.indexeslists{collection, keys, options}. A converted or generated scenario without indexes is unchanged.createIndexes, so every option the page passes (for exampledefault_language) reaches the server unchanged;$textcases convert and pass:caseAndDiacriticInsensitivity,caseSensitivity,excludeDocumentsThatContainATerm,matchAnyOfTheSearchTerms,queryADifferentLanguage,textWithASingleWordandtextWithAnExactString.cutover.jsondrops them; the manifest and ledger are regenerated.Result
370 legacy cases are on the runner, 186 legacy directories are left, and 16 cases are legacy-only.
Verification
TestText(9, the 7 converted cases among them) passes under Critter, then reflection.GeneratorTest.findsAndUpdatesAreGeneratednow checks that a page'screateIndexwith a name reaches the generated scenario.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.