Commit 14de55b
authored
fix: Rewrite activeClusterSelectionPolicy schema to remove legacy fields & handle empty policy (#1351)
## Summary
[v1.4.0 of
Cadence](https://github.com/cadence-workflow/cadence/releases/tag/v1.4.0)
introduces Active-Active Domains, which brings with it the concept of
starting workflows with a special Active Cluster Selection Policy.
However, when starting a workflow, users can specify an empty Active
Cluster Selection Policy, which the Cadence UI fails to parse and render
appropriately (#1344).
This PR fixes that by:
- Fixing the schema to account for an empty ActiveClusterSelectionPolicy
- Pulling in the latest Cadence IDL changes, including
cadence-workflow/cadence-idl#264
- This allows us to clean up the legacy active-active implementation on
our side as well
## Test plan
Ran locally.
### Before
<img width="2559" height="658" alt="Screenshot 2026-06-11 at 15 41 56"
src="https://github.com/user-attachments/assets/f11a50b4-1d36-4ad2-9d6e-a1ecdfed0b20"
/>
### After
<img width="1645" height="1186" alt="Screenshot 2026-06-12 at 14 16 29"
src="https://github.com/user-attachments/assets/cf4ea181-ffa6-432a-ae10-cdb9b336cc69"
/>
## Notes
Fixes #1344
---------
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>1 parent 3a31a75 commit 14de55b
3 files changed
Lines changed: 14 additions & 43 deletions
File tree
- src
- route-handlers/list-workflows/helpers/__tests__
- utils/data-formatters/schema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
Lines changed: 13 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
189 | 161 | | |
190 | | - | |
| 162 | + | |
| 163 | + | |
191 | 164 | | |
192 | 165 | | |
193 | 166 | | |
| |||
0 commit comments