mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-05 08:05:28 +00:00

* backend * format & tests * rename backend * migrations and ingestion * format & tests * format & tests * tests * format & tests * tests * updated ui side of changes * addressing comment * fixed failing unit test * fix test list * added e2e test, and fixed existing test --------- Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
29 lines
915 B
SQL
29 lines
915 B
SQL
-- add timestamp index for test case result reindex performance
|
|
CREATE INDEX idx_timestamp_desc ON data_quality_data_time_series (timestamp DESC);
|
|
|
|
-- rename executable -> basic for test suites
|
|
UPDATE test_suite
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{executable}',
|
|
'{basic}',
|
|
(json #> '{executable}')::jsonb,
|
|
true
|
|
)
|
|
WHERE json #>> '{executable}' IS NOT NULL;
|
|
|
|
-- rename executableEntityReference -> basicEntityReference for test suites
|
|
UPDATE test_suite
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{executableEntityReference}',
|
|
'{basicEntityReference}',
|
|
(json #> '{executableEntityReference}')::jsonb,
|
|
true
|
|
)
|
|
WHERE json #>> '{executableEntityReference}' IS NOT NULL;
|
|
|
|
-- clean up the testSuites
|
|
UPDATE test_case SET json = json::jsonb #- '{testSuites}';
|
|
|
|
-- clean up the testSuites in the version history too
|
|
UPDATE entity_extension SET json = json::jsonb #- '{testSuites}' WHERE jsonSchema = 'testCase';
|