How to add history widgets in SonarQube 6.2? - sonarqube

I was used to manage a project's history on sonarqube 5.2 by using a dashboard like this under "Dashboards -> Timeline". I can't find a way to replicate this on SonarQube 6.2. What is the correct way of adding history widgets under sonar 6.2 ?

Dashboards and widgets have been dropped in 6.2. You simply won't be able to do that.

The widgets build-in SonarQube 6.2+ show a tend chart in the "background" behind the measures (see "Leak Period: since previous version"). This is not an equivalent replacement of timeline but at least something.
See screenshot here: https://www.sonarqube.org/index/clean-code.png

Related

Sonarqube upgrade from 5.6.3 to 6.7.2 but Dashboards are missing

we upgraded Sonarqube to 6.7.2 version and this new version does not have the Dashboards and also configure widgets option with in the project custom dashboard is not available, is there a way to achieve the missing dashborads and custom widgets?
There's a reason the Upgrade docs advise you to read the release notes for each intervening version. Dashboards were dropped in SonarQube 6.2.
You'll find that in 6.7.* you have the ability to visualize your measure values in each project's Measures page, and to see measure history graphs on the project Activity page. There are also some cross-project visualizations in the Projects page. If you nonetheless still need additional features, then you have the option to write a plugin to add a page to the interface.

Sonarqube activity page charts missing

I've saw in https://sonarcloud.io/project/activity?id=ch.ge.ve%3Aadmin-offline%3Adevelopment that the activity page view shows some charts on how the project evolved on time.
I'm using Sonarqube docker 6.4 version and there is no charts on that page and I don't know if it's a version problem or what else.
I'm analyzing php projects. Maybe the problem is here?
Does any one knows what's happening?
An screenshot of the example in https://sonarcloud.io/project/activity?id=ch.ge.ve%3Aadmin-offline%3Adevelopment
Thank you.
Those charts are introduced in 6.5. SonarCloud is running the current 6.5 RC, which is why you see graphs there. Since you're running 6.4, it is normal and expected that you don't have graphs.

SonarQube upgrade to 6.4: cannot display tests results on the dahsboard

I upgraded my SonarQube from 5.4 to 5.6 LTS then to 6.3.1 then 6.4
On the version 6.4, when I click on the dashboard, I only see the projects' names but no results are displayed.
In addition I have a rotating frame of the project as if it loads.
Plus, When I click on the project, I have 0 bugs, 0 vulnerabilities .... which is wrong because when I click on issues, I can see that the project do have issues and I can display them.
It's the case with the projects analyzed with the previous versions only. I tried analyzing a project with 6.4 and the results related to Reliability, Security, Maintainability... are there.
Is there a way to fix this, ie to display on the dashboard of SonarQube 6.4 the results of projects analyzed by older versions?
Thanks in advance.
The fix is planned for SonarQube 6.5 (see the ticket).
This sounds like a corrupted ElasticSearch index. Try the following:
stop the server
delete _$SONARQUBE_HOME/data/es_
restart the server*
*The time for you server to come back up will vary based on how large the instance is
I see, thank you for your help. Just to let you know, even when I click on the project , I cannot see the results, they are only available when I click on Issues

SonarQube Dashboard - Can I show just the leaks

I'm using the latest version of SonarQube. Is it possible to display the front "Projects" dashboard with just covering the leaks period?
This is not possible in SonarQube 6.3, but it will be implemented in SonarQube 6.4 for sure.
You can watch the ticket SONAR-8912 that we'll soon start working on.

how to disable some issue in sonar metrics?

It is possible turn off some issue checking in sonar projects and how to do it? I want to for example disable "Tabulation characters should not be used" or "Modifier Order".
Thank for help.
If you would like keep the rule active while excluding certain parts of your source-code, you can use features of the the switch-off violations-plugin.
The plugin was deprecated with sonarqube 4.0, as it is now possible to use integrated features described in this part of the sonarqube-documentation:
http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus
If you are using an older version of sonarqube you find the plugin here:
http://docs.codehaus.org/display/SONAR/Switch+Off+Violations+Plugin

Resources