-
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-614: Fix file upload error handling. #1366
Conversation
…components. Made 2 new attachment dialogs - one for single items, one for many items. Added error handling to catch file upload errors.
Openshift URLs for the PR Deployment: |
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.
Fix project/survey regular attachments error display (shows error in the list, not as a popup).
Add fallback catch to report upload. Fix error popup not displaying error message in body of dialog for the csv upload dialogs.
The error popup was actually a copy/paste mistake. The file upload component handles individual file errors already, so I just had to remove the try/catch and let it bubble up: Tweaked some other trivial stuff as well, and added some JSDoc. So should all be happy now. |
Quality Gate failedFailed conditions |
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-614?
Description of Changes
Split the project/survey report/non-report attachment dialogs into 2 components.
Made 2 new attachment dialogs - one for single items, one for many items.
Added error handling to catch file upload errors.
Moved a few files around to group like-components.
Testing Notes
Changes to Project/Survey Report and Non-Report attachment upload
Changes to observation/telemetry/sample-site/animal csv import