queues subscriptions create: no email.sending source type, and no zone/domain flags
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
cf queues subscriptions create コマンドから始め、--source-type の選択肢とソース固有のフラグをどのように定義しているか確認します。その処理を、issue に示されている Wrangler コマンドおよび API が受け付ける subscription body と比較します。email.sending が受け付けられ、ゾーン ID とドメインのフラグが source.zone_id と source.domain に値を設定すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
cf queues subscriptions create cannot create an Email Sending event subscription with flags. The --source-type choice list has no email.sending, and there are no flags for the two fields that source needs (zone_id and domain). The only way is --body. This is the same kind of gap as #179 (Artifacts), plus the missing source fields.
Version: cf v1.0.0-beta.10
Actual
$ cf queues subscriptions create --source-type email.sending --events message.bounced --dry-run
┌ Error
│ Invalid values:
│ Argument: source-type, Given: "email.sending", Choices: "images", "kv", "r2",
│ "superSlurper", "vectorize", "workersAi.model", "workersBuilds.worker",
│ "workers.script", "workflows.workflow"
└
Expected
email.sendingin the--source-typechoices.- Flags for the source's
zone_idanddomain, for example--source-zone-idand--source-domain. Wrangler has--zone-idand--domainfor this source (wrangler queues subscription create <queue> --source email.sending --zone-id <id> --domain <domain>), and it sends them assource.zone_idandsource.domain.
The Email Service docs describe these subscriptions: https://developers.cloudflare.com/email-service/platform/event-subscriptions/
Workaround that works
cf queues subscriptions create --body '{"name":"<name>","enabled":true,"source":{"type":"email.sending","zone_id":"<zone id>","domain":"<sending domain>"},"destination":{"type":"queues.queue","queue_id":"<queue id>"},"events":["message.bounced","message.complained","message.rejected","message.failed"]}'
The API accepted this and returned the subscription with "source": {"name": "Email Service", "type": "email.sending", ...}. Related: #181 (events typed as a string in the schema).
- 主要言語
- TypeScript
- スター
- 916
- フォーク
- 53
- 平均マージ
- 18時間 42分
- マージ済み PR(30日)
- 199
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudflare/cf のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudflare/cf#344 ·
メンテナーはふだん 1 日以内に返信
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` template対応中かも @jamesopstad が 12 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudflare/cf#223 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cloudflare/cf#179 ·
メンテナーはふだん 1 日以内に返信
-
Ctrl+C leaves `cf dev` stuck at "Terminate batch job (Y/N)?" on Windows in npm projects再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
cloudflare/cf#412 ·
メンテナーはふだん 1 日以内に返信
-
`cf d1 migrations create` hides the migration on Windows when the name contains `:`再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
cloudflare/cf#410 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
microsoft/playwright#43640 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
grasshopper-protocol/grsshppr#172 ·
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tencent/teamai-cli#1397 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DouyinFE/semi-design#3641 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信