[SERVER-45460] Deprecate CodeWithScope as a BSON type Created: 09/Jan/20  Updated: 29/Oct/23  Resolved: 26/Feb/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Task Priority: Major - P3
Reporter: David Percy Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-13455 Investigate changes in SERVER-45460: ... Closed
Related
related to DOCS-13444 Mark CodeWithScope as deprecated on b... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-02-24, Query 2020-03-09
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 26/Feb/20 ]

Author:

{'username': 'jameswahlin', 'name': 'James Wahlin', 'email': 'james@mongodb.com'}

Message: SERVER-45460 Mark CodeWithScope as deprecated in bsontypes.h
Branch: master
https://github.com/mongodb/mongo/commit/dbc00195a18a3aecbcb7b254c3de2056fe25aa24

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