Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#3,255 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
firebase, typescript
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
978
Fork
433
Merge medio
21h 58m
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/extensions

Tutte le issue di firebase/extensions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.