mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
* #13649 - Add Pipeline Status Skipped * Format
This commit is contained in:
parent
ccee364797
commit
1c2219517e
@ -72,12 +72,14 @@ class AirflowTaskStatus(Enum):
|
|||||||
FAILED = "failed"
|
FAILED = "failed"
|
||||||
QUEUED = "queued"
|
QUEUED = "queued"
|
||||||
REMOVED = "removed"
|
REMOVED = "removed"
|
||||||
|
SKIPPED = "skipped"
|
||||||
|
|
||||||
|
|
||||||
STATUS_MAP = {
|
STATUS_MAP = {
|
||||||
AirflowTaskStatus.SUCCESS.value: StatusType.Successful.value,
|
AirflowTaskStatus.SUCCESS.value: StatusType.Successful.value,
|
||||||
AirflowTaskStatus.FAILED.value: StatusType.Failed.value,
|
AirflowTaskStatus.FAILED.value: StatusType.Failed.value,
|
||||||
AirflowTaskStatus.QUEUED.value: StatusType.Pending.value,
|
AirflowTaskStatus.QUEUED.value: StatusType.Pending.value,
|
||||||
|
AirflowTaskStatus.SKIPPED.value: StatusType.Skipped.value,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"javaType": "org.openmetadata.schema.type.StatusType",
|
"javaType": "org.openmetadata.schema.type.StatusType",
|
||||||
"description": "Enum defining the possible Status.",
|
"description": "Enum defining the possible Status.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["Successful", "Failed", "Pending"],
|
"enum": ["Successful", "Failed", "Pending", "Skipped"],
|
||||||
"javaEnums": [
|
"javaEnums": [
|
||||||
{
|
{
|
||||||
"name": "Successful"
|
"name": "Successful"
|
||||||
@ -29,6 +29,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Pending"
|
"name": "Pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Skipped"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" fill="#FF69B4"><g id="SVGRepo_bgCarrier" stroke-width=".5"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g id="Layer_2" data-name="Layer 2"> <g id="invisible_box" data-name="invisible box"> <rect width="48" height="48" fill="none"></rect> </g> <g id="Q3_icons" data-name="Q3 icons"> <g> <path d="M34,10a2,2,0,0,0-2,2V36a2,2,0,0,0,4,0V12A2,2,0,0,0,34,10Z"></path> <path d="M15.5,10.6a2.1,2.1,0,0,0-2.7-.2,1.9,1.9,0,0,0-.2,3L23.2,24,12.6,34.6a1.9,1.9,0,0,0,.2,3,2.1,2.1,0,0,0,2.7-.2l11.9-12a1.9,1.9,0,0,0,0-2.8Z"></path> </g> </g> </g> </g></svg>
|
After Width: | Height: | Size: 673 B |
@ -18,6 +18,7 @@ export const MenuOptions = {
|
|||||||
[StatusType.Successful]: 'Success',
|
[StatusType.Successful]: 'Success',
|
||||||
[StatusType.Failed]: 'Failed',
|
[StatusType.Failed]: 'Failed',
|
||||||
[StatusType.Pending]: 'Pending',
|
[StatusType.Pending]: 'Pending',
|
||||||
|
[StatusType.Skipped]: 'Skipped',
|
||||||
Aborted: 'Aborted',
|
Aborted: 'Aborted',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,6 +39,9 @@ export const getStatusBadgeIcon = (status?: StatusType) => {
|
|||||||
case StatusType.Pending:
|
case StatusType.Pending:
|
||||||
return Icons.PENDING_BADGE;
|
return Icons.PENDING_BADGE;
|
||||||
|
|
||||||
|
case StatusType.Skipped:
|
||||||
|
return Icons.SKIPPED_BADGE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -172,6 +172,7 @@ import IconSearchV1Color from '../assets/svg/search-color.svg';
|
|||||||
import IconSearchV1 from '../assets/svg/search.svg';
|
import IconSearchV1 from '../assets/svg/search.svg';
|
||||||
import IconSetting from '../assets/svg/service.svg';
|
import IconSetting from '../assets/svg/service.svg';
|
||||||
import IconShowPassword from '../assets/svg/show-password.svg';
|
import IconShowPassword from '../assets/svg/show-password.svg';
|
||||||
|
import IconSkippedBadge from '../assets/svg/skipped-badge.svg';
|
||||||
import IconSlackGrey from '../assets/svg/slack-grey.svg';
|
import IconSlackGrey from '../assets/svg/slack-grey.svg';
|
||||||
import IconSlack from '../assets/svg/slack.svg';
|
import IconSlack from '../assets/svg/slack.svg';
|
||||||
import IconSuccessBadge from '../assets/svg/success-badge.svg';
|
import IconSuccessBadge from '../assets/svg/success-badge.svg';
|
||||||
@ -338,6 +339,7 @@ export const Icons = {
|
|||||||
SUCCESS_BADGE: 'success-badge',
|
SUCCESS_BADGE: 'success-badge',
|
||||||
FAIL_BADGE: 'fail-badge',
|
FAIL_BADGE: 'fail-badge',
|
||||||
PENDING_BADGE: 'pending-badge',
|
PENDING_BADGE: 'pending-badge',
|
||||||
|
SKIPPED_BADGE: 'skipped-badge',
|
||||||
BOT_PROFILE: 'bot-profile',
|
BOT_PROFILE: 'bot-profile',
|
||||||
CREATE_INGESTION: 'create-ingestion',
|
CREATE_INGESTION: 'create-ingestion',
|
||||||
DEPLOY_INGESTION: 'deploy-ingestion',
|
DEPLOY_INGESTION: 'deploy-ingestion',
|
||||||
@ -955,6 +957,11 @@ const SVGIcons: FunctionComponent<Props> = ({ icon, ...props }: Props) => {
|
|||||||
case Icons.PENDING_BADGE:
|
case Icons.PENDING_BADGE:
|
||||||
IconComponent = IconPendingBadge;
|
IconComponent = IconPendingBadge;
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Icons.SKIPPED_BADGE:
|
||||||
|
IconComponent = IconSkippedBadge;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case Icons.BOT_PROFILE:
|
case Icons.BOT_PROFILE:
|
||||||
IconComponent = IconBotProfile;
|
IconComponent = IconBotProfile;
|
||||||
|
@ -47,6 +47,7 @@ export const StatusIndicator = ({ status }: StatusIndicatorInterface) => (
|
|||||||
: ''}
|
: ''}
|
||||||
{status === StatusType.Failed ? MenuOptions[StatusType.Failed] : ''}
|
{status === StatusType.Failed ? MenuOptions[StatusType.Failed] : ''}
|
||||||
{status === StatusType.Pending ? MenuOptions[StatusType.Pending] : ''}
|
{status === StatusType.Pending ? MenuOptions[StatusType.Pending] : ''}
|
||||||
|
{status === StatusType.Skipped ? MenuOptions[StatusType.Skipped] : ''}
|
||||||
</p>
|
</p>
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user