#13649 - Add Pipeline Status Skipped (#14524)

* #13649 - Add Pipeline Status Skipped

* Format
This commit is contained in:
Pere Miquel Brull 2023-12-29 09:41:59 +01:00 committed by GitHub
parent ccee364797
commit 1c2219517e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 1 deletions

View File

@ -72,12 +72,14 @@ class AirflowTaskStatus(Enum):
FAILED = "failed"
QUEUED = "queued"
REMOVED = "removed"
SKIPPED = "skipped"
STATUS_MAP = {
AirflowTaskStatus.SUCCESS.value: StatusType.Successful.value,
AirflowTaskStatus.FAILED.value: StatusType.Failed.value,
AirflowTaskStatus.QUEUED.value: StatusType.Pending.value,
AirflowTaskStatus.SKIPPED.value: StatusType.Skipped.value,
}

View File

@ -19,7 +19,7 @@
"javaType": "org.openmetadata.schema.type.StatusType",
"description": "Enum defining the possible Status.",
"type": "string",
"enum": ["Successful", "Failed", "Pending"],
"enum": ["Successful", "Failed", "Pending", "Skipped"],
"javaEnums": [
{
"name": "Successful"
@ -29,6 +29,9 @@
},
{
"name": "Pending"
},
{
"name": "Skipped"
}
]
},

View File

@ -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

View File

@ -18,6 +18,7 @@ export const MenuOptions = {
[StatusType.Successful]: 'Success',
[StatusType.Failed]: 'Failed',
[StatusType.Pending]: 'Pending',
[StatusType.Skipped]: 'Skipped',
Aborted: 'Aborted',
};

View File

@ -39,6 +39,9 @@ export const getStatusBadgeIcon = (status?: StatusType) => {
case StatusType.Pending:
return Icons.PENDING_BADGE;
case StatusType.Skipped:
return Icons.SKIPPED_BADGE;
default:
return '';
}

View File

@ -172,6 +172,7 @@ import IconSearchV1Color from '../assets/svg/search-color.svg';
import IconSearchV1 from '../assets/svg/search.svg';
import IconSetting from '../assets/svg/service.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 IconSlack from '../assets/svg/slack.svg';
import IconSuccessBadge from '../assets/svg/success-badge.svg';
@ -338,6 +339,7 @@ export const Icons = {
SUCCESS_BADGE: 'success-badge',
FAIL_BADGE: 'fail-badge',
PENDING_BADGE: 'pending-badge',
SKIPPED_BADGE: 'skipped-badge',
BOT_PROFILE: 'bot-profile',
CREATE_INGESTION: 'create-ingestion',
DEPLOY_INGESTION: 'deploy-ingestion',
@ -955,6 +957,11 @@ const SVGIcons: FunctionComponent<Props> = ({ icon, ...props }: Props) => {
case Icons.PENDING_BADGE:
IconComponent = IconPendingBadge;
break;
case Icons.SKIPPED_BADGE:
IconComponent = IconSkippedBadge;
break;
case Icons.BOT_PROFILE:
IconComponent = IconBotProfile;

View File

@ -47,6 +47,7 @@ export const StatusIndicator = ({ status }: StatusIndicatorInterface) => (
: ''}
{status === StatusType.Failed ? MenuOptions[StatusType.Failed] : ''}
{status === StatusType.Pending ? MenuOptions[StatusType.Pending] : ''}
{status === StatusType.Skipped ? MenuOptions[StatusType.Skipped] : ''}
</p>
</Space>
);