Repository navigation
Generate the stage pages' examples and bind common accumulators - #4577
Open
evanchooly wants to merge 1 commit into
Open
evanchooly wants to merge 1 commit into
evanchooly wants to merge 1 commit into
Conversation
aggregation/stages joins the generated families, with bindings for $limit, $skip, $count, $sortByCount and the common accumulators. The inventory also matches an example to the fixture named for it when its title and action text have changed, which keeps generation from duplicating a converted case. Twelve more cases are generated, integrated under both mappers and promoted.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 5 of the operator-audit plan. Stacked on #4576.
Problem
aggregation/stagesfamily wasn't ingeneration-review.json, so 41 unowned stage-page examples were never considered.$limit,$sum,$first,$push,$addToSet,$multiply.$project's "Suppress _id Field in the Output Documents", but a converted legacy case already has that name, and the manifest check failed: "Case listed more than once". The page's title has changed since the fixture was written, and so has the action text, so neither match found the owner.Change
Family:
aggregation/stagesjoins the generated families.Bindings, all verified against core's API:
$limit,$skip,$count,$sortByCount;$sum,$avg,$first,$last,$push,$addToSet,$max,$min,$multiply.A
longparameter takes integer literals.Matching by name. When neither title nor action text matches, the inventory matches an example to the fixture whose folder is its descriptive name (
detail: "matched by name"). The name backport named every fixture for its example, so that name identifies it. Seven examples match this way.$bitOr's "Bitwise OR with a Long and Integer" is one of them. A legacy fixture owns it, so the generator's exclusion of it no longer applies and is removed; the page error it recorded stays in Follow up: report two mongodb/docs operator page errors #4563.Result
12 more generated cases, integrated under both mappers and promoted, for 26 in all:
$group,$project×2,$sort,$unwind, and others;$addToSet,$first,$push, and others.The inventory reads 444 owned and 138 unowned. Most remaining gaps are:
$type, whoseTypeconstants are named by BSON number, not MQL alias;$group_ids;$serializeEJSON,$hexHash, ...);db.aggregate(...), 13 on stage pages);arrayFilters.Decisions for review
Verification
GeneratorTest.aFixtureWithTheExamplesNameOwnsIt.Self-reviewed only: the independent reviewers are out of quota until 2026-11-26.