Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9F47B200D19 for ; Fri, 6 Oct 2017 11:55:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9DE101609DF; Fri, 6 Oct 2017 09:55:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC0ED1609D0 for ; Fri, 6 Oct 2017 11:55:02 +0200 (CEST) Received: (qmail 59187 invoked by uid 500); 6 Oct 2017 09:55:01 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 59178 invoked by uid 99); 6 Oct 2017 09:55:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2017 09:55:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A6A8FF5819; Fri, 6 Oct 2017 09:55:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: atkach@apache.org To: commits@ambari.apache.org Message-Id: <3131229313684587a77c1b1cbbaf26b6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-22148 Style changes for service summary. (atkach) Date: Fri, 6 Oct 2017 09:55:01 +0000 (UTC) archived-at: Fri, 06 Oct 2017 09:55:03 -0000 Repository: ambari Updated Branches: refs/heads/trunk 0f32765dc -> 3f0025253 AMBARI-22148 Style changes for service summary. (atkach) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3f002525 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3f002525 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3f002525 Branch: refs/heads/trunk Commit: 3f00252534e2dd4b08bd5d308757070fe849cba2 Parents: 0f32765 Author: Andrii Tkach Authored: Thu Oct 5 17:56:44 2017 +0300 Committer: Andrii Tkach Committed: Fri Oct 6 12:50:49 2017 +0300 ---------------------------------------------------------------------- ambari-web/app/messages.js | 6 ++-- ambari-web/app/styles/application.less | 2 +- .../app/templates/main/service/info/summary.hbs | 16 ++++++++- .../templates/main/service/services/hdfs.hbs | 38 ++++++++++++-------- .../app/views/main/service/info/summary.js | 8 +++++ .../app/views/main/service/services/hdfs.js | 2 -- 6 files changed, 51 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/messages.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js index d0c7e39..7cde3d1 100644 --- a/ambari-web/app/messages.js +++ b/ambari-web/app/messages.js @@ -357,6 +357,7 @@ Em.I18n.translations = { 'common.repositoryType': 'Repository Type', 'common.rolling.downgrade': 'Rolling Downgrade', 'common.express.downgrade': 'Express Downgrade', + 'common.views': 'Views', 'models.alert_instance.tiggered.verbose': "Occurred on {0}
Checked on {1}", 'models.alert_definition.triggered.verbose': "Occurred on {0}", @@ -2961,8 +2962,9 @@ Em.I18n.translations = { 'dashboard.services.hdfs.nodes.heapUsed':'{0} / {1}', 'dashboard.services.hdfs.chart.label':'Capacity (Used/Total)', - 'dashboard.services.hdfs.blockErrors':'{0} / {1} / {2}', - 'dashboard.services.hdfs.blockErrorsDesc':'corrupt replica / missing / under replicated', + 'dashboard.services.hdfs.blockErrors.corrupt': 'corrupt replica', + 'dashboard.services.hdfs.blockErrors.replicated': 'under replicated', + 'dashboard.services.hdfs.blockErrors.missing': 'missing', 'dashboard.services.hdfs.datanode.status.tooltip.live': 'This is the number of DataNodes that are live as reported from ' + 'the NameNode. Even if a DataNode process is up, NameNode might see the status as dead ' + 'if the DataNode is not communicating with the NameNode as expected. This can be due situations ' + http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/styles/application.less ---------------------------------------------------------------------- diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less index 8181996..7c9cc8e 100644 --- a/ambari-web/app/styles/application.less +++ b/ambari-web/app/styles/application.less @@ -1083,7 +1083,7 @@ a:focus { .col-md-3 { min-height: 100px; margin-left: 2px; - min-width: 150px; + min-width: 180px; } .summary-label { font-size: 12px; http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/templates/main/service/info/summary.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/service/info/summary.hbs b/ambari-web/app/templates/main/service/info/summary.hbs index b1b0a42..075cae0 100644 --- a/ambari-web/app/templates/main/service/info/summary.hbs +++ b/ambari-web/app/templates/main/service/info/summary.hbs @@ -57,8 +57,8 @@
{{#if view.hasAlertDefinitions}} - {{#if view.alertsCount}} + {{view.alertsCount}} @@ -118,6 +118,20 @@ {{/if}}
{{/view}} +
+
+

{{t common.views}}

+
+
+
+ {{#if view.views.length}} + {{#each item in view.views}} + {{item.label}} + {{/each}} + {{else}} + {{t menu.item.views.noViews}} + {{/if}} +
{{! widgets in the metrics panel are loaded seperately from summary page text information http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/templates/main/service/services/hdfs.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/service/services/hdfs.hbs b/ambari-web/app/templates/main/service/services/hdfs.hbs index 967239d..fec5bac 100644 --- a/ambari-web/app/templates/main/service/services/hdfs.hbs +++ b/ambari-web/app/templates/main/service/services/hdfs.hbs @@ -64,17 +64,18 @@ {{else}}
- {{view.service.liveDataNodes.length}} / - {{view.service.deadDataNodes.length}} / - {{view.service.decommissionDataNodes.length}} -
-
- / - / - +

+ {{view.service.liveDataNodes.length}} {{t dashboard.services.hdfs.nodes.live}} +

+

+ {{view.service.deadDataNodes.length}} {{t dashboard.services.hdfs.nodes.dead}} +

+

+ {{view.service.decommissionDataNodes.length}} {{t dashboard.services.hdfs.nodes.decom}} +

{{/if}} @@ -156,10 +157,17 @@
{{t services.service.summary.blocksTotal}}
{{! Block Errors }} -
-
-
{{view.blockErrorsMessage}}
-
{{t dashboard.services.hdfs.blockErrorsDesc}}
+
+
+

+ {{view.dfsCorruptBlocks}} {{t dashboard.services.hdfs.blockErrors.corrupt}} +

+

+ {{view.dfsMissingBlocks}} {{t dashboard.services.hdfs.blockErrors.missing}} +

+

+ {{view.dfsUnderReplicatedBlocks}} {{t dashboard.services.hdfs.blockErrors.replicated}} +

{{t services.service.summary.blockErrors}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/views/main/service/info/summary.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/service/info/summary.js b/ambari-web/app/views/main/service/info/summary.js index 69e339a..91b2ca3 100644 --- a/ambari-web/app/views/main/service/info/summary.js +++ b/ambari-web/app/views/main/service/info/summary.js @@ -61,6 +61,14 @@ App.MainServiceInfoSummaryView = Em.View.extend(App.Persist, App.TimeRangeMixin, * loadServiceSummary() */ serviceSummaryView: null, + + /** + * @type {App.ViewInstance} + */ + views: function () { + return App.router.get('loggedIn') ? App.router.get('mainViewsController.visibleAmbariViews') : []; + }.property('App.router.mainViewsController.visibleAmbariViews.[]', 'App.router.loggedIn'), + /** * @property {Object} serviceCustomViewsMap - custom views to embed * http://git-wip-us.apache.org/repos/asf/ambari/blob/3f002525/ambari-web/app/views/main/service/services/hdfs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/service/services/hdfs.js b/ambari-web/app/views/main/service/services/hdfs.js index e0580f1..8f6ba6f 100644 --- a/ambari-web/app/views/main/service/services/hdfs.js +++ b/ambari-web/app/views/main/service/services/hdfs.js @@ -111,8 +111,6 @@ App.MainDashboardServiceHdfsView = App.MainDashboardServiceView.extend({ dfsUnderReplicatedBlocks: Em.computed.formatUnavailable('service.dfsUnderReplicatedBlocks'), - blockErrorsMessage: Em.computed.i18nFormat('dashboard.services.hdfs.blockErrors', 'dfsCorruptBlocks', 'dfsMissingBlocks', 'dfsUnderReplicatedBlocks'), - nodeUptime: function () { var uptime = this.get('service.nameNodeStartTime'); if (uptime && uptime > 0){