-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] Send error body with feedback #12992
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
Conversation
started the job as gitpod-build-lau-error-feedback-10402.1 because the annotations in the pull request description changed |
error_object?: StartWorkspaceError; | ||
error_message?: string; |
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.
Is there a reason these props have to be snake-cased rather than camel-cased?
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.
Not really! Before it was error_rendered
which I confirmed with @jakobhero. Let me see what the convention is in Segment.
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 see it's a mix 😅 Some are ui_experiments
, button_type
, while others are workspaceInstanceId
or clientKind
.
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.
Asked here
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.
Sorry, I thought this interface defined props for some component, but it doesn't 😊 It's fine how it is if Segment needs it that way.
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.
short answer: snake case is preferred downstream, but using camel case is perfectly fine as segment will automatically change the prop names to snake case before pushing downstream - more details here
error_object: props.error_object || undefined, | ||
error_message: props.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.
Not introduced in this PR, but this object can be explicitly typed as EventProperties
.
dd67d45
to
1c9fc54
Compare
1c9fc54
to
b8e1702
Compare
/hold the build is failing at the moment so adding hold to not block merge queue |
Thanks @mads-hartmann! Will fix it |
b8e1702
to
044a163
Compare
/werft run 👍 started the job as gitpod-build-lau-error-feedback-10402.6 |
/unhold |
Description
This makes sure an error message and/or body gets sent along with a feedback.
Related Issue(s)
Fixes #10402
How to test
error_body
anderror_message
.Release Notes
Documentation
Werft options: