Skip to content

Commit

Permalink
Add invitations index for home view (#186)
Browse files Browse the repository at this point in the history
# Add invitations index for home view

## ♻️ Current situation & Problem
Querying upcoming appointments doesn't work on staging, because of
missing index.


## ⚙️ Release Notes 
* Add invitations index for home view


## ✅ 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).
  • Loading branch information
arkadiuszbachorski authored Nov 12, 2024
1 parent 7d075ae commit 00466c8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 00466c8

Please sign in to comment.