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

Fix for app count being stuck after add in org card #2511

Merged
merged 6 commits into from
Jun 26, 2018

Conversation

nwmac
Copy link
Contributor

@nwmac nwmac commented Jun 25, 2018

Fixes #2477 and also handles delete.

Ensures that when we add or delete an app, the app count show in the CF views is updated

@cfdreddbot
Copy link

Hey nwmac!

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 25, 2018

Codecov Report

Merging #2511 into v2-master will decrease coverage by 0.09%.
The diff coverage is 24.39%.

@@             Coverage Diff              @@
##           v2-master    #2511     +/-   ##
============================================
- Coverage      70.66%   70.56%   -0.1%     
============================================
  Files            590      591      +1     
  Lines          24823    24855     +32     
  Branches        5611     5618      +7     
============================================
- Hits           17541    17540      -1     
- Misses          7282     7315     +33

})
map(orgs => [].concat(...orgs.map(org => org.entity.spaces))),
switchMap((spaces: APIResource<ISpace>[]) =>
combineLatest(spaces.map(space => this.store.select(selectEntity(spaceSchemaKey, space.metadata.guid))))
Copy link
Contributor

Choose a reason for hiding this comment

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

This step isn't required. The space entities in the org entity should be up to date.

Copy link
Contributor Author

@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 67158d9 into v2-master Jun 26, 2018
@nwmac nwmac deleted the fix-app-count-stuck branch June 26, 2018 09:15
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