Views (Portfolio Management)

Demonstration The capability of the plugin is demonstrated on Nemo
Issue Tracker You can browse tickets for the plugin in JIRA
Price 1,800 € per instance of Sonar and per year, including upgrade, maintenance and support.

Download

  I accept the Terms and Conditions
Version 1.3.3 - Released August 7, 2010
Bug-fix release
Sonar 2.0+ Release notes Download
All versions | Evaluation license | Buy a full year license

Features

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.

The Views plugin also enables to create a global view of all your projects and automatically display it in the homepage, by creating a view with the id “MASTER_PROJECT”.

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).