Fix Test Suite Filter (#16615)

Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
This commit is contained in:
Mohit Yadav 2024-06-12 10:40:05 +05:30 committed by GitHub
parent dc31717b16
commit 3db41f08e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 15 deletions

View File

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

View File

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

View File

@ -338,6 +338,19 @@
"testResultList"
],
"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" : [
{
"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"
}
]
}
]