[SERVER-36286] Rename options for new $out Created: 25/Jul/18  Updated: 29/Oct/23  Resolved: 06/Aug/18

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.1.2

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-35893 Update $out to accept new syntax Closed
is depended on by SERVER-36123 Reject $out with mode: "replaceCollec... Closed
is depended on by SERVER-36288 Adjust required $out authz privileges... Closed
is depended on by SERVER-36187 Use the IDL to serialize $out Closed
Documented
is documented by DOCS-11943 Docs for SERVER-36286: Rename options... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-07-30, Query 2018-08-13
Participants:

 Description   

In SERVER-35893, we changed $out to accept new syntax in the form

$out: {
    mode: "insert" | "replace",
    dropTarget: true | false
}

After some discussion, we'd like to ban dropTarget: true with any mode other than mode: "insert". Therefore, we'd like to collapse dropTarget into another mode and rename them appropriately:

$out: {
    mode: "insertDocuments" | "replaceDocuments" | "replaceCollection"
}

Names subject to bikeshedding!



 Comments   
Comment by Kyle Suarez [ 06/Aug/18 ]

Hey nicholas.zolnierz, we've settled on the already-proposed "insertDocuments" / "replaceDocuments" / "replaceCollection". Looking at the current IDL file, I don't think there's anything else to do here – okay to close?

Comment by Githook User [ 26/Jul/18 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-36286: Rename options for $out
Branch: master
https://github.com/mongodb/mongo/commit/2471e2bb651442d84aef69a7c1885f653a179b35

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