Skip to content

fix: bug of GetAllUsersByDomain#790

Merged
hsluoyz merged 1 commit intoapache:masterfrom
kilosonc:updateEnhance
May 16, 2021
Merged

fix: bug of GetAllUsersByDomain#790
hsluoyz merged 1 commit intoapache:masterfrom
kilosonc:updateEnhance

Conversation

@kilosonc
Copy link
Contributor

Signed-off-by: closetool 4closetool3@gmail.com

Fix: #789

@hsluoyz
Copy link
Member

hsluoyz commented May 14, 2021

@wusphinx plz review.

Copy link
Contributor

@sagilio sagilio left a comment

Choose a reason for hiding this comment

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

I have some question about this PR:

  1. Should we remove associated policy in p? DeleteRoleForUserInDomain and DeleteRolesForUserInDomain will not remove them.
  2. Should this API return all roles and users? we only need to return alice and bob here because admin is only a role according to the policy.

And I think adding GetAllRoles(domain...) or GetAllUsers(domain...) in RoleManager may better., not scanning all the p and g policies.

@hsluoyz hsluoyz requested a review from nodece May 15, 2021 01:03
@wusphinx
Copy link

Great job! @closetool

Signed-off-by: closetool <4closetool3@gmail.com>
@hsluoyz hsluoyz merged commit d8b8c3d into apache:master May 16, 2021
@github-actions
Copy link

🎉 This PR is included in version 2.30.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]GetAllUsersByDomain

4 participants