mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 17:34:41 +00:00
Fix Test Suite Filter (#16615)
Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
This commit is contained in:
parent
dc31717b16
commit
3db41f08e2
@ -1,2 +1,4 @@
|
|||||||
ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.sourceConfig.config.appConfig.type') STORED NULL;
|
ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.sourceConfig.config.appConfig.type') STORED NULL;
|
||||||
ALTER TABLE ingestion_pipeline_entity ADD COLUMN pipelineType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.pipelineType') STORED NULL;
|
ALTER TABLE ingestion_pipeline_entity ADD COLUMN pipelineType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.pipelineType') STORED NULL;
|
||||||
|
|
||||||
|
DELETE FROM event_subscription_entity WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.filteringRules.resources[0]')) = 'testSuite';
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json -> 'sourceConfig' -> 'config' -> 'appConfig' ->> 'type') STORED NULL;
|
ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json -> 'sourceConfig' -> 'config' -> 'appConfig' ->> 'type') STORED NULL;
|
||||||
ALTER TABLE ingestion_pipeline_entity ADD COLUMN pipelineType VARCHAR(256) GENERATED ALWAYS AS (json ->> 'pipelineType') STORED NULL;
|
ALTER TABLE ingestion_pipeline_entity ADD COLUMN pipelineType VARCHAR(256) GENERATED ALWAYS AS (json ->> 'pipelineType') STORED NULL;
|
||||||
|
|
||||||
|
delete from event_subscription_entity where (json -> 'filteringRules' -> 'resources' ->> 0) = 'testSuite';
|
@ -338,6 +338,19 @@
|
|||||||
"testResultList"
|
"testResultList"
|
||||||
],
|
],
|
||||||
"inputType": "runtime"
|
"inputType": "runtime"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "GetTestCaseStatusUpdatesUnderSuite",
|
||||||
|
"fullyQualifiedName": "eventSubscription.GetTestCaseStatusUpdatesUnderSuite",
|
||||||
|
"displayName": "Get Test Case Status Updates belonging to a Test Suite",
|
||||||
|
"description" : "Get Status Updates Test Cases belonging to a Test Suite",
|
||||||
|
"effect" : "include",
|
||||||
|
"condition": "getTestCaseStatusIfInTestSuite(${testStatusList}, ${testSuiteList})",
|
||||||
|
"arguments": [
|
||||||
|
"testStatusList",
|
||||||
|
"testSuiteList"
|
||||||
|
],
|
||||||
|
"inputType": "runtime"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -382,19 +395,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"supportedActions" : [
|
"supportedActions" : [
|
||||||
{
|
|
||||||
"name": "GetTestCaseStatusUpdatesUnderSuite",
|
|
||||||
"fullyQualifiedName": "eventSubscription.GetTestCaseStatusUpdatesUnderSuite",
|
|
||||||
"displayName": "Get Test Case Status Updates belonging to a Test Suite",
|
|
||||||
"description" : "Get Status Updates Test Cases belonging to a Test Suite",
|
|
||||||
"effect" : "include",
|
|
||||||
"condition": "getTestCaseStatusIfInTestSuite(${testStatusList}, ${testSuiteList})",
|
|
||||||
"arguments": [
|
|
||||||
"testStatusList",
|
|
||||||
"testSuiteList"
|
|
||||||
],
|
|
||||||
"inputType": "runtime"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user