Skip to content

Commit

Permalink
feat: add mpox measure filters
Browse files Browse the repository at this point in the history
  • Loading branch information
wvxcheung committed Dec 3, 2024
1 parent 5ec468a commit 96013af
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions graphql/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
datasets: {
whereNot: ['datasetID', 'NML-WWMPOX'],
},
measures: {
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
},
Expand All @@ -28,6 +31,9 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
whereIn: ['datasetID', ['BCCDC', 'NML-WWPCR']],
whereNot: ['datasetID', 'NML-WWMPOX'],
},
measures: {
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
},
Expand All @@ -40,6 +46,9 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
whereIn: ['datasetID', ['NML-WWPCR', 'NML-GXWW', 'onsite-GXWW']],
whereNot: ['datasetID', 'NML-WWMPOX'],
},
measures: {
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
},
Expand All @@ -52,7 +61,8 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
whereNotIn: ['datasetID', ['NML-WWMPOX', 'OMECP']],
},
measures: {
whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB", "flowVol"]]
whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB", "flowVol"]],
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
Expand All @@ -67,7 +77,8 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
whereNotIn: ['datasetID', ['NML-WWMPOX', 'OMECP']],
},
measures: {
whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB", "flowVol"]]
whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB", "flowVol"]],
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
Expand All @@ -89,7 +100,8 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
whereNotIn: ['datasetID',['NML-GXWW', 'NML-WWMPOX']],
},
measures: {
whereIn: ['measure', ["covN2", "fluA", "fluB", "rsvA", "rsvB"]]
whereIn: ['measure', ["covN2", "fluA", "fluB", "rsvA", "rsvB"]],
whereNotIn: ['measure', ["g2rNML", "g2rG", "g2rWA"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
Expand Down

0 comments on commit 96013af

Please sign in to comment.