Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Show domains and routes in app view #509

Merged
merged 2 commits into from Jul 22, 2016
Merged

Show domains and routes in app view #509

merged 2 commits into from Jul 22, 2016

Conversation

jeremiak
Copy link
Contributor

When an APP_RECEIVED event is fired, the app object that comes along with it contains all the route and domain information we need. So on that event, we can update the route store instead of only relying on sending a subsequent network request. If the app object doesn’t contain a child routes array then we will just ignore the event.

Also changed the appGuid key in the route store to app_guid to be consistent with the kinds of data structures we keep in our stores.

Refs #468

Jeremia Kimelman added 2 commits July 22, 2016 11:37
When an APP_RECEIVED event is fired, the app object that comes along
with it contains all the route and domain information we need. So on
that event, we can update the route store instead of only relying on
sending a subsequent network request. If the app object doesn’t contain
a child routes object then we will just ignore the event.

Also changed the appGuid key in the route store to app_guid to be
consistent with the kinds of data structures we keep in our stores.
Since we update the route store when an APP_RECEIVED event is fired, we
don’t need an extra network request or action to get the routes for the
application.
@msecret
Copy link
Contributor

msecret commented Jul 22, 2016

LGTM

@brittag
Copy link
Contributor

brittag commented Jul 22, 2016

I don't have a good way to test this locally with my own cloud.gov account, since my local copy is just the test demo version, but it at least doesn't seem to introduce any new problems in what I can see. :)

@msecret msecret merged commit 2836847 into master Jul 22, 2016
@msecret msecret deleted the jk-domains-routes branch July 27, 2016 05:02
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