Deleting Firestore index exemption from Firebase CLI

52 views
Skip to first unread message

Tomo Suzuki

unread,
Feb 29, 2020, 10:57:51 AM2/29/20
to Firebase Google Group
Hi Firebase folks,

Is it possible to delete Firestore index exemption from Firebase CLI? I tried it and it says:

> firestore: there are some field overrides defined in your project that are not present in your firestore indexes file. Run firebase firestore:indexes and save the result to correct the discrepancy.

This implicitly says "You need to use Firebase Console to delete index exemptions".

Regards,
Tomo

Screen Shot 2020-02-28 at 9.00.41 PM.png


Sam Stern

unread,
Feb 29, 2020, 12:56:44 PM2/29/20
to Firebase Google Group
Hi Tomo,

Right now when you manage indexes or exemptions using the Firebase CLI it only appends or updates, it never deletes.  So yes, you'll have to use the console to delete the exemption.   

This is my fault: I wrote that part of the CLI.  At the time I was biasing towards safety since I didn't want someone to run "firebase deploy" and destroy their index configuration. 

Would you mind filing a feature request on firebase-tools for us to revisit this? 

Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/633254da-2fc0-4fed-a121-13b59f8a4ce4%40googlegroups.com.

Tomo Suzuki

unread,
Mar 1, 2020, 11:05:37 AM3/1/20
to Firebase Google Group
Hi Sam,

Thank you for clarifying that. Created an issue:

Regards,
Tomo

On Saturday, February 29, 2020 at 12:56:44 PM UTC-5, Samuel Stern wrote:
Hi Tomo,

Right now when you manage indexes or exemptions using the Firebase CLI it only appends or updates, it never deletes.  So yes, you'll have to use the console to delete the exemption.   

This is my fault: I wrote that part of the CLI.  At the time I was biasing towards safety since I didn't want someone to run "firebase deploy" and destroy their index configuration. 

Would you mind filing a feature request on firebase-tools for us to revisit this? 

Sam

On Sat, Feb 29, 2020, 7:57 AM Tomo Suzuki <tomotom...@gmail.com> wrote:
Hi Firebase folks,

Is it possible to delete Firestore index exemption from Firebase CLI? I tried it and it says:

> firestore: there are some field overrides defined in your project that are not present in your firestore indexes file. Run firebase firestore:indexes and save the result to correct the discrepancy.

This implicitly says "You need to use Firebase Console to delete index exemptions".

Regards,
Tomo

Screen Shot 2020-02-28 at 9.00.41 PM.png


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages