Repository navigation
Keep documented collection names in cut-over scenarios - #4554
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
Corrections that renamed a documented collection to the legacy harness's example_test are dropped from scenarios, so the runner seeds the page's names. dateAdd/addAFutureDate now merges into shipping and converts; the two graphLookup cases stay legacy-only because graphLookup does not order the array it builds.
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.
Stacked on #4553.
Problem
Three accepted overrides carry a correction that renamed a documented collection to
example_test, the one collection the legacy harness loads every fixture into:dateAdd/addAFutureDatemerges intoshipping;graphLookup/withinASingleCollectionlooks upemployees;graphLookup/withAQueryFilterlooks uppeople.The case runner seeds the documented collection names, so carrying the rename into a scenario would point both runs at the same wrong collection. #4551 therefore refused these cases for review.
Changes
FixtureMigration.pinneddrops harness-rename corrections, which only existed for the legacy harness.convertibleno longer refuses these cases. A test body that still namedexample_testwould fail the strict serialization check, so this fails closed.dateAdd/addAFutureDateconverts. Its body now merges intoshipping, recorded as a reviewedBodyEdit(Build four update tests' values with ordered maps #4553). It converts under both mappers.$graphLookupcases stay legacy-only, for a different reason. Withemployeesandpeoplethey pass serialization, but they fail the behavior check:$graphLookupdoes not order the array it builds, so the reference and Morphia runs list it differently. They need an unordered-array comparison, which the runner doesn't have yet. Their bodies stay unchanged, since the legacy fixture still loadsexample_test.cutover.jsonnow records that reason.Decision for review
$graphLookupcases needs a reviewed per-path unordered-array comparison in the scenario'scomparison. I haven't added one.Review note
The independent local reviewer is at its weekly limit, and Codex and Copilot are out of quota, so I reviewed this myself. The independent review will be requested on this PR when the limit resets on Nov 26.