You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(serving): the address notice for retired and deleted patches; one owner for / and the catch-all #258
Part of #247. Implements spec §11 and the routing calls of §9; decisions The patch lifecycle (the address of a retired or deleted patch) and the prototype, amendment 9.
What to build
The address notice in packages/serving: for a retired or deleted patch, /<company>/<patch>, its /~v/<n> URLs and its content URL answer an active colleague a first-party page on the app shell (who took it off, when, which state, days left from purgeAt when deleted) with Restore for the owner or an admin (Serving asks Patches whether the current version's sources are off: a form posting to the portal's /patches/<name>/restore when they are live, a link to that page when they are off; Serving never imports the portal) and a link to the card; a signed-out reader keeps the login door; another company's member and a disabled patch keep the 404; a reclaimed patch is 404 for everyone. A public patch that is off is doored like a company one; the notice is private, no-store.
Routing: / and the /* catch-all registered by the server in one place (with ticket 8's portal owning the signed-in /); an overlong patch name in /patches/:name and :patchRef answers 414 through the guard's table like the other routes.
Admitted at merge
The lifecycle is complete for readers. Blocked on ticket 8 because the notice's Restore posts to the portal's route and the root's ownership is settled with it.
Done when
NodeHttpServer.layerTest covers the notice for a colleague (owner, admin and member variants), the door for a signed-out reader and the 404 for a foreign reader, on the address, a version URL and the content URL; a public retired patch is doored; the cache headers; the 414.
Surfaces
Served pages (ui-consistency; the notice is an htmlPage page, not renderPatchWrapper), the Serving glossary (Address notice from decided to built; Login door unchanged), docs/product.md § Updating, retiring, deleting (the colleague's notice) from decided to built, ADR-0010 if the door text there names the states.
Activity