Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firestore deploy works with multiple databases b/267549787 #5553

Merged
merged 5 commits into from
Feb 25, 2023

Conversation

VicVer09
Copy link
Contributor

@VicVer09 VicVer09 commented Feb 24, 2023

b/267549787

Manual testing instructions:

    {
      "database": "(default)",
      "rules": "firestore.rules",
      "indexes": "firestore.indexes.json"
    },
    {
      "database": "named",
      "rules": "named.rules",
      "indexes": "named.indexes.json"
    }
  ]
  • run firebase deploy --only firestore
  • check composite indexes are updated using gcloud:
    gcloud firestore indexes composite list --database named
    gcloud firestore indexes composite list --database \(default\)
  • check rules are updated for default by checking ui
  • check rules are updated for named db by trying to write a document to named database using api
  • modify rules/indexes slightly and deploy again, verify the changes are picked up

@VicVer09 VicVer09 changed the base branch from master to victorvim-main February 24, 2023 20:01
@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2023

Codecov Report

Base: 55.99% // Head: 55.99% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (5ed7c37) compared to base (d08a2ab).
Patch coverage: 9.52% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff               @@
##           victorvim-main    #5553   +/-   ##
===============================================
  Coverage           55.99%   55.99%           
===============================================
  Files                 317      318    +1     
  Lines               21612    21563   -49     
  Branches             4420     4403   -17     
===============================================
- Hits                12101    12075   -26     
+ Misses               8454     8426   -28     
- Partials             1057     1062    +5     
Impacted Files Coverage Δ
src/firestore/indexes.ts 31.39% <0.00%> (ø)
src/deploy/firestore/prepare.ts 18.91% <5.00%> (+1.27%) ⬆️
src/deploy/firestore/deploy.ts 22.58% <5.26%> (-8.19%) ⬇️
src/firestore/fsConfig.ts 7.50% <9.09%> (ø)
src/deploy/firestore/release.ts 26.66% <18.18%> (-6.67%) ⬇️
src/rulesDeploy.ts 95.41% <100.00%> (ø)
src/extensions/manifest.ts 77.77% <0.00%> (-4.28%) ⬇️
src/deploy/hosting/convertConfig.ts 73.68% <0.00%> (-2.29%) ⬇️
src/prompt.ts 94.44% <0.00%> (-0.56%) ⬇️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@VicVer09 VicVer09 merged commit 5049de4 into victorvim-main Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants