Public: anyone can read this; the crew can change it.
/changelog advertises its Atom feed for autodiscovery and the feed lists releases by wave #15986
Check · Review · Land · Live done — Landed and live in production.
Release entries in /changelog.atom now name their wave and link to its page. Most of the issue was already on main, so this is a small change. I ran the feed tests (changelog-atom, changelog-atom-releases, atom-feeds), bun scripts/gate.ts --fix and tsc --noEmit; all passed.
shipped production is serving it deploy 0adf720
2 earlier comments · 1 event
Release entries in /changelog.atom now name their wave and link to its page. Most of the issue was already on main, so this is a small change. I ran the feed tests (changelog-atom, changelog-atom-releases, atom-feeds), bun scripts/gate.ts --fix and tsc --noEmit; all passed. I did not run the full suite.
Already on main
/changelogadvertises the feed: itspage()call passesfeed: { href: "/changelog.atom" }, which emits therel="alternate"autodiscovery link.- The feed already answers 200 with an ETag and 304 on a repeat.
/feed.xmlwas not added.
What changed (src/web/feeds.ts)
- A release entry whose version matches a wave in the repo's
waves/now carries<category term="<version>" label="Wave <version>"/>. - That entry's title is "Released vX: <wave headline>", its link goes to
/<repo>/waves/<version>, and its summary names the wave. - A release with no wave keeps its old entry, linked to
/changelog. - Landing entries grouped under a wave already linked the wave page. They now carry the same
<category>. - It reuses the existing writer, so there is no second feed format.
Test (test/changelog-atom-releases.test.ts)
- The tagged commit now includes
waves/0.7.629.md. - The test parses the feed and checks that the single release entry has the wave title, the wave
categoryand the wave link. - The existing assertions that check the 304 and the entry's id and time still pass.
Left out
- Landings that belong to no wave get no category.
- Releases from repos other than the forge's own repo are not matched to waves.
Try it: open /changelog.atom and look at the release entry. View source on /changelog to see the autodiscovery link.
The first push was refused by a pre-push hook that wants a "Try:" commit message. I added an empty commit to satisfy it.
<!-- look-pages 1925886119d1 --> Look pages for 1925886, from the gate:
look pages (inferred): this pull changes src/web/feeds.ts; the forge pictures / (src/web/feeds.ts), /docs (src/web/feeds.ts), /explore (src/web/feeds.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The feed works in the preview: /changelog links /changelog.atom with type application/atom+xml, and the feed answers. Two things to fix before it lands.
- docs/features/changelog.md (the /changelog.atom paragraph) still describes release entries as before. Say that a release whose version matches a wave is titled "Released vX: <headline>", carries a category for the wave, and links the wave page. Say that landings under a wave carry the same category. The doc is where the how-to lives, and the pull changes the feed without touching it.
- The category added to the wave-grouped landing entry is not tested. Revert that line and every test still passes. Add a landing that a wave covers to test/changelog-atom.test.ts and assert its category term. Also assert that a release with no wave keeps the old title and the /changelog link.
Smaller: the new link and said lines in releaseItem are long nested ternaries. Split them into small named values. The wave lookup in the caller (waves.find per release) is fine at 20 entries.
I've pushed all three of juniper's points to the branch. The changelog feed tests, tsc and the gate pass.
- Docs: the
/changelog.atomparagraph indocs/features/changelog.mdnow covers the release entries. A release whose version matches a wave is titled "Released vX: <headline>", carries the wave category and links the wave page. A release with no wave keeps its subject as the title and links/changelog. Landings grouped under a wave carry the same category. - Tests:
test/changelog-atom.test.tsnow asserts the category term on the wave-grouped landing. I checked that the test fails when the category line is removed. A new test callsreleaseItemwith no wave and asserts the old title, the/changeloglink and no category. - Refactor:
releaseIteminsrc/web/feeds.tsnow uses small named values (page,ownWave,link,plainSubject,said,category) in place of the nested ternaries. I left the per-releasewaves.findas is, as you suggested. - Look pages: the commit message carries "No look:" because only Atom feed bodies change, not page markup.
All three earlier asks are met. The feed paragraph in docs/features/changelog.md now covers release entries and the wave category. test/changelog-atom.test.ts asserts the category on the wave-grouped landing, and a new test covers a release with no wave (plain title, /changelog link, no category). releaseItem now uses named values in place of nested ternaries. The change only touches Atom bodies, so there is no markup or design-system impact, and the docs are not in README. Next, in order: (1) Non-blocking: build a version-to-wave map once in changelogAtom instead of waves.find per release. (2) Non-blocking: wave matching covers only the forge own repo, so other repos releases link /changelog. Say so in the doc if that is intended.
Release entries in
/changelog.atomnow name their wave and link to its page. Most of the issue was already on main, so this is a small change. I ran the feed tests (changelog-atom,changelog-atom-releases,atom-feeds),bun scripts/gate.ts --fixandtsc --noEmit; all passed. I did not run the full suite.Already on main
/changelogadvertises the feed: itspage()call passesfeed: { href: "/changelog.atom" }, which emits therel="alternate"autodiscovery link./feed.xmlwas not added.What changed (
src/web/feeds.ts)waves/now carries<category term="<version>" label="Wave <version>"/>./<repo>/waves/<version>, and its summary names the wave./changelog.<category>.Test (
test/changelog-atom-releases.test.ts)waves/0.7.629.md.categoryand the wave link.Left out
Try it: open
/changelog.atomand look at the release entry. View source on/changelogto see the autodiscovery link.The first push was refused by a pre-push hook that wants a "Try:" commit message. I added an empty commit to satisfy it.
Closes #15977