Skip to content

Keep documented collection names in cut-over scenarios - #4554

Open
evanchooly wants to merge 1 commit into
audits-ordered-mapsfrom
audits-documented-collections
Open

evanchooly wants to merge 1 commit into
audits-ordered-mapsfrom
audits-documented-collections

Conversation

@evanchooly

Copy link
Copy Markdown
Member

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/addAFutureDate merges into shipping;
  • graphLookup/withinASingleCollection looks up employees;
  • graphLookup/withAQueryFilter looks up people.

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

  • The scenario keeps the page's collection name. FixtureMigration.pinned drops harness-rename corrections, which only existed for the legacy harness. convertible no longer refuses these cases. A test body that still named example_test would fail the strict serialization check, so this fails closed.
  • dateAdd/addAFutureDate converts. Its body now merges into shipping, recorded as a reviewed BodyEdit (Build four update tests' values with ordered maps #4553). It converts under both mappers.
  • The two $graphLookup cases stay legacy-only, for a different reason. With employees and people they pass serialization, but they fail the behavior check: $graphLookup does 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 loads example_test. cutover.json now records that reason.
  • Totals. Form report: 9 overrides. Ledger: 346 cases. Legacy-only: 28.

Decision for review

  • Unordered arrays. Converting the two $graphLookup cases needs a reviewed per-path unordered-array comparison in the scenario's comparison. 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.

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

No deployments
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.

1 participant