Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

decision(delete-user-data): kit/extension parity – event source is per function, not per instance

Đang mở
#3,255 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
firebase, typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Read kits/delete-user-data/src/events.ts and the documented behavior in kits/delete-user-data/README.md; compare these with the extension publisher in functions/src/index.ts. Decide whether to pass an instance level source or record the current behavior as an accepted difference under Decisions in #3249. Done means the chosen resolution is implemented or documented and subscribers have a consistent, explicit expectation for source.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

decision kits

delete-user-data kit/extension parity. Priority: low. Event subscribers that filter on source stop matching.

Difference
  • Extension: every event has one source per instance: //firebaseextensions.googleapis.com/extensions/projects/<p>/instances/<id>.
  • Kit: source is the publishing function, projects/<p>/locations/<region>/services/kit-<id>-<function>, so one instance emits three different sources (clearData, handleSearch, handleDeletion). Types and payloads are identical. The kit README already documents this.
Reproduced

Captured events from both sides on the same channel: the type and data match, and only source differs, as described above.

Code
  • Extension: the platform sets EVENTARC_CLOUD_EVENT_SOURCE per instance; publishes at index.ts#L106.
  • Kit: no source passed, so firebase-admin uses the CLI's per-function EVENTARC_CLOUD_EVENT_SOURCE (events.ts#L58-L66); documented in README.md#L205-L216.
Resolution

Two options:

  • Pass one source per instance in publishDeletionEvent (firebase-admin uses event.source when it's set), so subscribers can still filter on one instance.
  • Keep the documented behaviour and record it as an accepted difference under "Decisions" in #3249.
Ngôn ngữ chính
TypeScript
Star
978
Fork
433
Merge trung bình
20 giờ 44 phút
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/extensions

Tất cả issue của firebase/extensions

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.