[SERVER-83935] Move some repeated query shape test code into a shared place Created: 06/Dec/23  Updated: 04/Jan/24

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

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: qi-query-stats, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-83531 $backupCursor fails to re-parse Closed
Assigned Teams:
Query Integration
Participants:

 Description   

Came up during development of SERVER-83531. We have a couple unit tests of DocumentSources which serialize themselves - and lots of them repeat the code to call the public serializeToArray method and then assert there is 1 stage.

Also there are a growing number of tests that use the serialization options - might be nice to have shorter or more concise ways to do that.



 Comments   
Comment by Alyssa Clark [ 07/Dec/23 ]

Along with this, it would be great if we could make a templated/generic helper assertRepresentativeShapeIsStable function, as that is now a common pattern.

Generated at Thu Feb 08 06:53:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.