Repository navigation
fix(compliance): add selection_type to 3.1.x get_products pagination storyboard fixtures - #8683
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean two-line fixture fix on 3.1.x with no findings.
This PR adds selection_type: "all" to both seeded products' publisher_properties entries in get-products-pagination-integrity.yaml (L69, L80). The reviewer verified against core/publisher-property-selector.json — a discriminated oneOf where every branch requires selection_type — so the prior publisher_domain-only entries matched no branch, producing the reported must match exactly one schema in oneOf error. The added "all" lands cleanly in branch 1 and matches exactly one branch. Patch changeset included, dist untouched, consistent with 3.1.x backport practice.
No blocking findings, no medium findings. high_risk false, gated_paths false, no author team gate. None of rows 1–8 fire; falls through to row 9 → approve.
|
Thanks for taking this. I had the same source fix prepared locally, so I will avoid a duplicate PR. I also have a regression for |
Fixes #8646.
What
Both seeded products in
static/compliance/source/universal/get-products-pagination-integrity.yaml(3.1.x) named onlypublisher_domainin theirpublisher_propertiesentries.core/publisher-property-selector.jsonis a discriminatedoneOfonselection_typeand every branch requires it, so an entry without it matches no branch. A seller that returned the seeded product as authored therefore failed the storyboard's own response-schema validation on the first wholesale page:This adds
selection_type: "all"to both fixture entries — identical to the already-fixed copies onmainand in 3.2.8 — plus a patch changeset, per 3.1.x backport practice. Published dist artifacts are untouched; they regenerate at the next 3.1.x patch release.Testing
core/publisher-property-selector.json— both INVALID before the change (matches nooneOfbranch, exactly the reported error), both VALID after.main's fixed version.