Skip to content
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

Closed
bmattb opened this issue Jun 4, 2020 · 6 comments · Fixed by #162
Labels

Comments

@bmattb
Copy link
Contributor

bmattb commented Jun 4, 2020

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

  • user is presented with a generic error message when there is a failure to import selected Unsplash images into post content and/or the site's Media Library for unidentified reasons.

Implementation brief

QA testing instructions

  • Create a new post.
  • Add an image block.
  • Open media selector.
  • Select Unsplash tab.
  • Select an image.
  • Open new tab.
  • Go to Unsplash settings page. Deauthicate the plugin.
  • Return to original tab. With image still selected, try to insert to post.
  • Error message should be displayed.

Demo

Changelog entry

@csossi
Copy link

csossi commented Jun 16, 2020

@ravichdev - any details on how I can test this one? what conditions need to be present?

@csossi csossi removed their assignment Jun 16, 2020
@ravichdev
Copy link
Contributor

@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 ?

@spacedmonkey
Copy link
Contributor

@csossi See Testing instructions.

@spacedmonkey spacedmonkey assigned csossi and unassigned ravichdev Jun 17, 2020
@csossi
Copy link

csossi commented Jun 18, 2020

Verified in QA

Error popup appearing:
image

@csossi csossi assigned bmattb and unassigned csossi Jun 18, 2020
@bmattb
Copy link
Contributor Author

bmattb commented Jun 18, 2020

@spacedmonkey - looks like the testing instructions didn't trigger the expected warning... thoughts?

@bmattb bmattb assigned spacedmonkey and unassigned bmattb Jun 18, 2020
@bmattb
Copy link
Contributor Author

bmattb commented Jun 18, 2020

this has been flagged as "untestable" in current environments so I will pass and hope that it's working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants