From 00466c897f1b9974212ede4cd68a00e1bc5e36ad Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:24:50 +0100 Subject: [PATCH] Add invitations index for home view (#186) # Add invitations index for home view ## :recycle: Current situation & Problem Querying upcoming appointments doesn't work on staging, because of missing index. ## :gear: Release Notes * Add invitations index for home view ## :white_check_mark: Testing I came with this index after testing on `dev` environment. ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). --- firestore.indexes.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/firestore.indexes.json b/firestore.indexes.json index 322da049..cc6c9447 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -14,6 +14,24 @@ } ] }, + { + "collectionGroup": "invitations", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "user.clinician", + "order": "ASCENDING" + }, + { + "fieldPath": "user.organization", + "order": "ASCENDING" + }, + { + "fieldPath": "user.type", + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "users", "queryScope": "COLLECTION",