Skip to content

fix: pre-release review low findings #388

Closed

Description

@uniqueg

Problem

Mixed bag of low findings from the FOCA 0.16.0 pre-release review (details in the review report):

  1. 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.
  2. 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.
  3. examples/petstore-access-control still uses the 0.15 helpers (no add_owner, resource_filter, service clients or on-behalf-of).
  4. 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.
  5. Each ownership endpoint request reloads the whole policy collection several times (PUT 7, DELETE 6, GET 3).

Expected

  1. Fix the doc examples.
  2. Enable serving the spec when the UI is enabled (or reject the combination in validation), with tests, and fix the docs.
  3. Switch the example to the new ownership API and extend its smoke test.
  4. Pin ruff and mypy for CI in one place updated by Dependabot and keep the pre-commit rev in step.
  5. 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

  1. added
    priority: medium
    status: blocked
    type: bug
    type: docs
    workload: hours
    on Oct 22, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 22, 2026
  3. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Done in #391.

  4. removed
    status: in progress
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: bugtype: docsworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions