mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 22:23:16 +00:00
MINOR - Fix Empty Test Suites list filter (#14546)
* MINOR - Fix Empty Test Suites list filter * allowed empty test suite to appear in logical test suite page --------- Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
This commit is contained in:
parent
277ef6b57d
commit
d16980a30c
@ -236,7 +236,7 @@ public class ListFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Boolean.TRUE.equals(DatasourceConfig.getInstance().isMySQL())) {
|
if (Boolean.TRUE.equals(DatasourceConfig.getInstance().isMySQL())) {
|
||||||
return "!JSON_CONTAINS(json, JSON_ARRAY() , '$.testCaseResultSummary')";
|
return "JSON_LENGTH(JSON_EXTRACT(json, '$.testCaseResultSummary')) != 0";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "jsonb_array_length(json#>'{testCaseResultSummary}') != 0";
|
return "jsonb_array_length(json#>'{testCaseResultSummary}') != 0";
|
||||||
|
@ -145,7 +145,7 @@ export const TestSuites = ({ summaryPanel }: { summaryPanel: ReactNode }) => {
|
|||||||
const result = await getListTestSuites({
|
const result = await getListTestSuites({
|
||||||
...params,
|
...params,
|
||||||
fields: 'owner,summary',
|
fields: 'owner,summary',
|
||||||
includeEmptyTestSuites: false,
|
includeEmptyTestSuites: !(tab === DataQualityPageTabs.TABLES),
|
||||||
testSuiteType:
|
testSuiteType:
|
||||||
tab === DataQualityPageTabs.TABLES
|
tab === DataQualityPageTabs.TABLES
|
||||||
? TestSuiteType.executable
|
? TestSuiteType.executable
|
||||||
|
@ -139,7 +139,7 @@ describe('TestSuites component', () => {
|
|||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
expect(mockGetListTestSuites).toHaveBeenCalledWith({
|
expect(mockGetListTestSuites).toHaveBeenCalledWith({
|
||||||
fields: 'owner,summary',
|
fields: 'owner,summary',
|
||||||
includeEmptyTestSuites: false,
|
includeEmptyTestSuites: true,
|
||||||
limit: 15,
|
limit: 15,
|
||||||
testSuiteType: 'logical',
|
testSuiteType: 'logical',
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user