Views Plugin

Latest release Version 1.2.1 on Jan. 8, 2010 - compatible with Sonar 1.11+
Download and request a 2 weeks evaluation license
Demonstration The capability of the plugin is demonstrated on Nemo
Tracker You can browse tickets for the plugin in JIRA
T&Cs You can read our Terms and Conditions
Price 1,800 € per instance of Sonar and per year.
Including Upgrade, maintenance and support
Acquire Buy a full year license

Description

The Sonar Views Plugin enables the creation of any aggregation trees to regroup projects. Projects can for instance be grouped by applications, applications by team, teams by department… Each level of the tree is a View and offers all standard services such as dashboard, hotspots, timemachine, drilldown… showing the consolidated measures.


Views are rebuilt whenever a project belonging to tree is analyzed. This insures that Views stay up to date.

Using the Views Plugin adds immediately two functionalities to the platform :

  • reporting on abstract high level projects
  • being able to hunt on consolidated indicators (violations for example)

Installation

  • Copy the file sonar-views-plugin.jar to /extensions/plugins
  • Restart the server
  • Browse http://sonar-server:9000 and you will now see a new entry Views under Projects
  • Login as an admin, go to configuration, Settings and select Views
  • Paste the license key and Save

To uninstall the plugin, first go to the Views administration and delete all existing views. Then run an analysis and remove the jar from /extensions/plugins.

Administration

To administer views (create, delete, update), log in as an administrator and go to configuration and then Views. You get presented with a screen to create a brand new view.

Once a view is created, a corresponding tab is added at the top of the page that you can click to manage its content. A view is organized as a tree.

Once selected, you can add, delete and update sub_views (branches)


And add leafs (projects) to branches by a drag and drop



It is possible to set a flag “default” in one node per view. Any project that has not been explicitly associated to a node will then be associated to the default node. In case default is not activated on any node of the view, then the project will not appear anywhere in the view.

Please note that an analysis should be run after every change to views for it to take effect

Please note that a project should be removed manually from views when deleted in Sonar

Browsing views

What you have to keep in mind with the Views plugin : project are to views what files are to projects. Having said that the navigation in the Views is exactly the same as in the other projects. The only difference comes from the fact that the plugin adds an new link “Views” in the home page. This link is the entry point to access defined views.


Important note : Views are subject to access control (Sonar 1.12) as any other project. If a user has enough rights to browse a view but not enough to browse every underlying projects, he might not be able to understand where the figures of the view come from. Indeed the services will potentially not show him all underlying projects (except drill downs that show all projects).

Release notes

Release 1.2.1 | Jan. 8, 2010 | Support Sonar 1.11+ | download | changelog

  • Failure when concurrent Maven analysis
  • OutOfMemory error when the plugin PDF is installed


Release 1.2 | December 31, 2009 | Support Sonar 1.11+ | download | changelog

  • Renaming the key of a view does not propagate properly
  • Cannot find snapshot after the purge
  • Upgrade to SmartGWT 2.0


Release 1.1 | December 7, 2009 | Support Sonar 1.11+ | download | changelog

  • Support Sonar security
  • Bug-fix: Admin page should prevent entering invalid characters
  • Bug-fix: Views do not get deleted when they are suppressed from the admin console


Release 1.0 | October 12, 2009 | Support Sonar 1.11+ | download

  • Initial release