Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Add api endpoint and webportal page of job retry history #3831

Merged
merged 28 commits into from
Nov 20, 2019

Conversation

debuggy
Copy link
Contributor

@debuggy debuggy commented Nov 12, 2019

  1. 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.

  2. add page job-retry.html to webportal

image

closes #3788

@yqwang-ms

This comment has been minimized.

@yqwang-ms

This comment has been minimized.

@debuggy

This comment has been minimized.

@debuggy

This comment has been minimized.

@yqwang-ms

This comment has been minimized.

@abuccts abuccts mentioned this pull request Nov 12, 2019
42 tasks
@debuggy

This comment has been minimized.

@debuggy

This comment has been minimized.

@debuggy

This comment has been minimized.

@yqwang-ms

This comment has been minimized.

@debuggy

This comment has been minimized.

@debuggy
Copy link
Contributor Author

debuggy commented Nov 14, 2019

latest UI:
image

@debuggy
Copy link
Contributor Author

debuggy commented Nov 14, 2019

Complement exit diagnostics message:

image

image

Copy link
Member

@yqwang-ms yqwang-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Exit Type:
</div>
<div className={c(FontClassNames.mediumPlus)}>
{`${jobRetry.exitType}`}
Copy link
Contributor

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`
Copy link
Contributor

@sunqinzheng sunqinzheng Nov 19, 2019

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}`
Copy link
Contributor

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

@debuggy debuggy merged commit 15ed057 into master Nov 20, 2019
@abuccts abuccts deleted the mintao/job-retry branch March 20, 2020 08:34
@hzy46 hzy46 mentioned this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

job retry history design
5 participants