[SERVER-38760] Add the ability to serialize an update back to BSON which means the same thing Created: 21/Dec/18  Updated: 29/Oct/23  Resolved: 28/Feb/19

Status: Closed
Project: Core Server
Component/s: Querying, Write Ops
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-39253 [FLE] Handle $set to an object with e... Closed
is depended on by SERVER-39254 [FLE] Reject $rename operations betwe... Closed
is depended on by SERVER-39257 [FLE] Handle encrypted field in $set Closed
is depended on by SERVER-39276 [FLE] Reject invalid update operators... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-02-11, Query 2019-02-25, Query 2019-03-11
Participants:
Linked BF Score: 70

 Description   

Both MatchExpression and all aggregation stages have this ability. We also want it on the update stage - though this will likely be harder since an update represents itself as a tree of nodes which may not look quite the same as the original document.



 Comments   
Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-38760 Serialize update commands to BSON
Branch: master
https://github.com/mongodb/mongo/commit/5f8f2f495b51bc3ac05febabcfb459814c96dd6f

Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-38760 Serialize update commands to BSON
Branch: master
https://github.com/mongodb/mongo/commit/1eadc480a431473e8c975e9d2eccb06ad7831c87

Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-38760 Serialize update commands to BSON
Branch: master
https://github.com/mongodb/mongo/commit/5fa4388a59fdcea46e8482cb41d0e2cba1c18c40

Comment by Nicholas Zolnierz [ 28/Jan/19 ]

jacob.evans - it may make sense to split out array filters as a separate ticket. I imagine we'll at least need a method for serializing the positional element in the update expression but the arrayFilters BSON can just pass through to the serialized command object. What're your thoughts?

Generated at Thu Feb 08 04:49:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.