firebase / extensions

Source code for official Firebase extensions
https://firebase.google.com/products/extensions
Apache License 2.0
882 stars 373 forks source link

🐛 [delete-user-data] Inconsistent Behavior with 'Enable Auto Discovery' #2027

Closed 9jorgeLuis closed 2 months ago

9jorgeLuis commented 3 months ago

Hello,

I've been using the Firebase 'Delete User Data' extension with the 'Enable Auto Discovery' feature enabled, but I've encountered an issue where it does not consistently delete all user-related data, leading to some data being left undeleted.

Environment:

Extension version: 0.1.20 Firebase project configuration: Affected collections: (library)

Steps to Reproduce:

Configure the 'Delete User Data' extension with 'Enable Auto Discovery' turned on. Set up Firestore collections with references to user IDs. Delete a user from Firebase Authentication. Observe that some data related to the user in Firestore collections is not deleted. Expected Behavior: All user-related data in Firestore collections should be deleted when using the 'Enable Auto Discovery' feature of the 'Delete User Data' extension, following the extension's configuration.

Actual Behavior: Some user-related data in Firestore collections remains undeleted.

Thank you.

cgilbu commented 2 months ago

I'm encountering the same issue after extensive testing over several days. I've opened another GitHub issue where I provide detailed information about the specific failures and instructions on how to replicate it. You can find more in-depth details there:

Critical: [delete-user-data] Recursive Deletion Fails to Remove Subcollections When Using Auto Discovery

cabljac commented 2 months ago

Closing as fix is merged. I will cut a new release today. If this reoccurs with 0.1.21 then I will reopen the issue above :)

9jorgeLuis commented 2 months ago

Good morning, today I continued testing the extension and everything works perfectly, thank you very much for your help @cabljac.