[DRIVERS-726] Deprecate CodeWScope for use within the mapReduce command Created: 23/Aug/19  Updated: 27/May/22  Resolved: 18/Feb/20

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Bernie Hackett
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-3360 Deprecate CodeWScope for use within t... Closed
depends on CXX-1815 Deprecate CodeWScope for use within t... Closed
depends on GODRIVER-1304 Deprecate CodeWScope for use within t... Closed
depends on MOTOR-383 Deprecate CodeWScope for use within t... Closed
depends on NODE-2151 Deprecate CodeWScope for use within t... Closed
depends on PHPLIB-477 Deprecate CodeWScope for use within t... Closed
depends on PYTHON-1977 Deprecate CodeWScope for use within t... Closed
depends on RUBY-1916 Deprecate CodeWScope for use within t... Closed
depends on SERVER-42888 Deprecate CodeWScope for use within t... Closed
depends on CSHARP-2733 Deprecate CodeWScope for use within t... Closed
depends on JAVA-3428 Deprecate CodeWScope for use within t... Closed
Related
related to DRIVERS-646 MapReduce in Aggregation Closed
is related to DRIVERS-711 Deprecate mapparams, out.sharded, and... Closed
Server Compat: 4.2
Driver Compliance:
Key Status/Resolution FixVersion
RUBY-1916 Won't Fix
GODRIVER-1304 Won't Do
MOTOR-383 Done
PYTHON-1977 Won't Fix
CDRIVER-3360 Gone away
CXX-1815 Gone away
JAVA-3428 Done
PHPLIB-477 Fixed 1.6.0
CSHARP-2733 Won't Fix
NODE-2151 Won't Fix

 Description   
Downstream Change Summary

CodeWScope will be deprecated in MapReduce and will log a message saying so. This is in preparation for 4.4 when CodeWScope will not be supported in MapReduce.

Drivers should deprecate any types or parameters related to CodeWScope with a message similar to the server log warning:

Use of CodeWScope with MapReduce is deprecated. Put all scope variables in the scope parameter of the MapReduce command



 Comments   
Comment by Bernie Hackett [ 18/Feb/20 ]

I'm closing this won't fix. We're not deprecating the CodeWScope BSON type, and can't easily deprecate a BSON type in the context of a particular command. We'll rely on the server to error with a useful message in this case.

Generated at Thu Feb 08 08:22:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.