-
Notifications
You must be signed in to change notification settings - Fork 39
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
Publisher: Enhance KnownPublishError visualisation #373
Publisher: Enhance KnownPublishError visualisation #373
Conversation
Co-authored-by: Roy Nieterau <[email protected]>
Co-authored-by: Roy Nieterau <[email protected]>
I'm not sure about how to rephrase it in a better way. |
Maybe re-reading it again I have less of an issue with it. Just my brain being dumb sometimes. Removing the words "You can" might also put more focus on "Report the error". |
Moving some of internal conversation here. This is current state of the labels: I don't think user should look at the frame at the bottom to find out what happened, if the information is for user. The bottom panel is short technical information. First, my "feeling" is that both titles might be This will cause that the message I think @mkolar came up with current design so he should have opinion on this. |
I've just figured out that I forgot to push my example. I've added an example in Mantra IFD houdini product type. to run it:
|
client/ayon_core/hosts/houdini/plugins/publish/extract_mantra_ifd.py
Outdated
Show resolved
Hide resolved
@@ -1459,7 +1459,7 @@ class CrashWidget(QtWidgets.QWidget): | |||
def __init__(self, controller, parent): | |||
super(CrashWidget, self).__init__(parent) | |||
|
|||
main_label = QtWidgets.QLabel("This is not your fault", self) | |||
main_label = QtWidgets.QLabel("Error Occurred!", self) |
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.
I wonder if Error Occurred!
is too unfriendly/scary? I recall that being a huge design decision as to why once it was chosen to report with This is not your fault
. So may be one for @mkolar to comment on?
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.
Tbh, I don't know what should be the message.
I only changed it to open a discussion about it.
As I'm more and more thinking about it I guess we'll need different exception so we know if it is something which is caused by user or it is really a bug. It also affects UI which has messages related to actions and their buttons. Question is if the report buttons should be visible in case it is not user fault etc. That is UX desicion, and I not good at it, so we need someone who can tell. |
Cool! |
Closing this PR and moving the discussion to #348 |
Changelog Description
Tweaking
KnownPublishError
to have more user friendly error handling.Also, slightly changing error report.
Testing notes:
RuntimeError
toKnownPublishError
and use better message and add a label similar to the provided example.self.log.error(....)
with more detailed error message.