Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Show users without usernames #2496

Merged
merged 5 commits into from
Jun 22, 2018
Merged

Show users without usernames #2496

merged 5 commits into from
Jun 22, 2018

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Jun 21, 2018

Ensure that all users have a username, use the guid when missing

  • Fixes - no users shown in ibm cloud when using https://api..bluemix.net
  • Fixes - in scf missmatch between user count and users in users table
  • Step backward - hcf_auto_config is visible again

Fixes #2463

- Fixes - no users shown in ibm cloud when using https://api.<region>.bluemix.net
- Fixes - in scf missmatch between user count and users in users table
- Step backward - Shows three extra users in scf users table.
  - Two `inactive` users that do not contain a username
  - One 'active' user that does not contain a username and who's guid is `hcf_auto_config`
- We now ensure all users have guids, acquired from their guid
- This means the hcf_auto_config user is shown again
- Ensure this user is blocked, so no org/space roles can be assigned
  - Wired in same blocking mechanism to manager users select users step
@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 Jun 21, 2018

Codecov Report

Merging #2496 into v2-master will decrease coverage by 0.04%.
The diff coverage is 50%.

@@              Coverage Diff              @@
##           v2-master    #2496      +/-   ##
=============================================
- Coverage      70.69%   70.65%   -0.05%     
=============================================
  Files            590      590              
  Lines          24852    24822      -30     
  Branches        5611     5611              
=============================================
- Hits           17569    17537      -32     
- Misses          7283     7285       +2

const rowStateManager = new TableRowStateManager();
const sub = paginationMonitor.currentPage$.pipe(
tap(users => {
users.forEach(user => {
rowStateManager.setRowState(user.metadata.guid, {
blocked: !user.entity.username
blocked: user.metadata.guid === 'hcf_auto_config' || user.metadata.guid === 'scf_auto_config'
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should special-case SCF users.

@nwmac nwmac added the question label Jun 22, 2018
- Don't make special case of auto_config user
- This will only be visible to cf admins... unless they assign roles to it
Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

LGTM

deploy/README.md Outdated
2. Kubernetes, using a Helm chart. See [guide](kubernetes)
3. Docker, using docker compose. See [guide](docker-compose)
4. Docker, single container deploying all components. See [guide](all-in-one)
1. Cloud Foundry, as an application. See [guide](cloud-foundry/README)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think these links work with the added README - what was the reason for change? We have the same links in the main README as well.

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

LGTM

@nwmac nwmac merged commit 1a2290b into v2-master Jun 22, 2018
@nwmac nwmac deleted the show-users-without-usernames branch June 22, 2018 12:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants