Skip to content

A test ties the portal's UI-to-API map to the OpenAPI document #186

Closed

Description

@ephico2real2

Part of #20

Why

docs/diagrams/portal-architecture/README.md maps each action of the portal mockup to the API endpoint that it needs, and says which endpoints are built. No test compares it with cmapi/contract/openapi.json. So a row can say "built" for an operation that the document does not have, or name a path that changed. Wave 6 builds the portal from this map.

Tasks

  • Research the form of the map: which column names the method and path, and how a row says built or not built.
  • Add a test: each row that says built names a method and a path of cmapi/contract/openapi.json, and each row that says not built names none.
  • Add the reverse count: the operations of the document that no row uses, held to the list in the README.
  • Fix each row that the first run finds wrong, with a defect for each.

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Review ruled
  • Merged with its proof
  • Released on the default branch

Class

INV. The work adds a check between the portal's map and the API contract.

Activity

  1. added
    task
    class:INV
    status:open
    Backlog
    on Nov 13, 2026
  2. added
    In-QA
    and removed
    Backlog
    on Nov 13, 2026
  3. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    In-QA: pull request for branch portal-map-test, head 806c679. The first run found the map out of date (31 operations and 18 unused; the contract has 32 and 19 after #180). 2 of the 6 tests fail on the documents of main, and each passes now.

  4. added a commit that references this issue on Nov 13, 2026
  5. added
    Done
    and removed
    In-QA
    on Nov 13, 2026
  6. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Done: pull request #194 merged to main as a29e683. GitHub Actions run 43515076678 was green on the exact head 3fd2b4d (six jobs). 2 of the 6 tests failed on the documents of main before the correction, and each passes now.

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

    Doneclass:INVstatus:opentask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions