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 <ababiic...@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
ababiic...@apache.org.

Reply via email to