Follow-up list and patient risk routes are always registered; en_dev() is deprecated #11

Merged
edgar merged 1 commits from fix/dev-only-routes into dev 2026-11-09 11:34:01 -06:00
Member

GET /cacu/seguimiento and GET /cacu/pacientes/<pac_id>/riesgo were registered only when DEV_REVISION was set. No deployment sets it any more, so both answered 404 and the follow-up tab stayed empty although the data was there.

  • create_app registers both blueprints always. Every response still carries simulado: true; who may see these routes is left to an access rule, not an environment variable.
  • en_dev() is kept, deprecated (DeprecationWarning), with no callers.
  • Tests: the two tests that required a 404 without DEV_REVISION now check the routes exist without it; one test checks the deprecation warning. tests/test_seguimiento.py and tests/test_patient_risk.py: 14 passed. The full suite's 10 failures (OCR without Tesseract, SQL Server without pymssql) are the same on dev without this change.

Note: the routes now exist in every deployment, production included.

`GET /cacu/seguimiento` and `GET /cacu/pacientes/<pac_id>/riesgo` were registered only when `DEV_REVISION` was set. No deployment sets it any more, so both answered 404 and the follow-up tab stayed empty although the data was there. - `create_app` registers both blueprints always. Every response still carries `simulado: true`; who may see these routes is left to an access rule, not an environment variable. - `en_dev()` is kept, deprecated (`DeprecationWarning`), with no callers. - Tests: the two tests that required a 404 without `DEV_REVISION` now check the routes exist without it; one test checks the deprecation warning. `tests/test_seguimiento.py` and `tests/test_patient_risk.py`: 14 passed. The full suite's 10 failures (OCR without Tesseract, SQL Server without `pymssql`) are the same on `dev` without this change. Note: the routes now exist in every deployment, production included.
edgar added 1 commit 2026-11-09 11:30:39 -06:00
edgar merged commit b9adedbf6f into dev 2026-11-09 11:34:01 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ISSSTELEON/WebApi#11