[SERVER-40539] Rename DocumentSourceMock to DocumentSourceQueue Created: 08/Apr/19  Updated: 29/Oct/23  Resolved: 21/May/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Internal Code
Affects Version/s: None
Fix Version/s: 4.1.12

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

Issue Links:
Depends
depends on SERVER-40381 Add the ability to specify a pipeline... Closed
is depended on by SERVER-40419 Remove feature flag guard of pipeline... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-05-20, Query 2019-06-03
Participants:

 Description   

As of SERVER-40381 we'll be using this for more than just testing, so its name should indicate it as such.

As DocumentSourceMock includes testing focused characteristics, like construction of an ExpressionContextForTest, we should consider doing the following:
1) Rename DocumentSourceMock to DocumentSourceQueue
2) Move DocumentSourceQueue into the 'pipeline' library, and reference from the 'update' library (removing the document_source_mock reference).
3) Creating DocumentSourceMock as a subclass of DocumentSourceQueue, pulling the testing aspects out of DocumentSourceQueue into the new DocumentSourceMock.



 Comments   
Comment by Githook User [ 21/May/19 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-40539 Add DocumentSourceQueue

This stage is distinguished from the Mock stage in that it doesn't
bother tracking state about which methods have been called. The queue
version is simpler and is used in production code (namely the update
system), whereas the mock is still preferred in testing environments.
Branch: master
https://github.com/mongodb/mongo/commit/1397d1398b3b9b1723cd9b93de6b345f940a17e8

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