PIPE-647: Resolve pipeline resources by name#13960
Conversation
🦋 Changeset detectedLatest commit: a4b1ab5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
✅ All changesets look good |
|
The After thorough review, I've found one real logic issue: Bug in Actually, I realize there's no real bug here. The whole flow is correct. Let me look one more time at a subtlety -- in Let me check one more edge case in the test expectations -- the "resolves pipeline by name across multiple pages" test: The test sets Wait actually -- the mock does client-side filtering by name. If After this thorough review, I believe the code is well-structured and correct. The patterns are consistent, error handling is proper, and tests cover the key scenarios. There are no logic bugs, security issues, or backward compatibility problems. LGTM |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
f9783cd to
4830e42
Compare
Background ---------- Users hitting `wrangler pipelines ...` commands with resource names were seeing API 1015/1016 errors because the CLI only attempted ID lookups. Why ---- The pipelines API resolves names server-side, but the CLI needs to retry with a listing fallback whenever the API returns known "not found" status codes. This preserves compatibility for pipelines, streams, and sinks that users identify by name. What changed ------------ * added a shared resolver that retries on 404/1000/1015/1016 responses * switched get/delete commands to resolve IDs via the fallback helper * extended list client methods and tests to cover name pagination cases See https://jira.cfdata.org/browse/PIPE-647 PIPE-647: Handle hex-like pipeline resource names
4830e42 to
a4b1ab5
Compare
|
I think this will need a docs update with the new options... |
you mean bonk won't do this for me 😢. Docs update incoming... |
|
@petebacondarwin corresponding docs PR cloudflare/cloudflare-docs#31025 |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Background
Users hitting
wrangler pipelines ...commands with resource names were seeing API 1015/1016 errors because the CLI only attempted ID lookups.Why
The pipelines API resolves names server-side, but the CLI needs to retry with a listing fallback whenever the API returns known "not found" status codes. This preserves compatibility for pipelines, streams, and sinks that users identify by name.
What changed
Fixes https://jira.cfdata.org/browse/PIPE-647
A picture of a cute animal (not mandatory, but encouraged)