Skip to content

Commit 2328665

Browse files
authored
fix: workaround for team id needed in console (#692)
* fix: workaround for team id needed in console * fix: set name instead of id
1 parent a075c4f commit 2328665

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/repo.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ export async function loadFileToSpec(
494494
return
495495
}
496496
}
497+
// TODO: Remove workaround for User currently relying on id in console
497498
if (fileMap.kind === 'AplUser') {
498499
data.spec.id = data.metadata?.name
499500
}
@@ -507,6 +508,10 @@ export async function loadFileToSpec(
507508
}
508509
} else {
509510
const ref: Record<string, any> = get(spec, jsonPath)
511+
// TODO: Remove workaround for Team settings currently relying on id in console
512+
if (fileMap.kind === 'AplTeamSettingSet') {
513+
data.spec.name = data.metadata?.name
514+
}
510515
// Decrypted secrets may need to be merged with plain text specs
511516
const newRef = merge(cloneDeep(ref), data?.spec)
512517
set(spec, jsonPath, newRef)

0 commit comments

Comments
 (0)