Skip to content

Commit 34f92d4

Browse files
authored
Merge branch 'main' into fix/clickhouse-materialized-view-lineage
2 parents 7f04cbb + 89d9e32 commit 34f92d4

101 files changed

Lines changed: 5264 additions & 311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bootstrap/sql/migrations/native/1.13.0/mysql/postDataMigrationSQLScript.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,18 @@ UPDATE glossary_term_entity
8585
SET json = JSON_SET(COALESCE(json, '{}'), '$.conceptMappings', JSON_ARRAY())
8686
WHERE JSON_EXTRACT(json, '$.conceptMappings') IS NULL;
8787

88+
-- Add Container permissions to AutoClassificationBotPolicy for storage auto-classification support
89+
UPDATE policy_entity
90+
SET json = JSON_ARRAY_INSERT(
91+
json,
92+
'$.rules[1]',
93+
JSON_OBJECT(
94+
'name', 'AutoClassificationBotRule-Allow-Container',
95+
'description', 'Allow adding tags and sample data to the containers',
96+
'resources', JSON_ARRAY('Container'),
97+
'operations', JSON_ARRAY('EditAll', 'ViewAll'),
98+
'effect', 'allow'
99+
)
100+
)
101+
WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.name')) = 'AutoClassificationBotPolicy'
102+
AND JSON_EXTRACT(json, '$.rules[1].name') != 'AutoClassificationBotRule-Allow-Container';

bootstrap/sql/migrations/native/1.13.0/postgres/postDataMigrationSQLScript.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,19 @@ UPDATE glossary_term_entity
8787
SET json = jsonb_set(COALESCE(json::jsonb, '{}'::jsonb), '{conceptMappings}', '[]'::jsonb)
8888
WHERE json IS NULL OR json::jsonb->'conceptMappings' IS NULL;
8989

90+
-- Add Container permissions to AutoClassificationBotPolicy for storage auto-classification support
91+
UPDATE policy_entity
92+
SET json = jsonb_insert(
93+
json::jsonb,
94+
'{rules,1}',
95+
jsonb_build_object(
96+
'name', 'AutoClassificationBotRule-Allow-Container',
97+
'description', 'Allow adding tags and sample data to the containers',
98+
'resources', jsonb_build_array('Container'),
99+
'operations', jsonb_build_array('EditAll', 'ViewAll'),
100+
'effect', 'allow'
101+
)
102+
)
103+
WHERE json->>'name' = 'AutoClassificationBotPolicy'
104+
AND (json->'rules'->1->>'name' IS NULL OR json->'rules'->1->>'name' != 'AutoClassificationBotRule-Allow-Container');
105+

0 commit comments

Comments
 (0)