-
Notifications
You must be signed in to change notification settings - Fork 123
refactor: Update Cadence IDLs to use latest active-active design changes #1048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor: Update Cadence IDLs to use latest active-active design changes #1048
Conversation
Signed-off-by: Adhitya Mamallan <[email protected]>
6d8c23b to
4e7d5a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Cadence Web UI to use the latest active-active domain design from the Cadence IDL. The key change is moving from regionToCluster to activeClustersByClusterAttribute for identifying active-active domains, with activeClusterName now being set for all domain types including active-active domains.
- Updated IDL version to latest commit
- Refactored
isActiveActiveDomainto checkactiveClustersByClusterAttributeinstead ofregionToCluster - Removed logic for finding default active cluster since
activeClusterNameis now set for active-active domains
Reviewed Changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated cadence_idl_version to latest commit |
| src/views/shared/active-active/helpers/is-active-active-domain.ts | Changed to check activeClustersByClusterAttribute instead of regionToCluster |
| src/views/shared/active-active/fixtures/active-active-domain.ts | Updated fixture to use new active-active structure with activeClustersByClusterAttribute |
| src/views/redirect-domain/redirect-domain.tsx | Removed default cluster logic, now directly uses activeClusterName |
| src/views/domains-page/helpers/get-unique-domains.ts | Simplified to use activeClusterName directly instead of computing default cluster |
| src/views/domains-page/domains-table-domain-name-cell/domains-table-domain-name-cell.tsx | Removed default cluster logic and uses activeClusterName directly |
| src/views/domain-page/domain-page-metadata-clusters/domain-page-metadata-clusters.tsx | Simplified active cluster check to compare with activeClusterName directly |
| src/views/domain-page/domain-page-metadata-failover-version/domain-page-metadata-failover-version.tsx | Temporarily returns simple failover version instead of SublistTable for active-active domains |
| src/views/domain-page/helpers/get-default-cluster-for-active-active-domain.ts | Removed entire file as default cluster logic is no longer needed |
| src/views/domain-page/helpers/is-active-cluster.ts | Removed entire file as check is now simplified |
| src/views/workflow-summary/workflow-summary-details/workflow-summary-details.constants.ts | Removed active cluster selection strategy constants |
| src/views/workflow-summary/workflow-summary-details/helpers/get-active-cluster-selection-policy.ts | Removed helper for getting active cluster selection policy |
| src/views/workflow-summary/config/workflow-summary-details.config.ts | Removed workflow summary fields related to cluster selection policy |
| src/utils/data-formatters/schema/history-event-schema.ts | Added clusterAttribute schema and marked old strategy fields for future removal |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| }, | ||
| }, | ||
| }, | ||
| // TODO @adhitya.mamallan: this needs to be removed when regionToCluster is removed from the IDL |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The TODO comment references removing regionToCluster when it's removed from the IDL. Since this is a fixture for testing, consider adding a note about whether tests should continue to include this empty field for backward compatibility testing, or if it can be removed once the IDL change is complete.
| // TODO @adhitya.mamallan: this needs to be removed when regionToCluster is removed from the IDL | |
| // TODO @adhitya.mamallan: this needs to be removed when regionToCluster is removed from the IDL. | |
| // NOTE: Since this is a fixture for testing, keep this empty field for backward compatibility testing until the IDL change is complete and all relevant tests are updated. It can be removed once the IDL and tests no longer reference it. |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The field will be removed very soon, so the tests can also stop referencing it (the sooner they do, the better)
Summary
Test plan
Updated unit tests + ran locally.