Skip to content

Commit

Permalink
Merge branch 'enh/archived-users-orgs' of https://github.com/yeatmanl…
Browse files Browse the repository at this point in the history
…ab/roar-dashboard into enh/archived-users-orgs
  • Loading branch information
kellyel committed Sep 24, 2024
2 parents 0ece276 + b0f9fd7 commit 5086d03
Show file tree
Hide file tree
Showing 19 changed files with 545 additions and 186 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These owners will be the default owners for everything in the repo. Unless a
# later match takes precedence, these owners will be requested for review when
# someone opens a pull request.
* @yeatmanlab/roar-maintainers
4 changes: 0 additions & 4 deletions .github/workflows/firebase-hosting-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
- name: Install dependencies
run: npm ci

# Inject the App Check Debug Token into the .env file at build time
- name: Create .env file with App Check Debug Token
run: echo "VITE_APPCHECK_DEBUG_TOKEN=${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}" >> .env

- name: Build project
run: npm run build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
PARTICIPANT_USERNAME: ${{ secrets.PARTICIPANT_USERNAME}}
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -88,6 +89,7 @@ jobs:
PARTICIPANT_USERNAME: ${{ secrets.PARTICIPANT_USERNAME}}
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -126,6 +128,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: 'vite production build'
env:
NODE_OPTIONS: '--max_old_space_size=8192'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: 'vite staging build'
env:
NODE_OPTIONS: '--max_old_space_size=8192'
Expand Down
116 changes: 116 additions & 0 deletions firebase/admin/firestore.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2998,6 +2998,10 @@
"collectionGroup": "classes",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "schoolId",
"order": "ASCENDING"
Expand All @@ -3012,6 +3016,10 @@
"collectionGroup": "classes",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "schoolId",
"order": "ASCENDING"
Expand All @@ -3022,10 +3030,70 @@
}
]
},
{
"collectionGroup": "classes",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districtId",
"order": "ASCENDING"
},
{
"fieldPath": "lastRoarSync",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "districts",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "families",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "groups",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3040,6 +3108,10 @@
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3054,6 +3126,10 @@
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3068,6 +3144,10 @@
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3082,6 +3162,10 @@
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3096,6 +3180,10 @@
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "archived",
"order": "ASCENDING"
},
{
"fieldPath": "districtId",
"order": "ASCENDING"
Expand All @@ -3106,6 +3194,20 @@
}
]
},
{
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districtId",
"order": "ASCENDING"
},
{
"fieldPath": "lastRoarSync",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "users",
"queryScope": "COLLECTION",
Expand Down Expand Up @@ -3352,6 +3454,20 @@
}
]
},
{
"collectionGroup": "users",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districts.current",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "archived",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "users",
"queryScope": "COLLECTION",
Expand Down
Loading

0 comments on commit 5086d03

Please sign in to comment.