Skip to content

BUG-33: GET /requests has no filter for open and closed requests, which the Requests tab shows #146

Closed

Description

@ephico2real2

Part of #19

What is wrong: GET /api/v1/requests filters status on one lifecycle state. The Requests tab of the mockup has two chips, Open and Closed, and each covers more than one state. No parameter gives either group.

Where: cmapi/src/cmapi/routers/requests.py, the route list_requests. The mockup is mockups/portal/Main.dc.html:2599. docs/02-technical-design-v2.md:172 has status= only, so the design also has this gap.

How to prove it: A test creates one pending and one cancelled request, and reads the list with the new filter for open requests. Only the pending request must be in the answer.

Measured or inferred: Read from the code and the mockup at ecc5cb3 on 2026-11-13, by OB1's diagram agent.

Severity: Low.

What must hold after the fix: One request gives all open requests, and one gives all closed requests. The open states are the six of OPEN_STATES in core/db/models.py. The parameter is in the OpenAPI document with a description and an example, and docs/02 names it.

Research: Not done yet.

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

Class: INV. The fix adds a filter.

Activity

  1. added
    bug
    class:INV
    status:open
    sev:low
    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:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions