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

The retire confirm page lists the account's own repositories and apps too, not only its organizations' #1710

shipped production is serving it opened this has it

Landed in pull #1897 · run

opened this

Pillar (0) Trust and calm.

GET /settings/accounts/:username/retire (from #1681) is rendered from retirementPlan (src/actions/accounts.ts), and that function lists only the organizations the account alone owns. But retireAndRemoveAccount also calls removeOwnedRepos(app, admin, user, …), which deletes every repository the account itself owns and tears down its apps. So the confirm page leaves things out, and with no sole-owned organization its lead says "removes only the account" even though the account's repositories go as well.

Done means:

  • retirementPlan also returns the account's own repositories, each with its app (or a separate own field).
  • The confirm page lists them under the account's name, and the lead sentence only says "only the account" when there are no repositories either.
  • test/accounts-retire.test.ts gives a person one repository of their own and asserts the page names it. Also assert that the zero-organization lead does not claim "only the account" while a repository exists.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs