Skip to content

auto_update: Strip pre-release and build metadata from release notes URL#48570

Merged
osiewicz merged 2 commits intozed-industries:mainfrom
RubenFricke:fix-release-notes-url-build-metadata
Mar 18, 2026
Merged

auto_update: Strip pre-release and build metadata from release notes URL#48570
osiewicz merged 2 commits intozed-industries:mainfrom
RubenFricke:fix-release-notes-url-build-metadata

Conversation

@RubenFricke
Copy link
Copy Markdown
Contributor

@RubenFricke RubenFricke commented Feb 6, 2026

Without this fix, the zed.dev server doesn't recognize the version with metadata and redirects to /releases, which
defaults to the Stable channel, so Preview users end up seeing Stable release notes.

Closes #47539

Changes:

  • Strip pre and build metadata from the semver version in release_notes_url before constructing the path, so the URL
    becomes /releases/preview/0.218.0 instead of /releases/preview/0.218.0-beta.1+preview.131.68e98a53.
  • Standardized the ordering of pre/build clearing to pre-first across all 4 call sites (2 were build-first).

Open question: With this fix, the URL now points to the specific version you're running (e.g.
/releases/preview/0.218.0). An alternative would be to link to /releases/preview (no version) so users can see all
Preview releases, including ones newer than what they have installed. I went with per-version linking since it matches
the existing intent of the code, but happy to change it if the team prefers the other approach.

Release Notes:

  • Fixed "View Release Notes" in Preview/Stable opening the wrong release channel page due to build metadata in the URL.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 6, 2026
@RubenFricke
Copy link
Copy Markdown
Contributor Author

Friendly bump! This PR has been open for a few weeks now, just checking if there's anything I should change or if someone could take a look when they get a chance. Happy to adjust the approach if the team has a preference (see open question in the description). Thanks :)

@osiewicz @SomeoneToIgnore

The release notes URL was constructed with the full semver version
including build metadata (e.g. 0.218.0+preview.131.68e98a53), causing
zed.dev to not find the release and redirect to /releases (Stable).
The test caused scheduler cross-talk with test_auto_update_downloads
when running in parallel on CI.
@RubenFricke RubenFricke force-pushed the fix-release-notes-url-build-metadata branch from f7ac1d1 to 28ca974 Compare March 18, 2026 08:38
Copy link
Copy Markdown
Member

@osiewicz osiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I've simply been underperforming as a reviewer recently. Your PR looks good to me. Thank you!

@osiewicz osiewicz merged commit d3f0510 into zed-industries:main Mar 18, 2026
29 checks passed
AmaanBilwar pushed a commit to AmaanBilwar/zed that referenced this pull request Mar 18, 2026
…URL (zed-industries#48570)

Without this fix, the zed.dev server doesn't recognize the version with
metadata and redirects to /releases, which
defaults to the Stable channel, so Preview users end up seeing Stable
release notes.

Closes zed-industries#47539

  Changes:
- Strip pre and build metadata from the semver version in
release_notes_url before constructing the path, so the URL
becomes /releases/preview/0.218.0 instead of
/releases/preview/0.218.0-beta.1+preview.131.68e98a53.
- Standardized the ordering of pre/build clearing to pre-first across
all 4 call sites (2 were build-first).



Open question: With this fix, the URL now points to the specific version
you're running (e.g.
/releases/preview/0.218.0). An alternative would be to link to
/releases/preview (no version) so users can see all
Preview releases, including ones newer than what they have installed. I
went with per-version linking since it matches
the existing intent of the code, but happy to change it if the team
prefers the other approach.

  Release Notes:

- Fixed "View Release Notes" in Preview/Stable opening the wrong release
channel page due to build metadata in the URL.
AmaanBilwar pushed a commit to AmaanBilwar/zed that referenced this pull request Mar 20, 2026
…URL (zed-industries#48570)

Without this fix, the zed.dev server doesn't recognize the version with
metadata and redirects to /releases, which
defaults to the Stable channel, so Preview users end up seeing Stable
release notes.

Closes zed-industries#47539

  Changes:
- Strip pre and build metadata from the semver version in
release_notes_url before constructing the path, so the URL
becomes /releases/preview/0.218.0 instead of
/releases/preview/0.218.0-beta.1+preview.131.68e98a53.
- Standardized the ordering of pre/build clearing to pre-first across
all 4 call sites (2 were build-first).



Open question: With this fix, the URL now points to the specific version
you're running (e.g.
/releases/preview/0.218.0). An alternative would be to link to
/releases/preview (no version) so users can see all
Preview releases, including ones newer than what they have installed. I
went with per-version linking since it matches
the existing intent of the code, but happy to change it if the team
prefers the other approach.

  Release Notes:

- Fixed "View Release Notes" in Preview/Stable opening the wrong release
channel page due to build metadata in the URL.
AmaanBilwar pushed a commit to AmaanBilwar/zed that referenced this pull request Mar 23, 2026
…URL (zed-industries#48570)

Without this fix, the zed.dev server doesn't recognize the version with
metadata and redirects to /releases, which
defaults to the Stable channel, so Preview users end up seeing Stable
release notes.

Closes zed-industries#47539

  Changes:
- Strip pre and build metadata from the semver version in
release_notes_url before constructing the path, so the URL
becomes /releases/preview/0.218.0 instead of
/releases/preview/0.218.0-beta.1+preview.131.68e98a53.
- Standardized the ordering of pre/build clearing to pre-first across
all 4 call sites (2 were build-first).



Open question: With this fix, the URL now points to the specific version
you're running (e.g.
/releases/preview/0.218.0). An alternative would be to link to
/releases/preview (no version) so users can see all
Preview releases, including ones newer than what they have installed. I
went with per-version linking since it matches
the existing intent of the code, but happy to change it if the team
prefers the other approach.

  Release Notes:

- Fixed "View Release Notes" in Preview/Stable opening the wrong release
channel page due to build metadata in the URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zed Preview: "View Release Notes" lands on /releases/stable due to build-metadata version in URL

2 participants