From e1097cefb97a65228f3df16004dd6b66b5ad9e0f Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 13 Apr 2016 12:06:34 +0200 Subject: [PATCH] SONAR-7527 Change metric columns order and layout of provided global dashboard --- .../template/GlobalDefaultDashboard.java | 2 +- .../measure/template/ProjectFilter.java | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/GlobalDefaultDashboard.java b/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/GlobalDefaultDashboard.java index e1e22885d52..de06f1c3335 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/GlobalDefaultDashboard.java +++ b/server/sonar-server/src/main/java/org/sonar/server/dashboard/template/GlobalDefaultDashboard.java @@ -47,7 +47,7 @@ public final class GlobalDefaultDashboard extends DashboardTemplate { public Dashboard createDashboard() { Dashboard dashboard = Dashboard.create() .setGlobal(true) - .setLayout(DashboardLayout.TWO_COLUMNS); + .setLayout(DashboardLayout.TWO_COLUMNS_30_70); dashboard.addWidget(WelcomeWidget.ID, 1); addMyFavouritesWidget(dashboard); diff --git a/server/sonar-server/src/main/java/org/sonar/server/measure/template/ProjectFilter.java b/server/sonar-server/src/main/java/org/sonar/server/measure/template/ProjectFilter.java index 4b79a70f665..e352b8b754d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/measure/template/ProjectFilter.java +++ b/server/sonar-server/src/main/java/org/sonar/server/measure/template/ProjectFilter.java @@ -42,15 +42,15 @@ public class ProjectFilter extends FilterTemplate { @Override public Filter createFilter() { return Filter.create() - .setDisplayAs(Filter.LIST) - .add(Criterion.createForQualifier(Qualifiers.PROJECT)) - .add(FilterColumn.create("metric", CoreMetrics.ALERT_STATUS_KEY, FilterColumn.DESC, false)) - .add(FilterColumn.create("name", null, FilterColumn.ASC, false)) - .add(FilterColumn.create("version", null, FilterColumn.DESC, false)) - .add(FilterColumn.create("metric", CoreMetrics.NCLOC_KEY, FilterColumn.DESC, false)) - .add(FilterColumn.create("metric", CoreMetrics.CODE_SMELLS_KEY, FilterColumn.DESC, false)) - .add(FilterColumn.create("metric", CoreMetrics.BUGS_KEY, FilterColumn.DESC, false)) - .add(FilterColumn.create("metric", CoreMetrics.VULNERABILITIES_KEY, FilterColumn.DESC, false)) - .add(FilterColumn.create("date", null, FilterColumn.DESC, false)); + .setDisplayAs(Filter.LIST) + .add(Criterion.createForQualifier(Qualifiers.PROJECT)) + .add(FilterColumn.create("metric", CoreMetrics.ALERT_STATUS_KEY, FilterColumn.DESC, false)) + .add(FilterColumn.create("name", null, FilterColumn.ASC, false)) + .add(FilterColumn.create("version", null, FilterColumn.DESC, false)) + .add(FilterColumn.create("metric", CoreMetrics.NCLOC_KEY, FilterColumn.DESC, false)) + .add(FilterColumn.create("metric", CoreMetrics.BUGS_KEY, FilterColumn.DESC, false)) + .add(FilterColumn.create("metric", CoreMetrics.VULNERABILITIES_KEY, FilterColumn.DESC, false)) + .add(FilterColumn.create("metric", CoreMetrics.CODE_SMELLS_KEY, FilterColumn.DESC, false)) + .add(FilterColumn.create("date", null, FilterColumn.DESC, false)); } } -- 2.39.5