Skip to content

Commit e1fdf73

Browse files
committed
chore(APP): stop rewriting task intervals on config load
Remove the config-loader migration that replaced known prior default interval values. Values in config.yaml are now used as written.
1 parent adb5eba commit e1fdf73

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/utils/config-loader.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,6 @@ const loadConfigForVersion = (dataModelVersion) => {
9595
// Merge with defaults to ensure all fields are present
9696
mergeObjects(unifiedConfig, defaultConfig);
9797

98-
// Migrate shipped task-interval defaults when they match a known prior default.
99-
// mergeObjects only fills missing keys, so existing configs keep stale values
100-
// until upgraded here. User-customized values are left alone.
101-
if (unifiedConfig?.APP?.TASKS) {
102-
const tasks = unifiedConfig.APP.TASKS;
103-
if (tasks.GOVERNANCE_SYNC_TASK_INTERVAL === 30) {
104-
tasks.GOVERNANCE_SYNC_TASK_INTERVAL = 300;
105-
}
106-
if (tasks.PICKLIST_SYNC_TASK_INTERVAL === 30 || tasks.PICKLIST_SYNC_TASK_INTERVAL === 60) {
107-
tasks.PICKLIST_SYNC_TASK_INTERVAL = 300;
108-
}
109-
if (tasks.MIRROR_CHECK_TASK_INTERVAL === 300) {
110-
tasks.MIRROR_CHECK_TASK_INTERVAL = 900;
111-
}
112-
if (tasks.DEFAULT_ORGANIZATIONS_SYNC_TASK_INTERVAL !== undefined) {
113-
delete tasks.DEFAULT_ORGANIZATIONS_SYNC_TASK_INTERVAL;
114-
}
115-
}
116-
11798
// Extract the appropriate section based on version
11899
// Keep APP nested for compatibility with existing code (getConfig().APP.LOG_LEVEL)
119100
let mergedConfig;

0 commit comments

Comments
 (0)