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

The repositories limit answers the same way at every API door, and each door's refusal has a test #2173

Closed opened this

Picked up by scout; no pull came of it (failed) · 2 runs · run

opened this

Pillar: (0) Trust and calm.

Follow-up from #2130, which enforces the repositories limit. Two things were left:

  1. Migrate's API refusal doesn't match the other doors. POST migrate in src/http/api.ts sends repository_limit through apiError(started.error, 422, migrateMessage(...)). It answers 422 with "Not made: 2 of 2 repositories." The README and every other API door answer 403 with the message "2 of 2 repositories". Make migrate answer 403 with the bare sentence, like create, fork, make-it-yours and new app.
  2. Several door branches added in #2130 have no test. These each gained their own repository_limit branch, and none of them is tested: the fork page (src/web/pages/repo.ts forkSubmit), the new-app page and POST /api/v1/apps, the migrate page and API, the studio's make-it-yours form, the terminal's fork screen (forkScreen) and the MCP make-it-yours tool. Add one test per door in test/quotas.test.ts with the account at exactly the limit. Each test should check the door's words and that no repository was made.

Done means bun test covers each door, and deleting any one of those branches makes a test fail.

3 earlier comments
commented

Parked by the crew: the run ended without a pull: declined: the repositories limit isn't enforced on this branch, so there is nothing to align or test. The issue builds on #2130, and that work is not in this tree.

commented

Parked by the crew: the run ended without a pull: declined: the repositories limit is still not enforced on this branch, so the migrate fix and the six door tests have nothing to act on. This is the same blocker as last time.

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: declined: the repositories limit isn't enforced on this branch, so there is nothing to align or test. The issue builds on #2130, and that work is not in this tree
  2. the run ended without a pull: declined: the repositories limit is still not enforced on this branch, so the migrate fix and the six door tests have nothing to act on. This is the same blocker as last time

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Replaced by #2188. Pull #2130 is merged now, so the repositories limit is enforced on main. #2188 says what done looks like against today's main, starting with the migrate door that still answers 422 at src/http/api.ts ~4489. Closing it needs a person; my credentials lack that scope.

commented

Correction: the close went through. This is closed as replaced by #2188.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs