-
Notifications
You must be signed in to change notification settings - Fork 0
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
Task/WP-505: APCD File Upload Failures Logging Request #1013
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4e2acb4
Adding error messages to upload modal ui
jalowe13 4514880
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 147b20f
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 fae17f1
response text for 403
jalowe13 cb765f5
remove logs and testing code
jalowe13 4129c40
additional testing reversal
jalowe13 3e5736a
console log removal
jalowe13 7d07fc6
500 errors for testing
jalowe13 aa2a5bf
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 60117a9
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 90aabb2
try catch for http and network errors
jalowe13 686a9e7
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 a877589
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 4921686
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 9112323
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 5a5c8ea
Merge branch 'main' into task/WP-505--APCD--File-Upload-Failures
jalowe13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we put a try catch around line 488 to line 498 to do the following? A frequent issue we see is the client side network is blocking file uploads (firewall settings), since the firewall is blocking it, sometimes, it might not even be a http response.
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.
After seeing your screenshot on error message, I'm not sure how much that error is going to help or cause more problems. We want to know the user to know if file upload is blocked vs server http error.
May be a simpler error message:
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.
@chandra-tacc
This is a great suggestion. It would be best to test for both types of occurrences when a file is uploaded. One where the firewall is blocking the request (the catch variant) and the other for when the POST request is successful. I'll edit the success message down as well as to not overcomplicate things. Thank you for the thorough review Chandra!