Checking Data Created by an Earlier Version

Existing records can contain values, optional fields, or layouts accepted under earlier contracts. A change should account for those supported cases.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an absent summary
  2. Use realistic fixtures

Trace an absent summary

A newer page can expect a summary. Older records created without it may need a view fallback or backfill under the domain's rules. See changing a schema.

Use realistic fixtures

Build a small fixture with the previously allowed structure, then load it through the normal new entry point. Record versioning describes the compatibility problem.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩