-
Notifications
You must be signed in to change notification settings - Fork 3
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
Present a generic error to the user when plugin is unable to auto-import into site Media Library a #152
Comments
@ravichdev - any details on how I can test this one? what conditions need to be present? |
@csossi This is difficult to test, something has to cause an image import from Unsplash to fail, on my local I tested this with adding logic to the import code to exit early, but it's difficult for you to test this. @spacedmonkey Should we just move this to Done as you already reviewed the code and good with the solution ? |
@csossi See Testing instructions. |
@spacedmonkey - looks like the testing instructions didn't trigger the expected warning... thoughts? |
this has been flagged as "untestable" in current environments so I will pass and hope that it's working as expected. |
Feature description
Occasionally media upload will fail, and we are unable to build out specific responses for each case with the limited time left. In cases such as this we should present a generic error to the user that recommends a retry.
I would expect that if an import action should fail that the plugin will present the following message to users via an in-browser notification. The notification should state:
"The file was unable to be imported into the Media Library. Please try again"
and present the user with the "Ok" button to acknowledge and clear the pop-up
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
ImportImages
method invocation catch statement (unsplash-wp/assets/src/media-selector/views/button.js
Line 43 in a63e5bb
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: