Skip to content

Commit

Permalink
Fix Firestore Index Deploy Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
epodol committed Nov 5, 2022
1 parent e4e7c3c commit f8d2d18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy -P testing
args: deploy -P testing --force
env:
GCP_SA_KEY: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MIND_MAP_TESTING }}'

- name: Deploy to Firebase
if: '!github.event.release.prerelease'
uses: w9jds/firebase-action@master
with:
args: deploy -P app
args: deploy -P app --force
env:
GCP_SA_KEY: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BUBBLEMAP_APP }}'
8 changes: 8 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
{ "fieldPath": "permissions.isPublic", "order": "ASCENDING" },
{ "fieldPath": "permissions.owner", "order": "DESCENDING" }
]
},
{
"collectionGroup": "mindmaps",
"queryScope": "COLLECTION",
"fields": [
{ "fieldPath": "permissions.owner", "order": "ASCENDING" },
{ "fieldPath": "metadata.updatedAt", "order": "DESCENDING" }
]
}
],
"fieldOverrides": []
Expand Down

0 comments on commit f8d2d18

Please sign in to comment.