-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIMSBIOHUB-562: Export Survey Data #1273
Conversation
Openshift URLs for the PR Deployment: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1273 +/- ##
==========================================
+ Coverage 48.28% 48.57% +0.28%
==========================================
Files 763 771 +8
Lines 20465 20704 +239
Branches 3124 3135 +11
==========================================
+ Hits 9882 10056 +174
- Misses 10431 10496 +65
Partials 152 152 ☔ View full report in Codecov by Sentry. |
…to SIMSBIOHUB-562
…to SIMSBIOHUB-562
Quality Gate failedFailed conditions |
…to SIMSBIOHUB-562
Openshift URLs for the PR Deployment: |
Added some unit tests |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Links to Jira Tickets
https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-562
Description of Changes
API
New endpoint that fetches and uploads survey data to s3, and returns a pre-signed url to download it.
APP
New dialog (under survey settings dropdown button) that allows users to execute an export. Currently restricted to project coordinators and collaborators (and system/data admins).
Testing Notes
Pre-req: S3 credentials in
.env
From the settings button at the top of the survey page, clicking export pops a dialogue, which lets you choose which data to export. Data is exported to a zip file in S3, and immediately downloaded to the users local machine.
To Do
API
Currently the export only supports survey metadata, observations (which both just make a very basic select query, and leave the response as json), and telemetry (which returns the same data as the summary telemetry page).
API - Tests
APP
The dialogue is fairly basic, with no loading bars, etc, for longer exports. It also just auto-downloads the file, which is maybe not what we want if its large. Might be better to just show a link, and let the user trigger it in their browser separately.
Note
Export button is in the dropdown on the survey page.