You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mixed bag of low findings from the FOCA 0.16.0 pre-release review (details in the review report):
docs/access-control.md (around lines 742, 784, 881) calls get_collection() with one argument; the signature is get_collection(db, collection), so the examples raise TypeError.
The Swagger UI returns 500 unless the spec is also served (api_swagger_ui: true without api_serve_spec, or swagger_ui: true, serve_spec: false); the docs present the UI as working on its own. Not a regression.
examples/petstore-access-control still uses the 0.15 helpers (no add_owner, resource_filter, service clients or on-behalf-of).
ruff and mypy are unpinned in CI and differ from the pinned pre-commit ruff, so lint results can't be reproduced from a tag.
Each ownership endpoint request reloads the whole policy collection several times (PUT 7, DELETE 6, GET 3).
Expected
Fix the doc examples.
Enable serving the spec when the UI is enabled (or reject the combination in validation), with tests, and fix the docs.
Switch the example to the new ownership API and extend its smoke test.
Pin ruff and mypy for CI in one place updated by Dependabot and keep the pre-commit rev in step.
Reuse one enforcer per request (e.g. on flask.g), or document the per-request cost in the scaling notes if that's not clean.
Activity
uniqueg commentedon Oct 22, 2026
Done in #391.