|
Hi all!
Thank you for this new release of Sonar (3.1), nice work!! I'm just beginning to test global dashboards and I love this new feature! I have a few questions about what kind of widgets are we supposed to use in these global dashboards: - I have seen that all widgets share a new "property" when they are in a global dashboard (the "project" selection property). Is this mandatory if I want to display the widget in the global dashboard? or is it possible to create a widget without a project dependency? - In case this is not possible... When you add a widget in the global dashboard, a new blue bar is displayed with the name of the project selected in this mandatory option... Is it possible to hide this bar? I'm thinking about creating/modifying plugins to show global information in these dashboards, maybe a global logo widget, or maybe a City Model that displays your Sonar "country" with all your Cities together in a single global widget ;-) Thank you! Best regards. ____________________________________________ Área de Desarrollo, Arquitectura y Calidad de Software t: 96 325 48 08 - m: 619 34 49 81 |
|
Hi I was wondering the same thing.Do we need to "update" plugin widgets to be available in Global Dashboards?
Regards Patroklos
2012/6/5 Antonio Calero <[hidden email]>
|
|
The released Widget Lab plugins (I haven't downloaded the RC yet, but it's on my list!) show up just fine in the global dashboards...
On Tue, Jun 5, 2012 at 12:34 PM, Papapetrou P.Patroklos <[hidden email]> wrote:
G. Ann Campbell Sr. Systems Engineer, IS Production Systems - Shop Floor Systems Shaw Industries Inc, 201 S. Hamilton St.
Dalton Ga 30720 ****************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. ****************************** |
|
Hi,
Thank you for your feedback. First, Global dashboards can be used to display any widget. They don't have to be upgraded or modified to work with global dashboard. The only difference is that when the widget is added to the dashboard,
a project needs to be specified and this project name will be displayed in a blue title on top of the widget. With global dashboards, we introduced a new kind of widget: global widgets! These widgets
can be put on any dashboard (project or global) and they should display information that is not attached to a single project. So, yes, you could develop a widget that displays a logo, a map... Actually, 3.1 ships with only one global widget: the filter widget that can can used to display the result of a filter on any dashboard. Hope this helps, David On 5 June 2012 18:48, Ann Campbell <[hidden email]> wrote: The released Widget Lab plugins (I haven't downloaded the RC yet, but it's on my list!) show up just fine in the global dashboards... -- David |
|
Hi!
Thank you for your support! Good news with global dashboards! So, how can we use this new kind of widget? With project widgets we have to implement the RubyRailsWidget interface. public class MyProjectWidget extends AbstractRubyTemplate implements RubyRailsWidget { Is there a new interface for global widgets? How can we add a global widget in a plugin? public class MyGlobalWidget extends ???? implements ???? { Or is there a way to setup the widget? Best regards.
____________________________________________ Área de Desarrollo, Arquitectura y Calidad de Software t: 96 325 48 08 - m: 619 34 49 81 El 05/06/2012, a las 21:51, David Gageot escribió: Hi, |
|
Hi Antonio,
Any widget can be put on a Global dashboard without modification. During configuration, the user will be asked to select a project. If you want to develop new Global Widgets that display information
that are not linked to a specific project, the idea is to annotate your widget class with: org.sonar.api.web.WidgetScope(GLOBAL) David On 8 June 2012 14:36, Antonio Calero <[hidden email]> wrote:
-- David |
|
Thank you very much David!
So I suppose there isn't backward compatibility... if I use this annotation in a Widget the plugin will not work in previous Sonar versions. Is this correct? And how can I test this? Do I have to wait until Sonar release 3.1 to be able to use new API features? I'm trying to set my plugin to support Sonar 3.1-RC2 but Maven can't download 3.1-RC2 package dependencies... Best regards, Antonio.
El 11/06/2012, a las 08:28, David Gageot escribió: Hi Antonio, |
Yes indeed
|
|
Thanks Simon!
We will try with 3.1-RC3, Best regards, Antonio. El 11/06/2012, a las 14:02, Simon Brandhof escribió:
|
| Powered by Nabble | Edit this page |
