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

Cleanup $bit update operator #3315

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

chilagrow
Copy link
Member

@chilagrow chilagrow commented Sep 6, 2023

Description

Closes #821.

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.

@chilagrow chilagrow added the code/chore Code maintenance improvements label Sep 6, 2023
@chilagrow chilagrow added this to the Next milestone Sep 6, 2023
@chilagrow chilagrow self-assigned this Sep 6, 2023
@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Merging #3315 (32157e4) into main (586e27b) will increase coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3315      +/-   ##
==========================================
+ Coverage   74.03%   74.19%   +0.16%     
==========================================
  Files         400      400              
  Lines       23995    23970      -25     
==========================================
+ Hits        17764    17785      +21     
+ Misses       5146     5105      -41     
+ Partials     1085     1080       -5     
Files Changed Coverage
internal/handlers/common/update.go 100.00%
Flag Coverage Δ
hana ?
integration 70.81% <100.00%> (+0.16%) ⬆️
mongodb 4.92% <0.00%> (+<0.01%) ⬆️
pg 55.75% <91.66%> (+0.04%) ⬆️
shard-1 55.75% <91.66%> (+0.04%) ⬆️
shard-2 54.78% <0.00%> (+0.10%) ⬆️
shard-3 42.41% <100.00%> (+0.15%) ⬆️
sqlite 56.22% <100.00%> (+0.15%) ⬆️
unit 24.14% <0.00%> (+0.02%) ⬆️

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

@chilagrow chilagrow marked this pull request as ready for review September 6, 2023 02:58
@chilagrow chilagrow requested a review from a team as a code owner September 6, 2023 02:58
@chilagrow chilagrow enabled auto-merge (squash) September 6, 2023 02:58
@chilagrow chilagrow requested review from a team and noisersup September 6, 2023 02:58
@chilagrow chilagrow requested a review from ptrfarkas as a code owner September 6, 2023 03:07
@chilagrow chilagrow added the documentation Something user-visible is badly or not documented label Sep 6, 2023
@chilagrow chilagrow changed the title Add tests for $bit update operator Cleanup $bit update operator Sep 6, 2023
@chilagrow
Copy link
Member Author

@chilagrow
Copy link
Member Author

👋 @adetunjii I reorganised the code and also added tests for each BSON type.

Copy link
Contributor

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

LGTM!

@chilagrow chilagrow merged commit 9669f0f into FerretDB:main Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements documentation Something user-visible is badly or not documented
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Support $bit bitwise update operator
3 participants