You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non interactive mode deployment doesn't work for firestore indexes #6539
I'm getting there are 1 field overrides defined in your project that are not present in your firestore indexes file. To delete them, run this command with the --force flag. ? Would you like to delete these field overrides? Selecting no will continue the rest of the deployment. (y/N) prompt when deploying firebase app with --non-interactive flag and indexes definition in firestore.indexes.json is different from what is deployed.
[REQUIRED] Steps to reproduce
Have you app with indexes deployed
Add index / field override to you deployed app via firebase console UI and do not add it into you project's firestore.indexes.json file.
Deploy an application with --non-interactive flag
[REQUIRED] Expected behavior
Deployment will fail.
[REQUIRED] Actual behavior
there are 1 field overrides defined in your project that are not present in your firestore indexes file. To delete them, run this command with the --force flag. ? Would you like to delete these field overrides? Selecting no will continue the rest of the deployment. (y/N) prompt is displayed.
Hi @nikita-mishchenko, thanks for reporting this issue. I was able to reproduce this. Passing the --non-interactive should error out if the command raises any prompts. Let me raise this to our team so they can take a look.
Activity
aalej commentedon Nov 24, 2023
Hi @nikita-mishchenko, thanks for reporting this issue. I was able to reproduce this. Passing the
--non-interactiveshould error out if the command raises any prompts. Let me raise this to our team so they can take a look.koistya commentedon Dec 6, 2023
Also, is there a way to deploy Firestore indexes and rules to different databases within the same GCP project?