docs: API inventory + GFV topology for Python migration - #8
Open
kengggg wants to merge 6 commits into
Open
Conversation
Map every explicit route plus auth policies, request fields, response envelope, and domain tables so a FastAPI + modern Postgres rewrite can target faithful client parity. Note endpoints present in tests/apiary but missing from routes.js for follow-up.
Incorporate independent Grok, Fable Max, and Codex Sol Ultra findings: document userReports global SQL as production behavior, ILI any-of rule, registration validation, dual identity, GFV non-repo status, and ADRs for parity decisions.
Document Global Flu View as a live separate Django path mount on api.sicksense.org (historical api_globalfluview DNS never created), owner-held Basic auth, and Fable Max production SQL verification that single-arg crosstab corrupts all stored symptom/ILI flags. Target end state is a unified multi-outlet export in the new Python codebase (Phase B) while keeping Django alive through the mobile rewrite.
Owner chose option A: when the multi-outlet export ships, recompute and republish all GFV weeks from raw sicksense data rather than forward-only fixes. Wire the decision into GLOBAL_FLU_VIEW, open questions, and F1 notes.
Record outlet ILI choice and Thai/English vocabulary mapping as wiki unknowns to confirm before Phase B re-export; link from exploration index.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Inventory-only groundwork for a faithful rewrite (FastAPI + SQLAlchemy 2 + Alembic, Postgres 16/17 + PostGIS, existing mobile clients), plus resolved Global Flu View topology and data-quality findings.
GFV (owner decisions)
api_globalfluview.sicksense.orgapi.sicksense.org/globalfluview/*Explicit non-goals in this PR
Test plan