Skip to content
Astera Technology

Require a complete product option before selecting its stock code

Map a complete allowed option combination to one SKU and reject incomplete or unsupported combinations.

Treat the option tuple as the product identity

Synthetic shop sells blue/small as SKU-BS and red/large as SKU-RL. Blue/large is not offered. Colour and size are both required. Selecting blue alone cannot default silently to small, and a visually similar item cannot replace an unsupported combination. The fixture defines only these two offered variants.

Synthetic variant requirement sheet
ConstraintRequired recordExample decision rule
Selection completenessColour + sizeBoth required before SKU mapping
Allowed combinationOffered tuple → SKUBlue/small → SKU-BS
Unsupported choiceExplicit no matching SKUBlue/large cannot become SKU-BS
Download editable CSV ↓

Test incomplete and unsupported choices

Filled synthetic acceptance cases
CaseInputExpected decision
Blue onlySize missingAsk for size; no SKU selected
Blue / largeNot offeredShow unavailable combination
Red / largeOffered tupleSelect SKU-RL
Download editable CSV ↓
  1. Read complete option tuple
  2. Find exact offered mapping
  3. Keep missing or unsupported state explicit
  4. Pass selected SKU to order

A missing mapping after a catalogue edit needs review; it must not silently select the first item.

How many of the three shown selections produce a SKU?

Show the worked answer

One, red/large → SKU-RL. Blue-only is incomplete and blue/large is unsupported.

Keep the option-to-SKU map beside the requirement so a demo tests identity, not only a changing product picture.

Related resources