Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore $readPreference field #3996

Merged
merged 5 commits into from
Jan 23, 2024
Merged

Ignore $readPreference field #3996

merged 5 commits into from
Jan 23, 2024

Conversation

b1ron
Copy link
Contributor

@b1ron b1ron commented Jan 22, 2024

Description

Some drivers will attach a $readPreference document when connecting to a replica set, see here and here for failures. We should ignore this field altogether.

Readiness checklist

  • I added/updated unit tests (and they pass).
  • I added/updated integration/compatibility tests (and they pass).
  • I added/updated comments and checked rendering.
  • I made spot refactorings.
  • I updated user documentation.
  • I ran task all, and it passed.
  • I ensured that PR title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Milestone (Next), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@b1ron b1ron added code/chore Code maintenance improvements area/params Issues about command parameters extraction labels Jan 22, 2024
@b1ron b1ron self-assigned this Jan 22, 2024
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5201cab) 75.56% compared to head (9f2551a) 74.54%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3996      +/-   ##
==========================================
- Coverage   75.56%   74.54%   -1.03%     
==========================================
  Files         337      337              
  Lines       27015    27015              
==========================================
- Hits        20414    20138     -276     
- Misses       5311     5621     +310     
+ Partials     1290     1256      -34     
Files Coverage Δ
internal/handler/common/count.go 100.00% <ø> (ø)
internal/handler/common/delete_params.go 100.00% <ø> (ø)
internal/handler/common/distinct.go 79.71% <ø> (ø)
internal/handler/common/find.go 100.00% <ø> (ø)
internal/handler/common/findandmodify.go 80.00% <ø> (ø)
internal/handler/common/update_params.go 100.00% <ø> (ø)

... and 18 files with indirect coverage changes

Flag Coverage Δ
filter-true 70.80% <ø> (-1.24%) ⬇️
hana-1 ?
integration 70.80% <ø> (-1.24%) ⬇️
mongodb-1 5.25% <ø> (ø)
postgresql-1 49.89% <ø> (-0.04%) ⬇️
postgresql-2 50.43% <ø> (-0.05%) ⬇️
postgresql-3 52.69% <ø> (-0.14%) ⬇️
sqlite-1 49.03% <ø> (+0.03%) ⬆️
sqlite-2 49.57% <ø> (-0.05%) ⬇️
sqlite-3 52.05% <ø> (+0.12%) ⬆️
unit 32.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@b1ron b1ron marked this pull request as ready for review January 22, 2024 12:41
@b1ron b1ron requested review from a team and AlekSi as code owners January 22, 2024 12:41
@b1ron b1ron requested a review from rumyantseva January 22, 2024 12:41
@b1ron b1ron enabled auto-merge (squash) January 22, 2024 12:41
@b1ron b1ron requested review from a team, henvic and noisersup January 22, 2024 12:42
@b1ron b1ron added this to the Next milestone Jan 22, 2024
@b1ron b1ron removed the area/params Issues about command parameters extraction label Jan 22, 2024
@b1ron b1ron changed the title Ignore $readPreference field for Java driver Ignore $readPreference field Jan 22, 2024
@AlekSi AlekSi disabled auto-merge January 23, 2024 06:35
@AlekSi AlekSi enabled auto-merge (squash) January 23, 2024 06:35
@AlekSi
Copy link
Member

AlekSi commented Jan 23, 2024

Auto-merge should be disabled and re-enabled for the new PR title to be propagated to the commit subject.

@b1ron b1ron disabled auto-merge January 23, 2024 11:17
@b1ron b1ron enabled auto-merge (squash) January 23, 2024 12:06
@b1ron b1ron requested a review from AlekSi January 23, 2024 12:47
@b1ron b1ron merged commit 0e2d108 into FerretDB:main Jan 23, 2024
28 of 30 checks passed
@AlekSi AlekSi mentioned this pull request Jul 9, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants