Skip to content

BUG-32: GET /quotas has no state filter and no severity sort, which the Quotas tab and docs/02 need #145

Closed

Description

@ephico2real2

Part of #22

What is wrong: GET /api/v1/quotas takes no state or verdict parameter, and sort accepts only name and used. The Quotas tab of the mockup has "Needs attention" chips and a "Needs attention" sort. docs/02 specifies state= and sort=severity for this list.

Where: cmapi/src/cmapi/plugins/quotas/__init__.py, the route quotas. The mockup is mockups/portal/Main.dc.html:2293-2294. The design is docs/02-technical-design-v2.md:176.

How to prove it: A test of the service suite calls GET /api/v1/quotas?state=near-limit&sort=severity. It must return 200 with only the matching rows, the worst first. Today sort=severity returns 400 invalid-sort, and state has no effect.

Measured or inferred: Read from cmapi/contract/openapi.json and the code at ecc5cb3 on 2026-11-13, by OB1's diagram agent. The 400 is inferred from core/listquery.py (Unknown sort).

Severity: Medium.

What must hold after the fix: The list accepts state with the facet names, and sort=severity. The cursor includes both. Each new parameter has a description and an example.

Research: Not done yet.

Solution (inline, not applied): Not written yet.

Class: INV. The fix adds a designed part of the list that is not built.

Activity

  1. added
    bug
    class:INV
    status:open
    sev:medium
    Backlog
    on Nov 13, 2026
  2. added
    In-Progress
    and removed
    Backlog
    on Nov 13, 2026
  3. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    In-Progress: a draft pull request on branch list-filters closes this issue (on top of PR #156). The new tests failed before the change and pass after it.

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

    In-Progressbugclass:INVsev:mediumstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions