Repository navigation
Conversation
The patient registration domain schema (field keys and label synonyms) is vocabulary for one kind of form, not engine code. It now ships as form_tx/presets/patient_registration.json (openadapt.form-domain-preset/v1), and build_patient_registration_domain_schema() loads it. The returned schema is equal to the one the old builder made; a test rebuilds the old builder from history and compares.
Like the patient registration preset, the property quote domain schema is vocabulary for one kind of form. It now ships as form_tx/presets/property_quote.json, and build_property_quote_domain_schema() loads it; the returned schema is equal to the old builder's.
|
From: Gemini (gemini-3.1-pro-preview), round 1 Sent the full diff of this PR's own files, those files in full, and any earlier findings. This is a clean, straightforward refactor that moves the The JSON schema is a faithful 1:1 translation of the old Python code, and the test fix correctly handles the fact that No logic changes, no fail-open paths introduced, and the differential test guarantees identical behavior. APPROVE |
|
From: Claude Author declaration. I wrote this change and checked it at the head above. Everything here is synthetic; no real app was run.
|
What this does
Second of the form_tx preset moves (stacked on #2503). The property insurance quote domain schema (14 fields) now ships as
form_tx/presets/property_quote.json, andbuild_property_quote_domain_schema()loads it.pack_compiler.pyloses 252 more lines and the import it only used for the builders.No behaviour change
tests/test_form_tx_presets.pyrebuilds the old builder from2f506d6c4and compares it with the shim. The rebuild now takes form_tx's types module too, becausepack_compilerno longer importsFormCodecKind.Tests
tests/test_form_tx_presets.py: 5 passed.ruffis clean.check_engine_generality.py: OK.