diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-05-25 16:44:14 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-05-25 18:04:58 +0200 |
commit | fb2c1300ef4bfe5731fe0f6fc65bea1a44b25411 (patch) | |
tree | c95c85e1bdb88384bde32d6ca0b2ab3bf9c40e6c /sonar-server | |
parent | 0320a38af70d46433b7dcb352ea758b619b66694 (diff) | |
download | sonarqube-fb2c1300ef4bfe5731fe0f6fc65bea1a44b25411.tar.gz sonarqube-fb2c1300ef4bfe5731fe0f6fc65bea1a44b25411.zip |
Dashboards must be registered after filters
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java | 3 | ||||
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/startup/RegisterNewDashboardsTest.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java index d601f2de2c5..f20df48ae39 100644 --- a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java +++ b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewDashboards.java @@ -52,7 +52,8 @@ public final class RegisterNewDashboards { private final LoadedTemplateDao loadedTemplateDao; public RegisterNewDashboards(DashboardTemplate[] dashboardTemplatesArray, DashboardDao dashboardDao, - ActiveDashboardDao activeDashboardDao, LoadedTemplateDao loadedTemplateDao) { + ActiveDashboardDao activeDashboardDao, LoadedTemplateDao loadedTemplateDao, + /* filters must be registered before dashboards when filter widgets are used */ RegisterNewFilters registerNewFilters) { this.dashboardTemplates = Lists.newArrayList(dashboardTemplatesArray); this.dashboardDao = dashboardDao; this.activeDashboardDao = activeDashboardDao; diff --git a/sonar-server/src/test/java/org/sonar/server/startup/RegisterNewDashboardsTest.java b/sonar-server/src/test/java/org/sonar/server/startup/RegisterNewDashboardsTest.java index db46e42c30b..7af8b78c4b6 100644 --- a/sonar-server/src/test/java/org/sonar/server/startup/RegisterNewDashboardsTest.java +++ b/sonar-server/src/test/java/org/sonar/server/startup/RegisterNewDashboardsTest.java @@ -64,7 +64,7 @@ public class RegisterNewDashboardsTest { fakeDashboardTemplate = mock(DashboardTemplate.class); task = new RegisterNewDashboards(new DashboardTemplate[] {fakeDashboardTemplate}, dashboardDao, - activeDashboardDao, loadedTemplateDao); + activeDashboardDao, loadedTemplateDao, null); } @Test |