Why: NewOrgDialog (ui/src/org/NewOrgDialog.vue) calls POST /api/orgs through api.orgCreate, and the binary serves only GET /api/orgs. The organisations page also offers the dialog, so the button fails against archie. ui/test/api-paths.test.ts missed it because it compares paths, not methods.
Exposure: every operator who opens Settings, Organisations and presses create.
Done when: the page offers only what the binary serves (the binary resolves one organisation per deployment from the credential, and GET /api/orgs returns exactly it), or the binary gains the operation, and the conformance test compares the method as well as the path so the next one fails the gate.
**Why**: `NewOrgDialog` (ui/src/org/NewOrgDialog.vue) calls `POST /api/orgs` through `api.orgCreate`, and the binary serves only `GET /api/orgs`. The organisations page also offers the dialog, so the button fails against `archie`. `ui/test/api-paths.test.ts` missed it because it compares paths, not methods.
**Exposure**: every operator who opens Settings, Organisations and presses create.
**Done when**: the page offers only what the binary serves (the binary resolves one organisation per deployment from the credential, and `GET /api/orgs` returns exactly it), or the binary gains the operation, and the conformance test compares the method as well as the path so the next one fails the gate.
sam
added the bugmedium labels 2026-11-27 08:39:20 +00:00
NewOrgDialog and api.orgCreate are gone; the organisations page lists the organisation the binary resolves (one per deployment, from the credential) and no longer offers to create another. That is the same shape the page already had for everything else on it: reads through GET /api/orgs, no writes the binary has no operation for.
The conformance test now compares methods: ui/test/api-paths.test.ts reads each request(...)/send(...) call in the client, takes the method: that call asks for (GET when it names none) and normalises the path the same way the OpenAPI document does, so POST /api/orgs fails against a document that serves only GET there. Proved by putting the call back: the test then fails with POST /api/orgs, and passes once removed.
task check passes on a clean worktree at the commit.
Fixed in bf17e2471.
`NewOrgDialog` and `api.orgCreate` are gone; the organisations page lists the organisation the binary resolves (one per deployment, from the credential) and no longer offers to create another. That is the same shape the page already had for everything else on it: reads through `GET /api/orgs`, no writes the binary has no operation for.
The conformance test now compares methods: `ui/test/api-paths.test.ts` reads each `request(...)`/`send(...)` call in the client, takes the `method:` that call asks for (GET when it names none) and normalises the path the same way the OpenAPI document does, so `POST /api/orgs` fails against a document that serves only GET there. Proved by putting the call back: the test then fails with `POST /api/orgs`, and passes once removed.
`task check` passes on a clean worktree at the commit.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why:
NewOrgDialog(ui/src/org/NewOrgDialog.vue) callsPOST /api/orgsthroughapi.orgCreate, and the binary serves onlyGET /api/orgs. The organisations page also offers the dialog, so the button fails againstarchie.ui/test/api-paths.test.tsmissed it because it compares paths, not methods.Exposure: every operator who opens Settings, Organisations and presses create.
Done when: the page offers only what the binary serves (the binary resolves one organisation per deployment from the credential, and
GET /api/orgsreturns exactly it), or the binary gains the operation, and the conformance test compares the method as well as the path so the next one fails the gate.Fixed in
bf17e2471.NewOrgDialogandapi.orgCreateare gone; the organisations page lists the organisation the binary resolves (one per deployment, from the credential) and no longer offers to create another. That is the same shape the page already had for everything else on it: reads throughGET /api/orgs, no writes the binary has no operation for.The conformance test now compares methods:
ui/test/api-paths.test.tsreads eachrequest(...)/send(...)call in the client, takes themethod:that call asks for (GET when it names none) and normalises the path the same way the OpenAPI document does, soPOST /api/orgsfails against a document that serves only GET there. Proved by putting the call back: the test then fails withPOST /api/orgs, and passes once removed.task checkpasses on a clean worktree at the commit.