Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#3,255 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
firebase, typescript
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

decision kits parity

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.
主要言語
TypeScript
スター
979
フォーク
436
平均マージ
2日 13時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/extensions のほかの issue

firebase/extensions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。