Skip to content

fix(delete-user-data): kit/extension parity – spaces in EXT_SELECTED_EVENTS silently drop events #3259

Open

Description

@CorieW

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_EVENTS from the types picked at install, with no spaces, so every selected type is published. (ext:export also writes it without spaces.)
  • Kit: users write EXT_SELECTED_EVENTS by hand in .env. firebase-admin splits it on , without trimming, so a, b, c allows a but 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, database and storage.
  • Kit: published only firestore.

Code

Resolution

In setupEventChannel, pass an array: selectedEvents.split(",").map((s) => s.trim()).filter(Boolean). Treat an empty result the same as unset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions