queues subscriptions create: no email.sending source type, and no zone/domain flags
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu từ lệnh cf queues subscriptions create và xem cách lệnh này định nghĩa các lựa chọn của --source-type cùng các flag dành riêng cho từng nguồn. So sánh cách xử lý đó với lệnh Wrangler được nêu trong issue và nội dung subscription mà API chấp nhận. Hoàn tất khi email.sending được chấp nhận và các flag zone ID và domain điền giá trị vào source.zone_id và source.domain.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- TypeScript
- Star
- 960
- Fork
- 62
- Merge trung bình
- 19 giờ 7 phút
- Pull request đã merge (30 ngày)
- 193
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudflare/cf
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/cf#344 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templateCó thể đã có người làm @jamesopstad đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#223 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cloudflare/cf#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
cloudflare/cf#475 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cf build warns about workspace auto-configuration with an explicit Bun workspace Worker configĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cloudflare/cf#472 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudflare/cf
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
unocss/unocss#5421 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Azure/typespec-azure#5936 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
vercel-labs/scriptc#2910 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation missing-model model-sync provider:fireworks-ai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/models.dev#12458 ·
Maintainer thường phản hồi trong vòng 1 ngày