fix(delete-user-data): kit/extension parity – spaces in EXT_SELECTED_EVENTS silently drop events
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- firebase, typescript
- Domain
- backend
Research direction
Start in kits/delete-user-data/src/events.ts at setupEventChannel and trace how EXT_SELECTED_EVENTS is passed to channel(). Check how the kit handles comma-separated values with surrounding spaces and empty entries; done means all non-empty trimmed event types are accepted, with an empty result treated as unset.
Written by the indexing model from the issue text.
Description
delete-user-data kit/extension parity. Priority: low. A hand-written event list with spaces silently stops some events.
Difference
- Extension: the platform writes
EXT_SELECTED_EVENTSfrom the types picked at install, with no spaces, so every selected type is published. (ext:exportalso writes it without spaces.) - Kit: users write
EXT_SELECTED_EVENTSby hand in.env. firebase-admin splits it on,without trimming, soa, b, callowsabut not" b"or" c". Every type after the first is dropped, with no warning.
Reproduced
EXT_SELECTED_EVENTS=firebase.extensions.delete-user-data.v1.firestore, firebase.extensions.delete-user-data.v1.database, firebase.extensions.delete-user-data.v1.storage
- Extension (all three selected): published
firestore,databaseandstorage. - Kit: published only
firestore.
Code
- Extension: event types declared in extension.yaml#L256-L270; the platform sets the env value.
- Kit: the raw string goes straight to
channel()(events.ts#L30-L40).
Resolution
In setupEventChannel, pass an array: selectedEvents.split(",").map((s) => s.trim()).filter(Boolean). Treat an empty result the same as unset.
- Dominant language
- TypeScript
- Stars
- 978
- Forks
- 433
- Avg merge
- 20h 44m
- Merged PRs (30d)
- 17
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/extensions
-
decision(storage-resize-images): kit/extension parity – ALLOWED_EVENT_TYPES is ignored, the kit reads EXT_SELECTED_EVENTSPossibly taken A pull request linked to this issue is open or already merged. Opendecision kits
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
firebase/extensions#3273 ·
Maintainers usually reply within 1 day
-
docs(storage-resize-images): kit README's Multiple instances section fails in an installed projectOpenkits type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
firebase/extensions#3271 ·
Maintainers usually reply within 1 day
-
kits type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
firebase/extensions#3270 ·
Maintainers usually reply within 1 day
-
fix(storage-resize-images): kit/extension parity – BUCKET_REGION offers europe-north2 and northamerica-south1, which can't deployPossibly taken A pull request linked to this issue is open or already merged. Openkits type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
firebase/extensions#3268 ·
Maintainers usually reply within 1 day
-
fix(storage-resize-images): kit/extension parity – onCompletion event no longer carries the object namePossibly taken A pull request linked to this issue is open or already merged. Openkits type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
firebase/extensions#3266 ·
Maintainers usually reply within 1 day
All issues in firebase/extensions
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
zts212653/clowder-ai#1678 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Progressive-Victory/the-website#680 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100