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

Update App Summary entity after carrying out App Route actions #2548

Merged
merged 9 commits into from
Jun 29, 2018

Conversation

irfanhabib
Copy link
Contributor

@irfanhabib irfanhabib commented Jun 27, 2018

Fixes #2518

Blocked on #2551

@cfdreddbot
Copy link

Hey irfanhabib!

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

Codecov Report

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

@@              Coverage Diff              @@
##           v2-master    #2548      +/-   ##
=============================================
- Coverage      70.42%   70.38%   -0.05%     
=============================================
  Files            594      595       +1     
  Lines          25140    25198      +58     
  Branches        5676     5689      +13     
=============================================
+ Hits           17706    17736      +30     
- Misses          7434     7462      +28

Copy link
Contributor

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

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

Two minor issues. Also I've merged the latest version of the clean-entity-service branch and it now breaks the core issue again (app link fails to update following routes change). Let me know if you want me to investigate following the fix for the other two points.


@Effect({ dispatch: false }) upateSummary$ = this.actions$.ofType<APISuccessOrFailedAction>(ASSIGN_ROUTE_SUCCESS).pipe(
map(action => {
this.store.dispatch(new GetAppSummaryAction(action.apiAction.guid, action.apiAction.endpointGuid));
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of an effect here, couldn't we do the same thing we do for the routeReducer and ASSIGN_ROUTE_SUCCESS? Would remove the need for a fresh request and matches the existing pattern

@@ -62,9 +62,9 @@ export class DeleteRoute extends BaseRouteAction {
constructor(
public guid: string,
public endpointGuid: string,
appGuid?: string,
Copy link
Contributor

Choose a reason for hiding this comment

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

app guid now shouldn't be optional, as it's needed by the app summary reducer. It's not supplied in the space routes list delete action.

@richard-cox richard-cox added needs attention This PR needs attention and removed in review labels Jun 28, 2018
Copy link
Contributor

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

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

Noticed a couple of new(?) issues
Space Routes - Unbind a route from an app that doesn't have an app summary. Exception thrown newState( function
App Routes - Delete route on running app does not hide the visit icon (unmap is fine)

@richard-cox richard-cox added needs attention This PR needs attention and removed in review labels Jun 29, 2018
@irfanhabib
Copy link
Contributor Author

@richard-cox Fixed the two issues

@richard-cox richard-cox merged commit 6fbc52a into v2-master Jun 29, 2018
@richard-cox richard-cox deleted the fix-routes branch June 29, 2018 13:31
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