Skip to content

IBX-10976: Deleting user/user group breaks assigned role view#700

Open
Sztig wants to merge 4 commits into4.6from
IBX-10976-role-assignment-trash-fix
Open

IBX-10976: Deleting user/user group breaks assigned role view#700
Sztig wants to merge 4 commits into4.6from
IBX-10976-role-assignment-trash-fix

Conversation

@Sztig
Copy link
Contributor

@Sztig Sztig commented Jan 19, 2026

🎫 Issue IBX-10976

Description:

This fix consists of two additions working together:

  • changes in the buildLoadRoleAssignmentsQuery to only query the users/user groups that are published (not trashed)
  • RoleAssignmentCacheInvalidationListener to invalidate the cache as just moving the user to trash or restoring it doesn't invalidate it

@sonarqubecloud
Copy link

Copy link
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect fixing it at the cache handler layer. Have you checked if the list of tags for the invalidation should be expanded there? What bothers me here is loading lots of data from the services layer just to generate tags. Besides, is it bulletproof when permissions don't allow fetching users or role assignments?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants