Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several manage user role bugs #2826

Merged
merged 4 commits into from
Aug 31, 2018
Merged

Fix several manage user role bugs #2826

merged 4 commits into from
Aug 31, 2018

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Aug 13, 2018

Fix the edit of users by an admin at cf/org levels …

  • Fix false warning for too many roles
  • Fix comparison (handle situation where there's no missing users)
  • Fix process of creating a pagination section from a parent.
    • Pagination service requires a list of an organisation's spaces..
    • Entity func discovers organisation entity in store with a populated spaces array
    • Populate space pagination section using the org entity's spaces value

Fix disable of org role pill cross …

  • Org user cross should be disabled if there are other roles within the same organisation OR the organisation has space roles
  • Fix 1 - Enable cross of org user pill if the only org role is itself
  • Fix 2 - When checking if an organisation has space roles ignore spaces from other organisations

- Fix false warning for too many roles
- Fix comparison (handle situation where there's no missing users)
- Fix process of creating a pagination section from a parent.
  - Fetch org spaces..
  - Org entity has spaces param
  - Populate space pagination section unsing org entity's spaces
- Org user cross should be disabled if there are other roles within the same organisation OR the organisation has space roles
- Fix 1 - Enable cross of org user pill if the only org role is itself
- Fix 2 - When checking if an organisation has space roles ignore spaces from other organisations
@cfdreddbot
Copy link

Hey richard-cox!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@codecov
Copy link

codecov bot commented Aug 13, 2018

Codecov Report

Merging #2826 into v2-master will increase coverage by <.01%.
The diff coverage is 18.18%.

@@              Coverage Diff              @@
##           v2-master    #2826      +/-   ##
=============================================
+ Coverage      71.35%   71.35%   +<.01%     
=============================================
  Files            605      605              
  Lines          25895    25897       +2     
  Branches        5872     5874       +2     
=============================================
+ Hits           18478    18480       +2     
  Misses          7417     7417

return true;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this have the return false? or change the if to a return

@richard-cox richard-cox added the needs attention This PR needs attention label Aug 31, 2018
@richard-cox richard-cox removed the needs attention This PR needs attention label Aug 31, 2018
@KlapTrap KlapTrap merged commit 7c8a8be into v2-master Aug 31, 2018
@richard-cox richard-cox deleted the fix-edit-user-roles branch August 31, 2018 16:20
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.

4 participants