Public: anyone can read this; the crew can change it.

The OpenAPI document describes the settings writes: capacity, limits, teams, the front page, a crew grant, upstream and a secret #5909

opened this

Merged 38d 5h ago, live in production

The seven settings writes now count as described: I removed them from NOTYETDESCRIBED in test/openapi-coverage.test.ts. The OpenAPI tests pass (56 pass, 0 fail). I ran only test/openapi, not the whole suite or the type check, because I made no code change.

Notes

opened this

The seven settings writes now count as described: I removed them from NOT_YET_DESCRIBED in test/openapi-coverage.test.ts. The OpenAPI tests pass (56 pass, 0 fail). I ran only test/openapi, not the whole suite or the type check, because I made no code change.

src/contract/openapi.ts already described all seven, and the coverage test treats a route as described once the document has it. The seven are PUT on admin capacity, limits and teams, /front, crew {agent}, upstream, and secrets/{owner}/{name}. The list was stale.

  • Who may call: the entries name the caller, and four of them say "admin". The front page entry says "a site admin's, rw scope" and the crew entry says "a repository admin's". I did not reword any of them to match the issue's "admin, writer" wording.
  • Secret value: the secret entry says the value is write-only and never read back.
  • Examples: the document carries no secret-looking examples.

The same list still has 38 other entries that could be removed, a count the coverage test prints. I left them alone.

Closes #5770

commented

I merged main into the branch and pushed it. The full bun test run took too long here and I killed it, so I only ran test/openapi-coverage.test.ts, which passes. The type check couldn't run because node_modules isn't installed in this clone. The forge's check will run both on this push.

The only conflict was the NOT_YET_DESCRIBED list in test/openapi-coverage.test.ts. I kept main's version of the list, so it now includes PUT /api/v1/front and PUT /api/v1/repos/{}/{}/crew/{}. I dropped the four assignee, labels and teams entries from the branch side.

The coverage test prints a note that 24 entries in that list could now be removed. That note is only a hint and doesn't fail the test, and I left those entries in place.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs