Skip to content
Astera Technology

Define what an import preview actually validates

Distinguish shape checks from permission, relationship and final-write checks.

Give each preview result a scope

An import preview is not a standard guarantee shared by APIs. Define its checks explicitly and obtain the target’s documented error behaviour. This synthetic contract performs no write; a passed preview can become stale before commit.

Synthetic preview coverage
CheckExampleWhat passing proves
Field shapequantity is an integerSubmitted representation is acceptable
Reference lookupparent_id=P-5 exists at preview timeParent existed at that observation
Write authorityRole can create this record nowCurrent permission check passed
Capacity at commitNo write/reservation made in previewNothing about later availability
Download editable CSV ↓

Recheck mutable conditions on commit

Save the preview input revision and check that the committed payload matches it. Revalidate relationships and authority where the target requires them. If the parent disappears or a limit changes, return an actionable row error rather than treating preview success as permission to override.

A parent is deleted after preview but before import. What test belongs in the contract?

Show the worked answer

Commit rejects or safely defers the dependent row under the documented relationship rule, with no orphan record. The preview result remains evidence of an earlier check only.

Related resources