fix (gateway/config): merge config.patch object arrays by id

This commit is contained in:
Vignesh Natarajan
2026-02-14 19:33:32 -08:00
parent a3e2d0563e
commit 8ec0ef5866
2 changed files with 53 additions and 3 deletions

View File

@@ -342,7 +342,9 @@ export const configHandlers: GatewayRequestHandlers = {
);
return;
}
const merged = applyMergePatch(snapshot.config, parsedRes.parsed);
const merged = applyMergePatch(snapshot.config, parsedRes.parsed, {
mergeObjectArraysById: true,
});
const schemaPatch = loadSchemaWithPlugins();
const restoredMerge = restoreRedactedValues(merged, snapshot.config, schemaPatch.uiHints);
if (!restoredMerge.ok) {