Skip to content

revert(data-service): set readPreference to primary unconditionally in previewUpdate COMPASS-10872#8256

Merged
nbbeeken merged 1 commit into
mainfrom
revert-8250-COMPASS-10872-readpref-bulk
Jul 17, 2026
Merged

revert(data-service): set readPreference to primary unconditionally in previewUpdate COMPASS-10872#8256
nbbeeken merged 1 commit into
mainfrom
revert-8250-COMPASS-10872-readpref-bulk

Conversation

@nbbeeken

Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings July 17, 2026 14:27
@nbbeeken
nbbeeken requested a review from a team as a code owner July 17, 2026 14:27
@nbbeeken
nbbeeken requested review from esvm and gribnoysup July 17, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts a recent data-service behavior change around previewUpdate() transaction configuration, restoring prior semantics where the transaction’s read preference is not forcibly overridden.

Changes:

  • Removes the unconditional ReadPreference.primary override from the previewUpdate() transaction options.
  • Removes the spec that previously asserted previewUpdate() succeeds under a non-primary connection read preference.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/data-service/src/data-service.ts Reverts transaction option behavior for previewUpdate() by no longer forcing primary read preference.
packages/data-service/src/data-service.spec.ts Removes the test that documented/supports previewUpdate() behavior under non-primary read preference.

Comment thread packages/data-service/src/data-service.ts
Comment thread packages/data-service/src/data-service.spec.ts
@nbbeeken
nbbeeken merged commit ace1327 into main Jul 17, 2026
54 of 55 checks passed
@nbbeeken
nbbeeken deleted the revert-8250-COMPASS-10872-readpref-bulk branch July 17, 2026 15:53
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.

3 participants