-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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 <[email protected]>
- Loading branch information
1 parent
5593520
commit 8fc6e8f
Showing
75 changed files
with
4,506 additions
and
491 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
bootstrap/sql/migrations/native/1.6.2/mysql/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-- add timestamp index for test case result reindex performance | ||
ALTER TABLE data_quality_data_time_series ADD INDEX `idx_timestamp_desc` (timestamp DESC); | ||
|
||
-- rename executable -> basic for test suites | ||
UPDATE test_suite | ||
SET json = JSON_INSERT( | ||
JSON_REMOVE(json, '$.executable'), | ||
'$.basic', | ||
JSON_EXTRACT(json, '$.executable') | ||
) | ||
WHERE JSON_EXTRACT(json, '$.executable') IS NOT NULL; | ||
|
||
-- rename executableEntityReference -> basicEntityReference for test suites | ||
UPDATE test_suite | ||
SET json = JSON_INSERT( | ||
JSON_REMOVE(json, '$.executableEntityReference'), | ||
'$.basicEntityReference', | ||
JSON_EXTRACT(json, '$.executableEntityReference') | ||
) | ||
WHERE JSON_EXTRACT(json, '$.executableEntityReference') IS NOT NULL; | ||
|
||
-- clean up the testSuites | ||
UPDATE test_case SET json = json_remove(json, '$.testSuites'); | ||
|
||
-- clean up the testSuites in the version history too | ||
UPDATE entity_extension SET json = json_remove(json, '$.testSuites') WHERE jsonSchema = 'testCase'; |
28 changes: 28 additions & 0 deletions
28
bootstrap/sql/migrations/native/1.6.2/postgres/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.