Skip to content

TOOLS-4148 Convert mode_upsert_id_subdoc.js to Go#964

Merged
autarch merged 1 commit intomasterfrom
03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go
Apr 1, 2026
Merged

TOOLS-4148 Convert mode_upsert_id_subdoc.js to Go#964
autarch merged 1 commit intomasterfrom
03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go

Conversation

@autarch
Copy link
Copy Markdown
Collaborator

@autarch autarch commented Mar 26, 2026

TestImportModeUpsertIDSubdoc verifies that --mode=upsert correctly uses a
full subdocument _id as the upsert key, preserving field order through a
round-trip of export → upsert-replace → re-import.

Helpers added:

  • exportCollectionToFile: exports a collection to a canonical JSON temp file
  • writeSubdocIDFile: writes a JSON lines file for the subdoc-_id docs
  • subdocIDDocs: builds the 20 test docs with complex nested _ids

Copy link
Copy Markdown
Collaborator Author

autarch commented Mar 26, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from fab9688 to 4acd009 Compare March 26, 2026 22:02
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch 2 times, most recently from 22fc798 to c8a35cb Compare March 26, 2026 22:03
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from 4acd009 to 23b8e20 Compare March 26, 2026 22:03
@autarch autarch changed the base branch from 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests to graphite-base/964 March 27, 2026 20:27
@autarch autarch force-pushed the graphite-base/964 branch from c8a35cb to e147b6e Compare March 30, 2026 15:20
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from 23b8e20 to b484d37 Compare March 30, 2026 15:20
@autarch autarch changed the base branch from graphite-base/964 to 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests March 30, 2026 15:21
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch 2 times, most recently from 40f8ffd to 9fbbc2d Compare March 30, 2026 15:50
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch from e147b6e to f17d51d Compare March 30, 2026 15:50
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from 9fbbc2d to fafd799 Compare March 30, 2026 15:53
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch from f17d51d to 6c1c202 Compare March 30, 2026 15:53
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from fafd799 to a268623 Compare March 30, 2026 16:03
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch from 6c1c202 to 0012ec3 Compare March 30, 2026 16:03
@autarch autarch marked this pull request as ready for review March 30, 2026 16:18
@autarch autarch requested a review from a team as a code owner March 30, 2026 16:18
@autarch autarch requested review from mankawal and removed request for a team March 30, 2026 16:18
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from a268623 to 642920b Compare March 30, 2026 21:22
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch from 0012ec3 to 1bc1230 Compare March 30, 2026 21:22
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch 2 times, most recently from 1a8ad1e to 7e4eea2 Compare March 31, 2026 14:44
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from 642920b to fab407b Compare March 31, 2026 14:44
@autarch autarch force-pushed the 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests branch from 7e4eea2 to a43da33 Compare March 31, 2026 21:07
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from fab407b to 4c10abc Compare March 31, 2026 21:07
Copy link
Copy Markdown
Collaborator Author

autarch commented Apr 1, 2026

Merge activity

  • Apr 1, 7:26 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 1, 7:29 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 1, 7:29 PM UTC: @autarch merged this pull request with Graphite.

@autarch autarch changed the base branch from 03-25-tools-4148_convert_mongoimport_mode.js_to_go_integration_tests to graphite-base/964 April 1, 2026 19:26
@autarch autarch changed the base branch from graphite-base/964 to master April 1, 2026 19:27
TestImportModeUpsertIDSubdoc verifies that --mode=upsert correctly uses a
full subdocument _id as the upsert key, preserving field order through a
round-trip of export → upsert-replace → re-import.

Helpers added:
- exportCollectionToFile: exports a collection to a canonical JSON temp file
- writeSubdocIDFile: writes a JSON lines file for the subdoc-_id docs
- subdocIDDocs: builds the 20 test docs with complex nested _ids
@autarch autarch force-pushed the 03-26-tools-4148_convert_mode_upsert_id_subdoc.js_to_go branch from 4c10abc to e17cd04 Compare April 1, 2026 19:28
@autarch autarch merged commit 7378743 into master Apr 1, 2026
2 of 3 checks passed
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.

2 participants