mattermost-community / mattermost-plugin-bitbucket

Mattermost plugin for Bitbucket
Apache License 2.0
6 stars 16 forks source link

Poor UX when trying to create an issue if the repository does not permit it #55

Closed DHaussermann closed 2 years ago

DHaussermann commented 2 years ago

If a repo in bitbucket has issue creation disabled, the plugin UX does not handle this gracefully. We show an error message in the modal that should instead show a non-technical message to explain issue creation is not allowed keeping only the text from the message. image

Steps:

Observed: {"id":"","message":"failed to create issue: Sorry, either you don't have access to the repo DHaussermann/helloworld with the user dkh-sysadmin or it is no longer available","status_code":404}

hanzei commented 2 years ago

Same issue as https://github.com/mattermost/mattermost-plugin-github/issues/318. We can copy the solution from https://github.com/mattermost/mattermost-plugin-github/pull/333.