cloudfoundry / cloudfoundry/stratos

Org/Space user count not updated after changes

Open
#3,974 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
267
Forks
137
Avg merge
5h 14m
Merged PRs (30d)
77

Description

The user counts in org and space summary pages aren't updated following adding/removing user roles to that org/space

To reproduce

  • nav to an org/space summary (note user count)
  • nav to user table and add/remove a user
  • nav back to org/space summary and user count has not been updated

Notes

  • user count comes from fetchTotalUsers --> fetchTotalResults, which creates a pagination section and populates the usual way
  • reducer userSpaceOrgReducer ensures that add/remove actions also update request data user info
  • nothing happens to the pagination section
    • need an effect to clear specific pagination sections

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with fetchTotalUsers and fetchTotalResults, then inspect userSpaceOrgReducer and the pagination sections involved in org and space summaries. Done means the summary user count updates after adding or removing a user role, including when navigating back from the user table.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.