Skip to content

Commit

Permalink
LEVANTE admin abilities: creating orgs, administrations, registering …
Browse files Browse the repository at this point in the history
…users
  • Loading branch information
Zio-4 committed Apr 4, 2024
1 parent faa417c commit de7d724
Show file tree
Hide file tree
Showing 18 changed files with 1,535 additions and 43 deletions.
13 changes: 12 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"default": "gse-roar-admin",
"assessment": "gse-roar-assessment",
"admin-dev": "gse-roar-admin-dev",
"assessment-dev": "gse-roar-assessment-dev"
"assessment-dev": "gse-roar-assessment-dev",
"levante-assessment-dev": "hs-levante-assessment-dev",
"levante-admin-dev": "hs-levante-admin-dev",
"levante-assessment": "hs-levante-assessment-prod",
"levante-admin": "hs-levante-admin-prod"
},
"targets": {
"gse-roar-admin": {
Expand All @@ -15,6 +19,13 @@
"roar-staging"
]
}
},
"hs-levante-admin-dev": {
"hosting": {
"production": [
"hs-levante-admin-dev"
]
}
}
},
"etags": {}
Expand Down
296 changes: 296 additions & 0 deletions firebase/LEVANTE/admin/firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
{
"indexes": [
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districts",
"order": "ASCENDING"
},
{
"fieldPath": "classes",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "families",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "readOrgs.classes",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "readOrgs.districts",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "readOrgs.families",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "readOrgs.groups",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "readOrgs.schools",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "administrations",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "schools",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "assignments",
"queryScope": "COLLECTION_GROUP",
"fields": [
{
"fieldPath": "assigningOrgs.districts",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "id",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "assignments",
"queryScope": "COLLECTION_GROUP",
"fields": [
{
"fieldPath": "assigningOrgs.families",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "id",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "assignments",
"queryScope": "COLLECTION_GROUP",
"fields": [
{
"fieldPath": "assigningOrgs.groups",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "id",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "assignments",
"queryScope": "COLLECTION_GROUP",
"fields": [
{
"fieldPath": "assigningOrgs.schools",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "id",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "classes",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "schoolId",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districtId",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "schools",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "districtId",
"order": "ASCENDING"
},
{
"fieldPath": "name",
"order": "DESCENDING"
}
]
}
],
"fieldOverrides": [
{
"collectionGroup": "administrations",
"fieldPath": "classes",
"ttl": false,
"indexes": [
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
}
]
},
{
"collectionGroup": "assignments",
"fieldPath": "assigningOrgs.groups",
"ttl": false,
"indexes": [
{
"order": "ASCENDING",
"queryScope": "COLLECTION"
},
{
"order": "DESCENDING",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION_GROUP"
}
]
},
{
"collectionGroup": "assignments",
"fieldPath": "assigningOrgs.schools",
"ttl": false,
"indexes": [
{
"order": "ASCENDING",
"queryScope": "COLLECTION"
},
{
"order": "DESCENDING",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION_GROUP"
}
]
},
{
"collectionGroup": "assignments",
"fieldPath": "id",
"ttl": false,
"indexes": [
{
"order": "ASCENDING",
"queryScope": "COLLECTION"
},
{
"order": "DESCENDING",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
},
{
"order": "ASCENDING",
"queryScope": "COLLECTION_GROUP"
}
]
}
]
}
Loading

0 comments on commit de7d724

Please sign in to comment.