[DOCS-13455] Investigate changes in SERVER-45460: Deprecate CodeWithScope as a BSON type Created: 26/Feb/20  Updated: 13/Nov/23  Due: 17/Apr/20  Resolved: 27/Apr/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.3.4, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-45460 Deprecate CodeWithScope as a BSON type Closed
Related
is related to MONGOID-4886 Document code w/scope removal from $w... Closed
Participants:
Days since reply: 3 years, 41 weeks, 2 days ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

JavaScript functions stored as BSON type CodeWScope in a system.js collection can no longer be used in $where or mapReduce. We have deprecated BSON type CodeWScope and expect users to store JavaScript functions as BSON type string or Code.

Description of Linked Ticket

This work will consist of:

  • Updating bsonspec.org to list code_w_s as a deprecated type
  • Updating comments in bsyontypes.h to reflect that BSONType::Code is not deprecated and that BSONType::CodeWScope is deprecated
  • Investigating whether work is needed to prevent use in system.js and to handle gracefully existing CodeWScope in system.js on 4.4 upgrade
  • Requesting documentation changes

We could also consider adding a deprecation message to the log on every X uses for 4.2

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-13455: deprecate BSON type javascriptwcode
Branch: master
https://github.com/mongodb/docs/commit/8b8841d0fc81e86d4d5cf2f8cc5d18a8b8b7739d

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