From: Julien Lancelot Date: Wed, 13 Apr 2016 10:06:34 +0000 (+0200) Subject: SONAR-7527 Change metric columns order and layout of provided global dashboard X-Git-Tag: 5.5-RC2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1097cefb97a65228f3df16004dd6b66b5ad9e0f;p=sonarqube.git SONAR-7527 Change metric columns order and layout of provided global dashboard --- 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)); } }