-
Notifications
You must be signed in to change notification settings - Fork 4
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
only dispatch upload when file load returns error = false #3495
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3495 +/- ##
========================================
Coverage 90.64% 90.65%
========================================
Files 310 310
Lines 8908 8910 +2
Branches 677 678 +1
========================================
+ Hits 8075 8077 +2
Misses 704 704
Partials 129 129
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
In this ticket I discovered some buggy code that caused an invalid file to look like the following image. The dotted red line is the collapsed input for uploading a file: The default look of an invalid file is the following: However, the intent of the buggy code (after fixing it) was to look like the following as can be surmised from a comment added to the code ("Get rid of existing previews if they exist, and show instructions): Given this, from a UX perspective which of the latter 2 images would be the best to display in the event that the user chooses an invalid file:
|
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.
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.
LGTM!
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.
LGTM
Summary of Changes
Pull request closes #3478
Recently loading of files was extracted into an async method. Doing so caused all files, regardless of validation to be uploaded. This change only dispatches and upload if the file loading doesn't return an error.
How to Test
List the steps to test the PR
Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):