-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add ability to freeze *types.Document
and *types.Array
#3253
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3253 +/- ##
==========================================
- Coverage 75.26% 74.92% -0.35%
==========================================
Files 400 400
Lines 22386 22819 +433
==========================================
+ Hits 16849 17096 +247
- Misses 4563 4736 +173
- Partials 974 987 +13
Flags with carried forward coverage won't be shown. Click here to find out more. |
@AlekSi its just a draft pr added freeze() function for document type, just to check am I in proper path or should i change the approach I used currently? |
@KrishnaSindhur you are on the right track, I would do it the same way 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more methods where we should panic. For example, Array.Remove
should i check the all the methods of array and document which are modifying the values? |
Well, I think it should be somewhat obvious from existing documentation. If it is not – sure, let's update it |
f66a51c
to
f0a5548
Compare
I can add few more test if its required for array and document method!! I have just updated existing test for given methods |
*types.Document
and *types.Array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Great work 🚀
Description
Closes #3112.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.