mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-13 17:58:36 +00:00
MINOR - Automator - Remove tags by label type (#19681)
* MINOR - Automator - Remove tags by label type * MINOR - Automator - Remove tags by label type * MINOR - Automator - Remove tags by label type * MINOR - Automator - Remove tags by label type * MINOR - Automator - Remove tags by label type --------- Co-authored-by: Aniket Katkar <aniketkatkar97@gmail.com>
This commit is contained in:
parent
d897332c26
commit
92c9f0754b
@ -21,12 +21,18 @@
|
||||
},
|
||||
"applyToChildren": {
|
||||
"title": "Apply to Children",
|
||||
"description": "Remove descriptions from all children of the selected assets. E.g., columns, tasks, topic fields,...",
|
||||
"description": "Remove descriptions from the children of the selected assets. E.g., columns, tasks, topic fields,...",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "../../../../../type/basic.json#/definitions/entityName"
|
||||
},
|
||||
"default": null
|
||||
},
|
||||
"applyToAll": {
|
||||
"title": "Apply to All",
|
||||
"description": "Remove descriptions from all the children and parent of the selected assets.",
|
||||
"type": "boolean",
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"required": ["type"],
|
||||
|
@ -10,6 +10,15 @@
|
||||
"type": "string",
|
||||
"enum": ["RemoveTagsAction"],
|
||||
"default": "RemoveTagsAction"
|
||||
},
|
||||
"labelType": {
|
||||
"description" : "Remove tags by its label type",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Manual",
|
||||
"Propagated",
|
||||
"Automated"
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
@ -26,16 +35,30 @@
|
||||
"$ref": "../../../../../type/tagLabel.json"
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"description": "Remove tags by its label type",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/labelType"
|
||||
},
|
||||
"default": null
|
||||
},
|
||||
"applyToChildren": {
|
||||
"title": "Apply to Children",
|
||||
"description": "Remove tags from all the children of the selected assets. E.g., columns, tasks, topic fields,...",
|
||||
"description": "Remove tags from the children of the selected assets. E.g., columns, tasks, topic fields,...",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "../../../../../type/basic.json#/definitions/entityName"
|
||||
},
|
||||
"default": null
|
||||
},
|
||||
"applyToAll": {
|
||||
"title": "Apply to All",
|
||||
"description": "Remove tags from all the children and parent of the selected assets.",
|
||||
"type": "boolean",
|
||||
"default": null
|
||||
}
|
||||
},
|
||||
"required": ["type", "tags"],
|
||||
"required": ["type"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2024 Collate.
|
||||
* Copyright 2025 Collate.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -10,14 +10,16 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Remove Owner Action Type
|
||||
*/
|
||||
export interface RemoveDescriptionAction {
|
||||
/**
|
||||
* Remove descriptions from all children of the selected assets. E.g., columns, tasks, topic
|
||||
* Remove descriptions from all the children and parent of the selected assets.
|
||||
*/
|
||||
applyToAll?: boolean;
|
||||
/**
|
||||
* Remove descriptions from the children of the selected assets. E.g., columns, tasks, topic
|
||||
* fields,...
|
||||
*/
|
||||
applyToChildren?: string[];
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2024 Collate.
|
||||
* Copyright 2025 Collate.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -10,27 +10,42 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Remove Tags Action Type
|
||||
*/
|
||||
export interface RemoveTagsAction {
|
||||
/**
|
||||
* Remove tags from all the children of the selected assets. E.g., columns, tasks, topic
|
||||
* Remove tags from all the children and parent of the selected assets.
|
||||
*/
|
||||
applyToAll?: boolean;
|
||||
/**
|
||||
* Remove tags from the children of the selected assets. E.g., columns, tasks, topic
|
||||
* fields,...
|
||||
*/
|
||||
applyToChildren?: string[];
|
||||
/**
|
||||
* Remove tags by its label type
|
||||
*/
|
||||
labels?: LabelElement[];
|
||||
/**
|
||||
* Tags to remove
|
||||
*/
|
||||
tags: TagLabel[];
|
||||
tags?: TagLabel[];
|
||||
/**
|
||||
* Application Type
|
||||
*/
|
||||
type: RemoveTagsActionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove tags by its label type
|
||||
*/
|
||||
export enum LabelElement {
|
||||
Automated = "Automated",
|
||||
Manual = "Manual",
|
||||
Propagated = "Propagated",
|
||||
}
|
||||
|
||||
/**
|
||||
* This schema defines the type for labeling an entity with a Tag.
|
||||
*/
|
||||
@ -54,7 +69,7 @@ export interface TagLabel {
|
||||
* label was propagated from upstream based on lineage. 'Automated' is used when a tool was
|
||||
* used to determine the tag label.
|
||||
*/
|
||||
labelType: LabelType;
|
||||
labelType: LabelTypeEnum;
|
||||
/**
|
||||
* Name of the tag or glossary term.
|
||||
*/
|
||||
@ -79,7 +94,7 @@ export interface TagLabel {
|
||||
* label was propagated from upstream based on lineage. 'Automated' is used when a tool was
|
||||
* used to determine the tag label.
|
||||
*/
|
||||
export enum LabelType {
|
||||
export enum LabelTypeEnum {
|
||||
Automated = "Automated",
|
||||
Derived = "Derived",
|
||||
Manual = "Manual",
|
||||
|
Loading…
x
Reference in New Issue
Block a user