You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2018/04/23 10:55:15 UTC

[ambari] branch trunk updated: AMBARI-23656 NameNode namespaces aren't sorted by name. (ababiichuk)

This is an automated email from the ASF dual-hosted git repository.

ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new abb0a05  AMBARI-23656 NameNode namespaces aren't sorted by name. (ababiichuk)
abb0a05 is described below

commit abb0a05a104ceb534b2866c508dee38b7caf2737
Author: ababiichuk <ab...@hortonworks.com>
AuthorDate: Mon Apr 23 13:03:03 2018 +0300

    AMBARI-23656 NameNode namespaces aren't sorted by name. (ababiichuk)
---
 ambari-web/app/models/service/hdfs.js             | 2 +-
 ambari-web/app/views/main/service/info/summary.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-web/app/models/service/hdfs.js b/ambari-web/app/models/service/hdfs.js
index 2a27dd6..f63cf6c 100644
--- a/ambari-web/app/models/service/hdfs.js
+++ b/ambari-web/app/models/service/hdfs.js
@@ -119,7 +119,7 @@ App.HDFSService = App.Service.extend({
         }
       }
     });
-    return result;
+    return result.sortProperty('name');
   }.property('hostComponents.length', 'App.router.clusterController.isHDFSNameSpacesLoaded')
 });
 
diff --git a/ambari-web/app/views/main/service/info/summary.js b/ambari-web/app/views/main/service/info/summary.js
index a501e1d..dd8f9dd 100644
--- a/ambari-web/app/views/main/service/info/summary.js
+++ b/ambari-web/app/views/main/service/info/summary.js
@@ -473,7 +473,7 @@ App.MainServiceInfoSummaryView = Em.View.extend({
             }
           }
         });
-        return groups;
+        return groups.sortProperty('name');
       default:
         return [
           {

-- 
To stop receiving notification emails like this one, please contact
ababiichuk@apache.org.