Skip to content

KC-1346: Fix misleading communication error when assigning team to admin role#2209

Merged
sshrushanth-ks merged 3 commits into
KC-1346from
KC-1346-int
Jul 15, 2026
Merged

KC-1346: Fix misleading communication error when assigning team to admin role#2209
sshrushanth-ks merged 3 commits into
KC-1346from
KC-1346-int

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

enterprise-team -ar showed the correct admin-role validation message but then also raised a misleading communication error. The API was still called with an empty RoleTeams payload after validation filtered out admin roles. This fix skips the API call when there are no role-team entries to send.

Changes

  • enterprise_common.py — only call role_team_add / role_team_remove when role_team is non-empty in change_team_roles and change_role_teams
  • test_enterprise_role_team_validation.py — added tests confirming no API call is made when assigning a team to an admin role

@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review July 13, 2026 06:24
@sshrushanth-ks sshrushanth-ks self-assigned this Jul 13, 2026
@sshrushanth-ks
sshrushanth-ks merged commit ff5a122 into KC-1346 Jul 15, 2026
4 checks passed
@adeshmukh-ks
adeshmukh-ks deleted the KC-1346-int branch July 16, 2026 04:42
sshrushanth-ks added a commit that referenced this pull request Jul 16, 2026
…min role (#2209)

* Fix misleading communication error when assigning team to admin role

* fixed unit test file

* removed team details from response after warning is displayed
sk-keeper pushed a commit that referenced this pull request Jul 16, 2026
…min role (#2209)

* Fix misleading communication error when assigning team to admin role

* fixed unit test file

* removed team details from response after warning is displayed
sk-keeper pushed a commit that referenced this pull request Jul 16, 2026
…min role (#2209)

* Fix misleading communication error when assigning team to admin role

* fixed unit test file

* removed team details from response after warning is displayed
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.

4 participants