Fix Display Name for Alerts (#14889)

* Fix Display Names

* FIx Names and condition
This commit is contained in:
Mohit Yadav 2024-01-26 14:50:18 +05:30 committed by GitHub
parent f1c76ab371
commit 3f234df7cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 59 additions and 93 deletions

View File

@ -5,8 +5,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Table Name", "displayName": "Table Name",
"description" : "Filter A Change Event By Table Name", "description" : "Event Filtering By Table Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -17,8 +17,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -29,8 +29,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -66,8 +66,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Topic Name", "displayName": "Topic Name",
"description" : "Filter A Change Event By Topic Name", "description" : "Event Filtering By Topic Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -78,8 +78,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -90,8 +90,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -118,8 +118,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Container Name", "displayName": "Container Name",
"description" : "Filter A Change Event By Container Name", "description" : "Event Filtering By Container Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -130,8 +130,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -142,8 +142,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -170,8 +170,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Pipeline Name", "displayName": "Pipeline Name",
"description" : "Filter A Change Event By Pipeline Name", "description" : "Event Filtering By Pipeline Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -182,8 +182,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -194,8 +194,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -205,15 +205,6 @@
} }
], ],
"supportedActions" : [ "supportedActions" : [
{
"name": "GetPipelineSchemaChanges",
"fullyQualifiedName": "eventSubscription.filterBySchemaChange",
"displayName": "Get Schema Changes",
"description" : "Get Updates for Schema Changes",
"effect" : "include",
"condition": "matchAnyFieldChange({'sourceUrl','pipelineLocation'})",
"inputType": "none"
},
{ {
"name": "GetPipelineStatusUpdates", "name": "GetPipelineStatusUpdates",
"fullyQualifiedName": "eventSubscription.GetPipelineStatusUpdates", "fullyQualifiedName": "eventSubscription.GetPipelineStatusUpdates",
@ -234,8 +225,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Test Case Name", "displayName": "Test Case Name",
"description" : "Filter A Change Event By Test Case Name", "description" : "Event By Test Case Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -246,8 +237,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -258,8 +249,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -270,8 +261,8 @@
{ {
"name": "filterByTableNameTestCaseBelongsTo", "name": "filterByTableNameTestCaseBelongsTo",
"fullyQualifiedName": "eventSubscription.filterByTableNameTestCaseBelongsTo", "fullyQualifiedName": "eventSubscription.filterByTableNameTestCaseBelongsTo",
"displayName": "Filter By Table Name", "displayName": "Table Name A Test Case Belongs To",
"description" : "Filter A Change Event By Pipeline Name", "description" : "Event Filtering By Table Name A Test Case Belongs To",
"effect" : "include", "effect" : "include",
"condition": "filterByTableNameTestCaseBelongsTo(${tableNameList})", "condition": "filterByTableNameTestCaseBelongsTo(${tableNameList})",
"arguments": [ "arguments": [
@ -310,8 +301,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Test Suite Name", "displayName": "Test Suite Name",
"description" : "Filter By Test Suite Name", "description" : "Event Filtering By Test Suite Name",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -322,8 +313,8 @@
{ {
"name": "filterByOwner", "name": "filterByOwner",
"fullyQualifiedName": "eventSubscription.filterByOwner", "fullyQualifiedName": "eventSubscription.filterByOwner",
"displayName": "Filter By Owner Name", "displayName": "Owner Name",
"description" : "Filter A Change Event By Owner Name of Asset", "description" : "Event Filtering By Owner Name of Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -331,23 +322,11 @@
], ],
"inputType": "runtime" "inputType": "runtime"
}, },
{
"name": "filterByTableNameTestCaseBelongsTo",
"fullyQualifiedName": "eventSubscription.filterByTableNameTestCaseBelongsTo",
"displayName": "Filter By Table Name For A Test Suite",
"description" : "Filter A Change Event By Pipeline Name",
"effect" : "include",
"condition": "matchByTableNameTestCaseBelongsTo(${tableNameList})",
"arguments": [
"tableNameList"
],
"inputType": "runtime"
},
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -378,19 +357,6 @@
"testStatusList" "testStatusList"
], ],
"inputType": "runtime" "inputType": "runtime"
},
{
"name": "GetTestCaseAdditionOrDeletionToSuite",
"fullyQualifiedName": "eventSubscription.GetTestCaseAdditionOrDeletionToSuite",
"displayName": "Get Test Case Addition Or Deletion To Suite Updates",
"description" : "Get Status Updates when a Test Case is added or deleted to a Test Suite",
"effect" : "include",
"condition": "getTestCaseAdditionOrDeletionToSuite(${testSuiteList}, ${opList})",
"arguments": [
"testSuiteList",
"opList"
],
"inputType": "runtime"
} }
] ]
} }

View File

@ -2,8 +2,8 @@
{ {
"name": "filterBySource", "name": "filterBySource",
"fullyQualifiedName": "eventSubscription.filterBySource", "fullyQualifiedName": "eventSubscription.filterBySource",
"displayName": "Filter By Source of Change Event", "displayName": "Source of Change Event",
"description" : "Filter By Source of Change Event", "description" : "Event Filtering By Source of Change Event",
"effect" : "include", "effect" : "include",
"condition": "matchAnySource(${sourceList})", "condition": "matchAnySource(${sourceList})",
"arguments": [ "arguments": [
@ -14,8 +14,8 @@
{ {
"name": "filterByOwnerName", "name": "filterByOwnerName",
"fullyQualifiedName": "eventSubscription.filterByOwnerName", "fullyQualifiedName": "eventSubscription.filterByOwnerName",
"displayName": "Filter By Owner", "displayName": "Owner",
"description" : "Filter By Owner of the Asset", "description" : "Event Filtering By Owner of the Asset",
"effect" : "include", "effect" : "include",
"condition": "matchAnyOwnerName(${ownerNameList})", "condition": "matchAnyOwnerName(${ownerNameList})",
"arguments": [ "arguments": [
@ -26,8 +26,8 @@
{ {
"name": "filterByFqn", "name": "filterByFqn",
"fullyQualifiedName": "eventSubscription.filterByFqn", "fullyQualifiedName": "eventSubscription.filterByFqn",
"displayName": "Filter By Entity FQN", "displayName": "Entity FQN",
"description" : "Filter A Change Event By Entity FQN", "description" : "Event Filtering By Entity FQN",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityFqn(${fqnList})", "condition": "matchAnyEntityFqn(${fqnList})",
"arguments": [ "arguments": [
@ -38,8 +38,8 @@
{ {
"name": "filterByEntityId", "name": "filterByEntityId",
"fullyQualifiedName": "eventSubscription.filterByEntityId", "fullyQualifiedName": "eventSubscription.filterByEntityId",
"displayName": "Filter By Entity Id", "displayName": "Entity Id",
"description" : "Filter A Change Event By Entity Id", "description" : "Event Filtering By Entity Id",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEntityId(${entityIdList})", "condition": "matchAnyEntityId(${entityIdList})",
"arguments": [ "arguments": [
@ -50,8 +50,8 @@
{ {
"name": "filterByEventType", "name": "filterByEventType",
"fullyQualifiedName": "eventSubscription.filterByEventType", "fullyQualifiedName": "eventSubscription.filterByEventType",
"displayName": "Filter By Event Type", "displayName": "Event Type",
"description" : "Filter By Type of Event like entityCreated, entityUpdated, etc.", "description" : "Event Filtering by Event Type like entityCreated, entityUpdated, etc.",
"effect" : "include", "effect" : "include",
"condition": "matchAnyEventType(${eventTypeList})", "condition": "matchAnyEventType(${eventTypeList})",
"arguments": [ "arguments": [
@ -62,8 +62,8 @@
{ {
"name": "filterByUpdaterName", "name": "filterByUpdaterName",
"fullyQualifiedName": "eventSubscription.filterByUpdaterName", "fullyQualifiedName": "eventSubscription.filterByUpdaterName",
"displayName": "Filter By Update Name", "displayName": "Updater Name",
"description" : "Filter An Change Event if the Entity is Updated By Any of the Users", "description" : "Event Filtering by Updaters Name",
"effect" : "include", "effect" : "include",
"condition": "matchUpdatedBy(${updateByUserList})", "condition": "matchUpdatedBy(${updateByUserList})",
"arguments": [ "arguments": [
@ -74,8 +74,8 @@
{ {
"name": "filterByFieldChange", "name": "filterByFieldChange",
"fullyQualifiedName": "eventSubscription.filterByFieldChange", "fullyQualifiedName": "eventSubscription.filterByFieldChange",
"displayName": "Filter By Field Change", "displayName": "Field Change",
"description" : "Filter By a specific field change", "description" : "Event Filtering By a specific field change",
"effect" : "include", "effect" : "include",
"condition": "matchAnyFieldChange(${fieldChangeList})", "condition": "matchAnyFieldChange(${fieldChangeList})",
"arguments": [ "arguments": [
@ -86,8 +86,8 @@
{ {
"name": "filterByDomain", "name": "filterByDomain",
"fullyQualifiedName": "eventSubscription.filterByDomain", "fullyQualifiedName": "eventSubscription.filterByDomain",
"displayName": "Filter By Domain", "displayName": "Domain",
"description" : "Filter An Change Event By Domain a Entity Belongs To", "description" : "Event Filtering By Domain a Entity Belongs To",
"effect" : "include", "effect" : "include",
"condition": "matchAnyDomain(${domainList})", "condition": "matchAnyDomain(${domainList})",
"arguments": [ "arguments": [
@ -98,8 +98,8 @@
{ {
"name": "filterByMentionedName", "name": "filterByMentionedName",
"fullyQualifiedName": "eventSubscription.filterByMentionedName", "fullyQualifiedName": "eventSubscription.filterByMentionedName",
"displayName": "Filter By Mentioned Users", "displayName": "Mentioned Users",
"description" : "Filter An Conversation User Mentioned", "description" : "Event Filtering An Conversation User Mentioned",
"effect" : "include", "effect" : "include",
"condition": "matchConversationUser(${userList})", "condition": "matchConversationUser(${userList})",
"arguments": [ "arguments": [
@ -110,10 +110,10 @@
{ {
"name": "filterByGeneralMetadataEvents", "name": "filterByGeneralMetadataEvents",
"fullyQualifiedName": "eventSubscription.filterByGeneralMetadataEvents", "fullyQualifiedName": "eventSubscription.filterByGeneralMetadataEvents",
"displayName": "Filter By General Metadata Events", "displayName": "General Metadata Events",
"description" : "Filter By General MetadataEvents", "description" : "Event Filtering By General MetadataEvents",
"effect" : "include", "effect" : "include",
"condition": "matchAnyFieldChange('description', 'tags')", "condition": "matchAnyFieldChange({'description', 'tags'})",
"inputType": "none" "inputType": "none"
} }
] ]