Skip to content

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Oct 22, 2025

Summary

  • Update IDLs to cadence-workflow/cadence-idl@792058c
  • Rewrite logic for isActiveActiveDomain to check for new active-active fields
  • Update fixtures for active-active domains
  • Remove logic to find default active cluster for UI, now that activeClusterName will be set for active-active domains as well
  • Remove activeClusterSelectionPolicy from Workflow Summary for the time being
  • Remove failover version table for the time being (will be added in a follow-up PR)

Test plan

Updated unit tests + ran locally.

Screenshot 2025-10-23 at 11 32 16 Screenshot 2025-10-23 at 11 39 12 Screenshot 2025-10-23 at 11 45 17

Signed-off-by: Adhitya Mamallan <[email protected]>
@adhityamamallan adhityamamallan changed the title Update IDL to latest and fix errors refactor: Update Cadence IDLs to use latest active-active design changes Oct 23, 2025
@adhityamamallan adhityamamallan marked this pull request as ready for review October 23, 2025 09:46
Copy link
Contributor

Copilot AI left a 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 isActiveActiveDomain to check activeClustersByClusterAttribute instead of regionToCluster
  • Removed logic for finding default active cluster since activeClusterName is 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
Copy link

Copilot AI Oct 23, 2025

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.

Suggested change
// 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.

Copy link
Member Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant