Skip to content

Persist admin event only when roles is non-empty#35162

Merged
pedroigor merged 1 commit intokeycloak:mainfrom
venkatesh2090:role-mapping-event
Nov 29, 2024
Merged

Persist admin event only when roles is non-empty#35162
pedroigor merged 1 commit intokeycloak:mainfrom
venkatesh2090:role-mapping-event

Conversation

@venkatesh2090
Copy link
Contributor

Currently, an adminEvent is created regardless of if the roles passed to the role-mapping API is empty. The event should only be created when the list roles is non-empty.

Closes #33195

@sguilhen
Copy link
Contributor

@ahus1 @pedroigor Could any of you please trigger the CI for this one? Changes LGTM as they prevent creation of redundant events.

Currently, an adminEvent is created regardless of if the roles passed to the
role-mapping API is empty. The event should only be created when the list
`roles` is non-empty.

Closes keycloak#33195

Signed-off-by: Venkatesh Kannan <[email protected]>
@ahus1
Copy link
Member

ahus1 commented Nov 29, 2024

@venkatesh2090 - please avoid rebasing the PR unless you are asked by a reviewer or GitHub shows a conflict. Any rebased would invalidate previous reviews.

@sguilhen - can you please re-review? Thanks.

@sguilhen
Copy link
Contributor

@ahus1 Sure, I can - in the meantime would you be able to re-run the failing tests? Don't seem related to me.

@pedroigor pedroigor merged commit f043beb into keycloak:main Nov 29, 2024
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.

Any one Client role mapping to user/group generating two events on admin events tab.

4 participants