Skip to content

Approvals: GET /api/v1/requests has no filter for recently decided requests, so the portal has no Recently decided card #304

In review

Description

@ephico2real2

Part of #20. Found while building #300 (portal slice 2).

What is missing

The mockup's Approvals tab (mockups/portal/Main.dc.html, the isApprovals block) ends with a "Recently decided" card: the requests that were approved or rejected lately, each with who decided and where it went next. The mockup's GET /api/v1/requests row for the tab (docs/diagrams/portal-architecture/README.md, row 23) names ?status=pending_approval&approver=me only.

GET /api/v1/requests (cmapi/contract/openapi.json, main d51560d, 2026-11-15) filters by status, state, approver=me, clusterId, requestedBy and q. No parameter gives the requests decided recently, or decided by the caller, so the portal could only fetch pages and filter in the browser, which the portal's rules forbid (filters are server parameters).

What the portal does until it exists

The portal's Approvals tab has no "Recently decided" card. A decision made in the tab stays on its card with the mockup's callout until the tab is left. cmapi-portal-ui/MOCKUP-CONTRACT.md lists this as a difference with this issue's number.

Done when

  • GET /api/v1/requests takes a parameter for decided requests (for example decided=recent, newest decision first), documented and with a recorded sample.
  • The portal shows the card from it, and the difference line goes.

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. added
    Backlog
    status:open
    on Nov 19, 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

    Backlogenhancementstatus:open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions