mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-06 16:47:29 +00:00

* refactor: entityFQN as ListFilter condition * feat: implement resolution entity timeseries * fix: rename to testCaseResolutionStatus * ref: extracted ES query builder into private method * ref: extract OS query builder in its own method * ref: remove ingestion logic for test case resolution * fix: reorganize json schemas to fix circular import in Python * ref: object names in typescript code * feat: added indexing of test case resolution * feat: added test case resolution sample data * fix: test case resolution api logic * fix: audit logger for entityTimeSeriesInterface * fix: DDL generation * style: python linting * fix: skip UI test case resolution tests * fix: remove extension field * fix: renamed testCaseFailureStatus to testCaseResolutionStatus * fix: remove reviewer * fix: rename sequenceId to stateId * fix: re adjust search weights * fix: removed InReview status * style: ran python linting
41 lines
1.8 KiB
SQL
41 lines
1.8 KiB
SQL
-- Data quality failure status extension time series
|
|
CREATE TABLE test_case_resolution_status_time_series (
|
|
id varchar(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
stateId varchar(36) GENERATED ALWAYS AS (json ->> 'stateId') STORED NOT NULL,
|
|
assignee varchar(256) GENERATED ALWAYS AS (
|
|
CASE
|
|
WHEN json->'testCaseResolutionStatusDetails' IS NOT NULL AND
|
|
json->'testCaseResolutionStatusDetails'->'assignee' IS NOT NULL AND
|
|
json->'testCaseResolutionStatusDetails'->'assignee'->>'name' IS NOT NULL
|
|
THEN json->'testCaseResolutionStatusDetails'->'assignee'->>'name'
|
|
ELSE NULL
|
|
END
|
|
) STORED NULL,
|
|
timestamp bigint GENERATED ALWAYS AS ((json ->> 'timestamp')::bigint) STORED NOT NULL,
|
|
testCaseResolutionStatusType varchar(36) GENERATED ALWAYS AS (json ->> 'testCaseResolutionStatusType') STORED NOT NULL,
|
|
jsonSchema varchar(256) NOT NULL,
|
|
json jsonb NOT NULL,
|
|
entityFQNHash varchar(768) COLLATE "C" DEFAULT NULL,
|
|
CONSTRAINT test_case_resolution_status_unique_constraint UNIQUE (id, timestamp, entityFQNHash)
|
|
);
|
|
create index test_case_resolution_status_time_series_id on test_case_resolution_status_time_series (id);
|
|
create index test_case_resolution_status_time_series_status_type on test_case_resolution_status_time_series (testCaseResolutionStatusType);
|
|
create index test_case_resolution_status_time_series_id_status_type on test_case_resolution_status_time_series (id, testCaseResolutionStatusType);
|
|
|
|
-- DataInsightsApplication should not allow configuration
|
|
UPDATE apps_marketplace
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{allowConfiguration}',
|
|
to_jsonb(false)
|
|
)
|
|
where name = 'DataInsightsApplication';
|
|
|
|
UPDATE installed_apps
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{allowConfiguration}',
|
|
to_jsonb(false)
|
|
)
|
|
where name = 'DataInsightsApplication';
|