ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-21860. Stacks and Versions is displaying unsorted (alexantonenko)
Date Thu, 31 Aug 2017 12:21:23 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d1d6df903 -> a66c01d3d


AMBARI-21860. Stacks and Versions is displaying unsorted (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a66c01d3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a66c01d3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a66c01d3

Branch: refs/heads/trunk
Commit: a66c01d3d0873598851fa8016788525fcbb53c16
Parents: d1d6df9
Author: Alex Antonenko <aantonenko@hortonworks.com>
Authored: Thu Aug 31 15:20:59 2017 +0300
Committer: Alex Antonenko <aantonenko@hortonworks.com>
Committed: Thu Aug 31 15:20:59 2017 +0300

----------------------------------------------------------------------
 .../app/templates/main/admin/stack_upgrade/versions.hbs      | 2 +-
 .../app/views/main/admin/stack_upgrade/versions_view.js      | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a66c01d3/ambari-web/app/templates/main/admin/stack_upgrade/versions.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/versions.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/versions.hbs
index acb6e78..edcb37c 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/versions.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/versions.hbs
@@ -58,7 +58,7 @@
   <div class="col-md-9 versions-slides">
     {{#if isLoaded}}
       <div class="versions-slides-bar">
-        {{#each version in view.repoVersionsDisplay}}
+        {{#each version in view.repoVersions}}
           {{#if version.isVisible}}
             {{view App.UpgradeVersionColumnView contentBinding="version"}}
           {{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/a66c01d3/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js b/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
index eadd265..3899bb1 100644
--- a/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
+++ b/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
@@ -126,13 +126,7 @@ App.MainAdminStackVersionsView = Em.View.extend({
    * @type {Em.Array}
    */
   repoVersions: App.RepositoryVersion.find(),
-
-  repoVersionsDisplay: function () {
-    return this.get('repoVersions').toArray().sort(function (a, b) {
-      return (a.get('repositoryVersion') > b.get('repositoryVersion')) ? 1 : ((b.get('repositoryVersion')
> a.get('repositoryVersion')) ? -1 : 0);
-    });
-  }.property('repoVersions'),
-
+  
   /**
    * @type {Em.Array}
    */


Mime
View raw message