mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-03 07:07:22 +00:00
MINOR: Fix app marketplace migrations (#21360)
* Fix app marketplace migrations * Fix test
This commit is contained in:
parent
2da78cd7fd
commit
6f4204731f
@ -27,11 +27,13 @@ WHERE serviceType = 'Tableau';
|
|||||||
|
|
||||||
-- Add runtime: enabled for AutoPilot
|
-- Add runtime: enabled for AutoPilot
|
||||||
UPDATE apps_marketplace
|
UPDATE apps_marketplace
|
||||||
SET json = JSON_SET(
|
SET json =
|
||||||
json,
|
CASE
|
||||||
'$.runtime.enabled',
|
WHEN JSON_EXTRACT(json, '$.runtime') IS NULL THEN
|
||||||
true
|
JSON_MERGE_PATCH(json, JSON_OBJECT('runtime', JSON_OBJECT('enabled', true)))
|
||||||
)
|
ELSE
|
||||||
|
JSON_SET(json, '$.runtime.enabled', true)
|
||||||
|
END
|
||||||
WHERE name = 'AutoPilotApplication';
|
WHERE name = 'AutoPilotApplication';
|
||||||
|
|
||||||
-- Update workflow settings with default values if present
|
-- Update workflow settings with default values if present
|
||||||
|
@ -33,12 +33,24 @@ WHERE serviceType = 'Tableau';
|
|||||||
|
|
||||||
-- Add runtime: enabled for AutoPilot
|
-- Add runtime: enabled for AutoPilot
|
||||||
UPDATE apps_marketplace
|
UPDATE apps_marketplace
|
||||||
SET json = jsonb_set(
|
SET json =
|
||||||
json::jsonb,
|
CASE
|
||||||
'{runtime,enabled}',
|
WHEN json::jsonb -> 'runtime' IS NULL THEN
|
||||||
'true'
|
jsonb_set(
|
||||||
)
|
json::jsonb,
|
||||||
where name = 'AutoPilotApplication';
|
'{runtime}',
|
||||||
|
jsonb_build_object('enabled', true),
|
||||||
|
true
|
||||||
|
)
|
||||||
|
ELSE
|
||||||
|
jsonb_set(
|
||||||
|
json::jsonb,
|
||||||
|
'{runtime,enabled}',
|
||||||
|
'true',
|
||||||
|
true
|
||||||
|
)
|
||||||
|
END
|
||||||
|
WHERE name = 'AutoPilotApplication';
|
||||||
|
|
||||||
-- Update workflow settings with default values if present
|
-- Update workflow settings with default values if present
|
||||||
UPDATE openmetadata_settings
|
UPDATE openmetadata_settings
|
||||||
|
@ -698,9 +698,9 @@ class SystemResourceTest extends OpenMetadataApplicationTest {
|
|||||||
JsonUtils.convertValue(setting.getConfigValue(), WorkflowSettings.class);
|
JsonUtils.convertValue(setting.getConfigValue(), WorkflowSettings.class);
|
||||||
|
|
||||||
// Assert default values
|
// Assert default values
|
||||||
assertEquals(50, workflowSettings.getExecutorConfiguration().getCorePoolSize());
|
assertEquals(10, workflowSettings.getExecutorConfiguration().getCorePoolSize());
|
||||||
assertEquals(1000, workflowSettings.getExecutorConfiguration().getQueueSize());
|
assertEquals(1000, workflowSettings.getExecutorConfiguration().getQueueSize());
|
||||||
assertEquals(100, workflowSettings.getExecutorConfiguration().getMaxPoolSize());
|
assertEquals(20, workflowSettings.getExecutorConfiguration().getMaxPoolSize());
|
||||||
assertEquals(20, workflowSettings.getExecutorConfiguration().getTasksDuePerAcquisition());
|
assertEquals(20, workflowSettings.getExecutorConfiguration().getTasksDuePerAcquisition());
|
||||||
assertEquals(7, workflowSettings.getHistoryCleanUpConfiguration().getCleanAfterNumberOfDays());
|
assertEquals(7, workflowSettings.getHistoryCleanUpConfiguration().getCleanAfterNumberOfDays());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user