Skip to content
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

Index ExecutionRequestResults status field #10811

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions datahub-web-react/src/app/ingest/source/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const WARNING = 'WARNING';
export const FAILURE = 'FAILURE';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const CANCELLED = 'CANCELLED';
export const ABORTED = 'ABORTED';
export const UP_FOR_RETRY = 'UP_FOR_RETRY';
export const ROLLING_BACK = 'ROLLING_BACK';
export const ROLLED_BACK = 'ROLLED_BACK';
Expand All @@ -68,6 +69,7 @@ export const getExecutionRequestStatusIcon = (status: string) => {
(status === ROLLED_BACK && WarningOutlined) ||
(status === ROLLING_BACK && LoadingOutlined) ||
(status === ROLLBACK_FAILED && CloseCircleOutlined) ||
(status === ABORTED && CloseCircleOutlined) ||
ClockCircleOutlined
);
};
Expand All @@ -83,6 +85,7 @@ export const getExecutionRequestStatusDisplayText = (status: string) => {
(status === ROLLED_BACK && 'Rolled Back') ||
(status === ROLLING_BACK && 'Rolling Back') ||
(status === ROLLBACK_FAILED && 'Rollback Failed') ||
(status === ABORTED && 'Aborted') ||
status
);
};
Expand All @@ -105,6 +108,8 @@ export const getExecutionRequestSummaryText = (status: string) => {
return 'Ingestion is in the process of rolling back.';
case ROLLBACK_FAILED:
return 'Ingestion rollback failed.';
case ABORTED:
return 'Ingestion job got aborted due to worker restart.';
default:
return 'Ingestion status not recognized.';
}
Expand All @@ -121,6 +126,7 @@ export const getExecutionRequestStatusDisplayColor = (status: string) => {
(status === ROLLED_BACK && 'orange') ||
(status === ROLLING_BACK && 'orange') ||
(status === ROLLBACK_FAILED && 'red') ||
(status === ABORTED && 'red') ||
ANTD_GRAY[7]
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ record ExecutionRequestResult {
/**
* The status of the execution request
*/
@Searchable = {
"fieldType": "KEYWORD",
"fieldName": "executionResultStatus"
}
status: string

/**
Expand All @@ -36,4 +40,4 @@ record ExecutionRequestResult {
* Duration in milliseconds
*/
durationMs: optional long
}
}
Loading