-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PipelineDetails page tests #380
Conversation
pipeline = await Apis.pipelineServiceApi.getPipeline(pipelineId); | ||
} catch (err) { | ||
await this.showPageError('Cannot retrieve pipeline details.', err); | ||
logger.error('Cannot retrieve pipeline details.', err); |
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 needed in this PR, but maybe we should create a util function that does these two lines with the two inputs (message and error) since it's always the same.
We can then add a comment explaining why it's useful to have both the logger call and the page error.
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.
Perhaps we should allow the user to see the callstack in the error dialog. It can appear as a collapsed area with a toggle.
@ajayalfred in case he has any thoughts 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.
+1 to consider it
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.
Agree. This will be useful. What do you mean by error dialog? Can you add a screenshot?
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.
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.
Ok sounds good. Do you need a spec for this?
Side note, we should have Jordan do a scrub of text in all dialogs so the messaging is consistent.
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rileyjbauer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The only functional change is splitting out the try/catch block in the load function to make the errors more granular and user friendly. This also means the two fetch API calls are done in sequence instead of in parallel, but this isn't a big deal here since it's exactly two calls per page load.
Fixes #379.
This change is