Skip to content

switch zone route warning to an info message#10761

Merged
petebacondarwin merged 1 commit intomainfrom
pbd/switch-zone-warning-to-infio
Oct 1, 2025
Merged

switch zone route warning to an info message#10761
petebacondarwin merged 1 commit intomainfrom
pbd/switch-zone-warning-to-infio

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Sep 25, 2025

Fixes #10751


@petebacondarwin petebacondarwin requested a review from a team as a code owner September 25, 2025 14:49
@changeset-bot
Copy link

changeset-bot bot commented Sep 25, 2025

🦋 Changeset detected

Latest commit: 7f760e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@github-actions
Copy link
Contributor

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main pbd/switch-zone-warning-to-infio might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-10761
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 25, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10761

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10761

miniflare

npm i https://pkg.pr.new/miniflare@10761

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10761

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10761

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10761

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10761

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10761

wrangler

npm i https://pkg.pr.new/wrangler@10761

commit: 7f760e3

@petebacondarwin petebacondarwin force-pushed the pbd/switch-zone-warning-to-infio branch from cd54693 to 472938d Compare September 25, 2025 16:42
Mahmoodyazdanpanah

This comment was marked as off-topic.

Comment on lines 1540 to 1552
expect(std.err).toMatchInlineSnapshot(`""`);
expect(std.warn).toMatchInlineSnapshot(`
"▲ [WARNING] The current authentication token does not have 'All Zones' permissions.

Falling back to using the zone-based API endpoint to update each route individually.
Note that there is no access to routes associated with zones that the API token does not have
permission for.
Existing routes for this Worker in such zones will not be deleted.


▲ [WARNING] Previously deployed routes:
"▲ [WARNING] Previously deployed routes:

The following routes were already associated with this worker, and have not been deleted:
Copy link
Member

Choose a reason for hiding this comment

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

Should we add a snapshot test for std.info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doh! I merged this too soon. Yes you are right.

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Sep 30, 2025
@petebacondarwin petebacondarwin merged commit 886e577 into main Oct 1, 2025
41 of 45 checks passed
@petebacondarwin petebacondarwin deleted the pbd/switch-zone-warning-to-infio branch October 1, 2025 11:33
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Oct 1, 2025
petebacondarwin added a commit that referenced this pull request Oct 2, 2025
edmundhung pushed a commit that referenced this pull request Oct 2, 2025
* switch zone route warning to an info message

* relax request content type check

* fixup! switch zone route warning to an info message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Lacking all zones permission should be an INFO not a WARNING

3 participants