Remove 64 Python docstrings and 39 comments, and trim prose from three noqa pragmas. The submodule had zero tracked Markdown files.
Move published route descriptions into decorator arguments and the Correction schema description into ConfigDict. Drop internal docstrings, including the OAuth callback excluded from OpenAPI. Published route descriptions are unchanged in the before-and-after comparison of the nine application routers. The full application OpenAPI check requires fastapi-users, which is missing from the shared environment.
Remove both training-input endpoints and their endpoint-only test. Keep bundle import and clinical-validation uploads, which use their own API paths. External-folder training continues through cluster and TEA_REFERENCE_ROOT.
Keep the TrainingSource union named in OpenAPI and serialize the selected variant directly into the flat job config. Keep the inputs GET for file-type metadata and upload availability, and remove the listing and its description. Cover both job payloads, reject site-only extraneous fields, and verify upload validation.
- main.py: both routers sets (execution, preview from tea/parity; sources, users from
rebuild).
- runs.py: tea/parity's cancel, history and execution config; rebuild's /terminate is the
same action and is not kept twice.
- eeg.py: tea/parity's (the record reads per-child FHIR resources, not rebuild's EEG
detail with zones and relation).
- fhir.py: tea/parity's patient rows with TEA filters, plus rebuild's name/identifier
search applied to whatever rows the request selects.
- models.py: tea/parity's endpoints; /models/{domain} returns rebuild's name + title.
- tests: P7 deletions kept (test_cacu, test_cama, test_conectar, test_synthea*, test_tea);
test_webapp keeps tea/parity's runner, now with the first administrator (sign-in).
1. No prose in code
- Remove parity-added Python comments and docstrings across the EEG, FHIR,
execution, preview, training and run code and tests. Preserve endpoint
descriptions as explicit FastAPI schema metadata.
2. No hacks, no glued code
- Read the declared TEA patient filters and training inputs directly and
use the same TEA check for exposing and validating reference options.
- Give the Dagster GraphQL request one helper. Keep lock backoff and
cancellation polling because their timing and error behavior are
covered by run tests and they handle different Dagster states.
- Use the renamed FHIR report ID helper in the hospital test. Keep
TEA_GATE_SLOW local to that test and preserve the test assertions.
3. Everything in its place
- Keep endpoint and run handling in WebApi and reuse Core and Persistance
for domain rules and reads. Leave tests in the existing testpaths.
Use the models router for curves and training inputs, the EEG router for summary, and a separate preview router. Keep the preview result typed with the existing persistence model and declare multipart binary schemas for generated Blob parameters.
test_runs.py: 17 passed on SQLite and Postgres
(compose test stack). test_conectar.py fails on an identity-merge count, as it does on tea/parity
without this change.