-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3101 from beyondessential/release-2021-34
Release v2021-34 (Due 27/08/2021)
- Loading branch information
Showing
546 changed files
with
11,008 additions
and
3,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1 @@ | ||
dist | ||
package.zip | ||
.local-chromium | ||
local-chromium.tar.gz | ||
aws-access-keys.js | ||
|
||
### https://raw.github.com/github/gitignore/49d13cdba39774f7fa224ef13f4a1153200e2710/Global/macOS.gitignore | ||
|
||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### https://raw.github.com/github/gitignore/49d13cdba39774f7fa224ef13f4a1153200e2710/Node.gitignore | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
uploads/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
@baseUrl = http://localhost:8070/v1 | ||
# Uncomment below to fetch against the dev server, rather than localhost | ||
# @baseUrl = https://dev-admin-api.tupaia.org/v1 | ||
@contentType = application/json | ||
# In order to setup authorization, please set 'email' and 'password' in your restClient environement variables | ||
# see: https://marketplace.visualstudio.com/items?itemName=humao.rest-client#environment-variables | ||
@authorization = Basic {{email}}:{{password}} | ||
|
||
### Login | ||
POST {{baseUrl}}/login HTTP/1.1 | ||
content-type: {{contentType}} | ||
|
||
{ | ||
"emailAddress": "{{email}}", | ||
"password": "{{password}}" | ||
} | ||
|
||
### Fetch Dashboard Preview Data | ||
POST {{baseUrl}}/fetchReportPreviewData?entityCode=TO | ||
content-type: {{contentType}} | ||
Authorization: {{authorization}} | ||
|
||
{ | ||
"previewConfig": { | ||
"data": { | ||
"dataElements": [ | ||
"BCD46", | ||
"BCD47", | ||
"BCD48", | ||
"BCD48a", | ||
"BCD48b", | ||
"BCD49", | ||
"BCD50", | ||
"BCD50", | ||
"BCD51", | ||
"BCD52", | ||
"BCD53", | ||
"BCD54", | ||
"BCD55" | ||
], | ||
"aggregations": ["MOST_RECENT"], | ||
"transform": [ | ||
"keyValueByDataElementName", | ||
{ | ||
"transform": "select", | ||
"'Doctors'": "$row.BCD46", | ||
"'Midwives'": "$row.BCD47", | ||
"'Nurses'": "sum([$row.BCD48, $row.BCD48a, $row.BCD48b])", | ||
"'Aides'": "$row.BCD49", | ||
"'Others'": "sum([$row.BCD50, $row.BCD51, $row.BCD52, $row.BCD53, $row.BCD54, $row.BCD55])", | ||
"...": ["period", "organisationUnit"] | ||
}, | ||
{ | ||
"transform": "aggregate", | ||
"organisationUnit": "group", | ||
"period": "group", | ||
"Doctors": "sum", | ||
"Midwives": "sum", | ||
"Nurses": "sum", | ||
"Aides": "sum", | ||
"Others": "sum" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
||
### Export dashboard visualisation | ||
POST {{baseUrl}}/export/dashboardVisualisation | ||
content-type: {{contentType}} | ||
Authorization: {{authorization}} | ||
|
||
{ | ||
"visualisation": { | ||
"code": "test_viz_12", | ||
"name": "Test visualisation", | ||
"permissionGroup": "Public", | ||
"data": { | ||
"dataElements": [ | ||
"BCD46", | ||
"BCD47", | ||
"BCD48", | ||
"BCD48a", | ||
"BCD48b", | ||
"BCD49", | ||
"BCD50", | ||
"BCD50", | ||
"BCD51", | ||
"BCD52", | ||
"BCD53", | ||
"BCD54", | ||
"BCD55" | ||
], | ||
"aggregations": ["MOST_RECENT"], | ||
"transform": [ | ||
"keyValueByDataElementName", | ||
{ | ||
"transform": "select", | ||
"'Doctors'": "$row.BCD46", | ||
"'Midwives'": "$row.BCD47", | ||
"'Nurses'": "sum([$row.BCD48, $row.BCD48a, $row.BCD48b])", | ||
"'Aides'": "$row.BCD49", | ||
"'Others'": "sum([$row.BCD50, $row.BCD51, $row.BCD52, $row.BCD53, $row.BCD54, $row.BCD55])", | ||
"...": ["period", "organisationUnit"] | ||
}, | ||
{ | ||
"transform": "aggregate", | ||
"organisationUnit": "group", | ||
"period": "group", | ||
"Doctors": "sum", | ||
"Midwives": "sum", | ||
"Nurses": "sum", | ||
"Aides": "sum", | ||
"Others": "sum" | ||
} | ||
] | ||
}, | ||
"presentation": { | ||
"type": "chart" | ||
} | ||
} | ||
} | ||
|
||
### Save dashboard visualisation (report + dashboard_item) | ||
POST {{baseUrl}}/saveDashboardVisualisation | ||
content-type: {{contentType}} | ||
Authorization: {{authorization}} | ||
|
||
{ | ||
"visualisation": { | ||
"code": "test_viz_12", | ||
"name": "Test visualisation", | ||
"permissionGroup": "Public", | ||
"data": { | ||
"dataElements": [ | ||
"BCD46", | ||
"BCD47", | ||
"BCD48", | ||
"BCD48a", | ||
"BCD48b", | ||
"BCD49", | ||
"BCD50", | ||
"BCD50", | ||
"BCD51", | ||
"BCD52", | ||
"BCD53", | ||
"BCD54", | ||
"BCD55" | ||
], | ||
"aggregations": ["MOST_RECENT"], | ||
"transform": [ | ||
"keyValueByDataElementName", | ||
{ | ||
"transform": "select", | ||
"'Doctors'": "$row.BCD46", | ||
"'Midwives'": "$row.BCD47", | ||
"'Nurses'": "sum([$row.BCD48, $row.BCD48a, $row.BCD48b])", | ||
"'Aides'": "$row.BCD49", | ||
"'Others'": "sum([$row.BCD50, $row.BCD51, $row.BCD52, $row.BCD53, $row.BCD54, $row.BCD55])", | ||
"...": ["period", "organisationUnit"] | ||
}, | ||
{ | ||
"transform": "aggregate", | ||
"organisationUnit": "group", | ||
"period": "group", | ||
"Doctors": "sum", | ||
"Midwives": "sum", | ||
"Nurses": "sum", | ||
"Aides": "sum", | ||
"Others": "sum" | ||
} | ||
] | ||
}, | ||
"presentation": { | ||
"type": "chart" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.