-
Notifications
You must be signed in to change notification settings - Fork 21
[TSPS-635] Add Job Details view for Teaspoons jobs #5468
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
base: dev
Are you sure you want to change the base?
Conversation
| onDismiss: () => void; | ||
| } | ||
|
|
||
| const getFileSize = async (url: string): Promise<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.
moved to util file so job details page can use it
| return <JobIdCell pipelineRun={paginatedRuns[rowIndex]} />; | ||
| }, | ||
| size: { basis: 140 }, | ||
| size: { basis: 250 }, |
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.
tweaked the width of some of the columns to keep things more appropriately distributed
| } | ||
| }; | ||
|
|
||
| const pipelineNameToColor = (pipelineRun: PipelineRun): 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.
moved to pipeline-style-utils
| return ( | ||
| <span style={{ whiteSpace: 'pre-wrap' }} key={`span-${key}`}> | ||
| {part} | ||
| </span> | ||
| ); |
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 needed this fix to use the stylized string inside of a header tag, otherwise the browser would remove any whitespace immediately after this span. without it, the job details page would display the pipeline name as "All of Us+ AnVIL Array Imputation"
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.
the gift that keeps on giving
jsotobroad
left a comment
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.
nice this looks really cool, just a couple of comments
| causes: string[]; | ||
| } | ||
|
|
||
| export interface PipelineRunReport { |
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.
its definitely too late to do this now but OoC would there be a way to generate these models from the api yml like we do for the python client?
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.
yes it's possible to do that. that would be a great thing to consider doing if/when we ever break the teaspoons UI out of terra-ui and into our own codebase
| })} | ||
| </div> | ||
| ) : ( | ||
| <div style={{ color: colors.dark(0.6), fontSize: '0.875rem' }}>There are no inputs to display</div> |
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.
so this state should never be possible right? Do we want to display this more prominently as an error rather than a job that has no inputs?
| ).toLocaleDateString()} and are no longer available.`; | ||
| } | ||
| if (isSucceeded) { | ||
| return 'This job succeeded, but did not produce any outputs.'; |
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.
similar question here, should this also be treated as more of an error state?
| return ( | ||
| <span style={{ whiteSpace: 'pre-wrap' }} key={`span-${key}`}> | ||
| {part} | ||
| </span> | ||
| ); |
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.
the gift that keeps on giving
| > | ||
| {pipelineRun.jobId} | ||
| </TooltipCell> | ||
| {canViewDetails ? ( |
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.
can you add a screenshot showing these changes as well
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.
👍 added to description
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 might be going crazy but I can't see this change in the Job History screenshot. should I be able to see something? maybe it needs a video if it's just the link?
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.
thanks!
| > | ||
| {pipelineRun.jobId} | ||
| </TooltipCell> | ||
| {canViewDetails ? ( |
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 might be going crazy but I can't see this change in the Job History screenshot. should I be able to see something? maybe it needs a video if it's just the link?
| <div | ||
| style={{ | ||
| width: '100%', | ||
| background: `linear-gradient(to right, #f5f6f9, ${getPipelineStatusColor( |
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.
this gradient is swanky
| <div style={{ flex: 1 }}> | ||
| <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', marginBottom: '1rem' }}> | ||
| <h4 style={{ margin: 0, fontSize: 16, fontWeight: 600 }}>Inputs</h4> | ||
| <TooltipTrigger content='Inputs include both values you provided and defaults for any parameters you did not specify.'> |
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.
does this show up when you hover in the Inputs text? I don't see a tooltip icon in the 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.
very nice, thanks!
| pipelineRunResult.pipelineRunReport.pipelineVersion | ||
| ); | ||
|
|
||
| const inputDefinitions = pipelineDetails?.inputs || []; |
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.
related to Jose's comment, I don't think we should have a default to none here. if there are no inputs, something went wrong.
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.
That makes complete sense- i will change these cases to display an error instead
|
mmorgantaylor
left a comment
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.
thank you, looks great to me!
jsotobroad
left a comment
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.
this is great!





Jira Ticket: https://broadworkbench.atlassian.net/browse/TSPS-635
Summary of changes:
What
(ignore the default notation on the inputs in these screenshots, that has since been removed per recent team discussions)
Why
Testing strategy