Repository navigation
build: correct the deploy release note and tell 0.1.0 projects how to add a primary origin - #2399
Conversation
… add a primary origin The replace-plan-apply-with-deploy changeset still said the server handlers are stubs and the commands do not work against a live server. They do; drop that paragraph and keep the one user-facing line about the @zitadel/api client operations. A project set up with 0.1.0 holds its app URL as a preview origin only, so its first deploy on 0.2.0 fails for want of a primary origin, and re-adding the URL as primary conflicts. Say how to switch it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🦋 Changeset detectedLatest commit: 4cb907f The changes in this PR will be included in the next version bump. This PR includes changesets to release 26 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
🟢 Approval recommended
It is a text-only edit to an unreleased changeset whose command names, quoted error, and conflict behavior all match the current codebase, with no shipped code impact.
No open issues 🎉
What changed in this PR
This PR corrects release-note copy in the still-unreleased .changeset/replace-plan-apply-with-deploy.md, which feeds the @zitadel/cli, @zitadel/server, and @zitadel/api changelogs in the pending version PR (#2226). It removes a now-stale paragraph claiming the server handlers are stubs (and referencing the unpublished @zitadel/api-mock), and adds guidance for projects set up with 0.1.0 whose app URL was registered as a preview origin and therefore fail their first deploy.
Changes:
- Replace the stale "handlers are stubs / commands do not yet work against a live server" paragraph with a single line describing what
@zitadel/apiadds. - Add an "Upgrading a project set up with 0.1.0" paragraph with the working
origin list→origin rm→origin add --kind primary→deploysteps. - Drop the reference to the unpublished
@zitadel/api-mock.
| File | Description |
|---|---|
.changeset/replace-plan-apply-with-deploy.md |
Corrects release-note text: removes the stale stubs/api-mock paragraph and adds a verified 0.1.0 upgrade note, keeping the copy customer-facing. |
Review effort: Balanced
Summary
This fixes two problems in the 0.2.0 release notes. Both come from the
replace-plan-apply-with-deploychangeset, which feeds the@zitadel/cli,@zitadel/serverand@zitadel/apichangelogs in the pending version PR (#2226). Both turned up in a local smoke test of the packed 0.2.0 CLI, run on a project set up with 0.1.0.A stale paragraph. The last paragraph said the server handlers "are stubs", so the commands "do not yet work against a live server". It also named
@zitadel/api-mock, which isn't published. Those handlers have since been implemented. In the smoke test against a real 0.2.0 server,deploy,deployment list,deployment getanddeployment rollbackall worked. This PR replaces the paragraph with one line, for API client users, on what@zitadel/apiadds.A missing upgrade note. 0.1.0's
setupregistered the app URL as aprevieworigin, while 0.2.0'ssetupregisters it asprimary.applyis gone, so a 0.1.0 project's firstdeployfails withE_VALIDATION"The project has no primary origin to deploy to". The hint suggestsorigin add <url> --kind primary. Run on the app URL, that fails withE_CONFLICT"the pattern is already stored with a different kind". This PR adds a paragraph with the steps that work:origin list,origin rm <url>, thenorigin add <url> --kind primary, then deploy.Validation
node scripts/check-changesets-status.mjsand--pending: ok.corepack pnpm exec changeset status --since origin/main: the planned bumps are unchanged.node scripts/check-pr-title.mjs --title "…": ok.moon run workspace:check -- --only release: passed.cli:test, because my earliermoon run release:packhad left the five platform server binaries underapps/server-*/bin/(gitignored). With those moved aside, it passed. CI has no such files.moon run release:packfrom the version PR's head (8f68965fe).@zitadel/cli@0.1.0against a 0.1.0 local server, then switched that folder to the packed 0.2.0 CLI.startrestarted the server as 0.2.0.deployfailed with the missing-origin error.origin add http://localhost:3517 --kind primaryfailed withE_CONFLICT.origin rm http://localhost:3517, thenorigin add http://localhost:3517 --kind primary, succeeded, anddeploythen landed onhttp://localhost:3517.Release notes / changeset
This edits the existing, still-unreleased
.changeset/replace-plan-apply-with-deploy.md(@zitadel/cli,@zitadel/serverand@zitadel/api, minor) and adds no new changeset. The version PR picks the new text up when it regenerates. Nothing else ships.Notes
deploysuggestsorigin listand hints atorigin add, and the plainaddconflicts for upgraded projects. Adoctorcheck or fix that makes the setup URL primary would remove the manual step. That's a follow-up and not part of this PR.statusanddoctorcall it healthy and don't say it is from another release. The draft feat: make the CLI refuse a local server that another release started #2360 adds that check.--json(variable resolve NAME --json) prints nothing on stdout and exits 127. 0.1.0 does the same.🤖 Generated with Claude Code