Skip to content

Use new ApplicationsService.getApplications utility #2034

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

Merged
merged 1 commit into from
Sep 16, 2017

Conversation

jeff-phillips-18
Copy link
Member

@jeff-phillips-18 jeff-phillips-18 commented Sep 8, 2017

No description provided.

@jeff-phillips-18 jeff-phillips-18 changed the title [WIP] Use new ApplicationsService.getApplications utility Use new ApplicationsService.getApplications utility Sep 15, 2017
@jeff-phillips-18
Copy link
Member Author

Removed WIP status

spadgett
spadgett previously approved these changes Sep 15, 2017
@spadgett spadgett dismissed their stale review September 15, 2017 21:21

Shouldn't need to sort here since the service does it

statefulSets = _.toArray(statefulSetData.by('metadata.name'));
sortApplications();
ApplicationsService.getApplications(context).then(function(applications) {
ctrl.applications = _.sortBy(applications, ['metadata.name', 'kind']);
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

statefulSets = _.toArray(statefulSetData.by('metadata.name'));
sortApplications();
ApplicationsService.getApplications(context).then(function(applications) {
ctrl.applications = _.sortBy(applications, ['metadata.name', 'kind']);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't need to sort here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

Thanks @jeff-phillips-18, nice to see so much duplicate code removed

@spadgett
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 2e78f9f

@openshift-bot
Copy link

openshift-bot commented Sep 16, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/204/) (Base Commit: 3826410) (PR Branch Commit: 2e78f9f)

@openshift-bot openshift-bot merged commit 1466f66 into openshift:master Sep 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants