docs: address reviewer feedback from issues #208-#215#225
Merged
Conversation
- #208: add intro + 15-item TOC to api/datamodels.md; add intro to api/pipeline.md clarifying programmatic vs HTTP API distinction - #209: expand pixi env table to all 9 environments; fix test command description (verbose output, no coverage; use test-cov for coverage) - #210: add Authentication section to webservice README explaining JWT, why POST is used, and Bearer header usage pattern - #211: add Linux, Windows, and pixi cross-platform pgschema install instructions to SQL_FIRST_WORKFLOW.md - #212: clarify manual migration scenarios (views, data migrations, downgrades); show DATABASE_URL export alternative to inline form - #214: rewrite Deployment, Security, Scalability, and Future Architecture sections as reality-based prose; remove aspirational bullet lists - #215: move pixi run migrate to explicit step 3 before run-etl; note that start-services handles migrations automatically at startup - #213: no file changes; outdated command already removed in prior commit
Documentation build overview
Show files changed (16 files in total): 📝 16 modified | ➕ 0 added | ➖ 0 deleted
|
This was referenced Mar 29, 2026
Closed
Closed
3 tasks
2 tasks
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.
📄 Description
Resolves all eight sub-issues raised by external reviewer mglbleta in issue #207
(Docs Improvements/Questions for UW-SSEC team).
Each change was reviewed against the original reviewer question to ensure the
response is complete, accurate, and directly answers what was asked. A
devil's-advocate pass was done before implementation to ensure coverage ≥ 90%
per issue. See
supporting_files/docs-improvement.mdfor the full per-issuebreakdown including issue comments.
Note: This PR intentionally does not modify
docs/api/index.mdormkdocs.yml— those files are already updated by PR #204 (static APIreference), which is currently in review.
#208 — API Reference Docs (
docs/api/datamodels.md,docs/api/pipeline.md)Added a "How to use this page" section to both auto-generated API reference
pages:
datamodels.md: explains who the page is for (developers querying/extendingmodels), clarifies it is not the HTTP REST API reference, and adds a
15-item table of contents linking to every domain section so readers can
navigate without scrolling the entire auto-generated output.
pipeline.md: explains this is the programmatic Python package API (not HTTPendpoints), and why it lives under "API Reference" rather than the pipeline
workflow guides.
#209 — CONTRIBUTING.md
Two fixes:
default,gis) with a complete table of all 9 current environments frompixi.toml—
default,py312,py313,gis,etl,webservice,frontend,docs,deployment— each with a one-line purpose description.pixi run testrunspython -m pytest -ra --cov=ca_biositing. It actually runspython -m pytest tests/ --verbose(verbose output, no coverage). Added apointer to
pixi run test-covfor coverage reports.Decision on the "self-contained vs. link-out" question: keeping CONTRIBUTING.md
self-contained — it is meant to be a one-stop guide for new contributors.
#210 — docs/webservice/README.md
Added an Authentication section below the API Overview table covering:
POSTis used for/v1/auth/token(credentials in request body, notURL, to stay out of server logs and browser history)
encodes identity)
Authorization: Bearer <token>)#211 — docs/datamodels/SQL_FIRST_WORKFLOW.md
Expanded the
pgschemainstall section from macOS-only to four options:chmod +x, move to/usr/local/bin/.exebinary from GitHub releases; noted as best-effort(workflow primarily tested on macOS/Linux)
pixi run install-pgschema— simplest option onmacOS/Linux
#212 — docs/pipeline/ALEMBIC_WORKFLOW.md
Two improvements:
concrete scenarios where autogenerate cannot help — (1) materialized views
(
CREATE MATERIALIZED VIEWis invisible to Alembic autogenerate),(2) data migrations (transforming existing row values requires custom Python
logic), (3) downgrades (rolling back is always manual).
export DATABASE_URL=...once in the shell session asa cleaner alternative to the inline prefix on every command.
#213 — Pipeline Overview (comment only, no file changes)
The
docker-compose exec app alembic upgrade headcommand referenced in theissue no longer exists in
src/ca_biositing/pipeline/README.md— it wasalready removed in a prior commit. Resolved with an issue comment confirming
pixi run migrateis equivalent and preferred.#214 — docs/architecture.md
Rewrote four sections as reality-based prose, removing aspirational bullet
lists that described unimplemented capabilities:
schema source of truth, Prefect UI +
/v1/healthfor observability. Removed:Kubernetes, automated backups, centralised logging.
credentials. Removed: rate limiting, audit logging, data anonymisation, RBAC.
pagination, Prefect retry. Removed: Redis, unimplemented connection pooling,
multi-region.
Decomposition, Cloud-Native Migration, Analytical Query Layer) each explaining
the trigger condition and noting how the current structure already makes the
transition tractable — rather than listing technology names as bullets.
#215 — README.md / docs/README.md
Reordered the ETL pipeline quick-start block so
pixi run migrateis explicitstep 3 (before
pixi run run-etlas step 4). Added an inline commentclarifying that
start-servicesalready applies migrations automatically viathe
setup-dbcontainer at startup —pixi run migrateis for pulling newmigration files without restarting services.
✅ Checklist
pre-commit run --all-filesand all checks pass🔗 Related Issues
Resolves #208
Resolves #209
Resolves #210
Resolves #211
Resolves #212
Resolves #213
Resolves #214
Resolves #215
References #207
💡 Type of change
🧪 How to test
pixi run -e docs docs-serveand verify the site builds without errors.page" intro and 15-item TOC appear above the auto-generated content.
explains the programmatic vs. HTTP API distinction.
9 environments and the test command description matches
pixi run test.appears below the API Overview table.
and pixi install options appear under Prerequisites.
section lists three concrete scenarios and the DATABASE_URL blocks show the
export alternative.
pixi run migrateappears as step 3 beforepixi run run-etlin the quick-start block.and Future Architecture sections are prose paragraphs, not bullet lists.
📝 Notes to reviewers
docs/api/index.mdandmkdocs.yml— both arealready modified by PR Docs/changelog and static api reference #204 (static API reference page, currently in review).
Merging this PR before Docs/changelog and static api reference #204 is safe; merging Docs/changelog and static api reference #204 after will add to the
existing API Reference nav without conflict.
issue explaining that the referenced outdated command was already removed and
confirming
pixi run migrateis the preferred approach.supporting_files/docs-improvement.md) shouldbe posted on [Docs]: API Reference Docs #208–[Docs]: Home / Overview #215 after this PR merges.