Skip to content

Conversation

@siddhijain
Copy link
Contributor

@siddhijain siddhijain commented Oct 28, 2025

FixesAB#3397557

Recently refactored getAccountByLocalAccountId method to first filter both accounts and credentials on environment and then, check their homeAccountId to match the accounts with credentials. However, that refactoring does not work when environment passed is null. This resulted in test failures in the broker repo. #2781

This PR is to revert some of the changes made as part of that commit and fix the failing tests.

Copilot AI review requested due to automatic review settings October 28, 2025 03:10
@siddhijain siddhijain requested a review from a team as a code owner October 28, 2025 03:10
@siddhijain siddhijain added the No-Changelog This Pull-Request has no associated changelog entry. label Oct 28, 2025
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 partially reverts a previous commit to fix failing tests related to null environment handling in the broker's account lookup logic. The revert addresses cases where the environment parameter can be null when calling get_account_by_local_account_id.

Key Changes:

  • Removed environment comparison from getAccountByLocalAccountId method to handle null environment cases
  • Restored environment checking in accountHasCredential method to maintain credential validation integrity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot changed the title partial revert to fix failing tests in broker FixesAB#3397557 partial revert to fix failing tests in broker FixesAB#3397557, Fixes AB#3397557 Oct 28, 2025
@siddhijain siddhijain merged commit 4bba119 into dev Oct 28, 2025
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants