-
Notifications
You must be signed in to change notification settings - Fork 549
Add api endpoint and webportal page of job retry history #3831
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Exit Type: | ||
</div> | ||
<div className={c(FontClassNames.mediumPlus)}> | ||
{`${jobRetry.exitType}`} |
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 template string is unnecessary.
box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px, rgba(0, 0, 0, 0.05) 0px 0.5px 1px; | ||
`; | ||
|
||
const TaskRoleCard = styled.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.
The Card component has style and classname props, you can add your custom style there.
I think you don't need to create a new component with copied code here.
@@ -70,9 +71,9 @@ const AbnormalJobList = ({ jobs, style }) => { | |||
onRender(job) { | |||
const { legacy, name, namespace, username } = job; | |||
const href = legacy | |||
? `/job-detail.html?jobName=${name}` | |||
? `/job-detail.html?jobname=${name}` |
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 camelCase jobName
and lowercase username
is defined in rest api. I think we need to keep the consistency here
add job attempt api
Attempts include job retry history from elastic search and current job info from k8s api. The attempt schema is converted from framework.
add page job-retry.html to webportal
closes #3788