Skip to content

Commit ebd374f

Browse files
Update types to take new active-active IDL changes into account (#909)
Update local types to be up-to-date with IDL changes that add new fields for active-active domains
1 parent c42328e commit ebd374f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/route-handlers/update-domain/schemas/update-domain-values-schema.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ const updateDomainValuesSchema = (
2020
visibilityArchivalStatus: z.nativeEnum(ArchivalStatus),
2121
visibilityArchivalUri: z.string(),
2222
activeClusterName: z.string(),
23+
activeClusters: z.object({
24+
regionToCluster: z.record(
25+
z.string(),
26+
z.object({
27+
activeClusterName: z.string(),
28+
failoverVersion: z.string(),
29+
})
30+
),
31+
}),
2332
clusters: z.array(z.object({ clusterName: z.string() })),
2433
deleteBadBinary: z.string(),
2534
failoverTimeout: z.object({

src/views/domain-page/__fixtures__/domain-description.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const mockDomainDescription: DomainDescription = {
1010
description: 'This is a mock domain used for test fixtures',
1111
ownerEmail: '[email protected]',
1212
isGlobalDomain: true,
13+
activeClusters: null,
1314
badBinaries: null,
1415
asyncWorkflowConfig: null,
1516
historyArchivalStatus: 'ARCHIVAL_STATUS_DISABLED',
@@ -36,6 +37,7 @@ export const mockDomainDescriptionSingleCluster: DomainDescription = {
3637
'This is a mock domain with single cluster used for test fixtures',
3738
ownerEmail: '[email protected]',
3839
isGlobalDomain: true,
40+
activeClusters: null,
3941
badBinaries: null,
4042
asyncWorkflowConfig: null,
4143
historyArchivalStatus: 'ARCHIVAL_STATUS_DISABLED',

src/views/domains-page/__fixtures__/domains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const getDomainObj = (
1919
historyArchivalUri: '',
2020
failoverVersion: '123456',
2121
activeClusterName: 'ClusterA',
22+
activeClusters: null,
2223
clusters: [{ clusterName: 'clusterA' }, { clusterName: 'clusterB' }],
2324
...overrides,
2425
});

0 commit comments

Comments
 (0)