Skip to content

Commit

Permalink
feat: MB group access filters (#70)
Browse files Browse the repository at this point in the history
Fixes
[AB#6340](https://dev.azure.com/HCPHAC/5346c868-3a60-4f97-aa76-49dc2380e734/_workitems/edit/6340)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
wvxcheung and github-actions[bot] authored Oct 30, 2024
1 parent 5f2f274 commit e329662
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions graphql/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = {
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
},
},
mb:{
sites:{
whereIn: ['siteID', ['THM, WPG-W, WPG-S, WPG-N, FLN, BDN']]
},
measures: {
whereIn: ['measure', ["covN2", "fluA", "fluB", "rsvA", "rsvB"]]
},
wastewatermpox: {
where: ['Location', 'thisiddoesnotexist'],
},
}
};

Expand Down
2 changes: 1 addition & 1 deletion terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ No modules.
| <a name="input_api_name"></a> [api\_name](#input\_api\_name) | The name of the API Management API. Changing this forces a new resource to be created. | `string` | `"wastewater-graphql-api"` | no |
| <a name="input_api_path"></a> [api\_path](#input\_api\_path) | The Path for this API Management API, which is a relative URL which uniquely identifies this API and all of its resource paths within the API Management Service. | `string` | `"wastewater"` | no |
| <a name="input_apim"></a> [apim](#input\_apim) | APIM to create API in | `string` | n/a | yes |
| <a name="input_auth_groups"></a> [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) | <pre>list(object({<br> group = string<br> name = string<br> description = string<br> subscriptions = number<br> suspended = list(number)<br> }))</pre> | <pre>[<br> {<br> "description": "National Microbiology Laboratory",<br> "group": "nml-lab",<br> "name": "NML",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Correctional Service Canada",<br> "group": "csc",<br> "name": "CSC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "BC Centre for Disease Control",<br> "group": "bccdc",<br> "name": "BCCDC",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Haines Junction (Yukon)",<br> "group": "hnj",<br> "name": "HNJ",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Ontario Ministry of the Environment, Conservation and Parks",<br> "group": "omecp",<br> "name": "OMECP",<br> "subscriptions": 15,<br> "suspended": []<br> },<br> {<br> "description": "Public Health Ontario",<br> "group": "pho",<br> "name": "PHO",<br> "subscriptions": 15,<br> "suspended": []<br> }<br>]</pre> | no |
| <a name="input_auth_groups"></a> [auth\_groups](#input\_auth\_groups) | List of authorization groups, their display name, and their description. The value of `group` must match the groups defined in (auth.ts)(graphql/auth.ts) | <pre>list(object({<br/> group = string<br/> name = string<br/> description = string<br/> subscriptions = number<br/> suspended = list(number)<br/> }))</pre> | <pre>[<br/> {<br/> "description": "National Microbiology Laboratory",<br/> "group": "nml-lab",<br/> "name": "NML",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "Correctional Service Canada",<br/> "group": "csc",<br/> "name": "CSC",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "BC Centre for Disease Control",<br/> "group": "bccdc",<br/> "name": "BCCDC",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "Haines Junction (Yukon)",<br/> "group": "hnj",<br/> "name": "HNJ",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "Ontario Ministry of the Environment, Conservation and Parks",<br/> "group": "omecp",<br/> "name": "OMECP",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "Public Health Ontario",<br/> "group": "pho",<br/> "name": "PHO",<br/> "subscriptions": 15,<br/> "suspended": []<br/> },<br/> {<br/> "description": "Manitoba grouping for PHAC",<br/> "group": "MB",<br/> "name": "MB",<br/> "subscriptions": 5,<br/> "suspended": []<br/> }<br/>]</pre> | no |
| <a name="input_function_app_url"></a> [function\_app\_url](#input\_function\_app\_url) | Absolute URL of the backend service implementing this API. | `string` | n/a | yes |
| <a name="input_resource_group"></a> [resource\_group](#input\_resource\_group) | Resource group to use | `string` | n/a | yes |
| <a name="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id) | Azure subscription id | `string` | n/a | yes |
Expand Down

0 comments on commit e329662

Please sign in to comment.