Issue Details (XML | Word | Printable)

Key: SONARPLUGINS-25
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Antonio Manuel Muñiz Martín
Reporter: Freddy Mallet
Votes: 8
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Sonar Plugins

Export as a PDF report

Created: 19/Dec/07 02:49 AM   Updated: 25/Jan/10 02:33 PM   Resolved: 16/Apr/09 05:08 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: PDFREPORT-0.1

Time Tracking:
Not Specified

File Attachments: 1. File Report Overview.bmml (10 kB)
2. File Results Outline.bmml (2 kB)
3. PDF File Sonar Executive Report.pdf (87 kB)
4. Zip Archive sonar-pdf.zip (19 kB)
5. PDF File sonar-report.pdf (248 kB)
6. File Violations summary.bmml (1 kB)

Image Attachments:

1. Report Overview.png
(42 kB)

2. Results Outline.png
(53 kB)

3. sonar.png
(56 kB)

4. Violations summary.png
(39 kB)
Issue Links:
Related
 


 Description  « Hide

All the projects are consolidated within an unique PDF report. The first page is a synthetic view of all the projects. Next pages are project details.



Freddy Mallet made changes - 25/May/08 02:12 PM
Field Original Value New Value
Priority Major [ 3 ] Critical [ 2 ]
Michel Pawlak added a comment - 11/Jun/08 03:35 AM

Hello Freddy,

Such a new feature would be great. However, in my opinion, being able to select the projects to be included in the synthetic view of the pdf report might be more interesting than including all of them.

Reports are targeted at managers, and thus only relevant information should be included in pdf reports. By the way, as you already know, it is for this the reason that I think that Sonar should group projects by administrative entities being in charge of them (for instance division A->projects x,y,z, etc.)

We could meet one day to exchange our ideas on what elements might be included in such a pdf report (or better what features could be offered to Sonar users in order to create their reports based on their preferences.)

All the best,

Michel Pawlak


Freddy Mallet added a comment - 12/Jun/08 08:24 AM

Hello Michel,

You're true but that's not a surprise . I wanted to split this feature into three distinct features :

  • Generate an assessment report on a given project (targeted audience : quality assurance team and project manager )
  • Generate an actions list report on a given project (targeted audience : development team)
  • Generate an global quality dashboard report (targeted audience : direction)

Moreover, by projet, I mean each available levels of aggregated projects.
I'm going to contact you in order to exchange ideas on this subject.

See you soon,
Freddy


Freddy Mallet made changes - 14/Dec/08 02:29 PM
Link This issue is related to SONAR-533 [ SONAR-533 ]
Antonio Manuel Muñiz Martín added a comment - 14/Dec/08 05:09 PM

Hello.

I am working in this line. I started over sonar 1.5 branch.
First I will compose a simple PDF for a concrete project (pass as parameter). I am using a Java Servlet which act as controller for this feature. I have created a new module, sonar-pdf as a child of sonar father project. I have selected iText for PDF design and creation.

¿what do you think about my technology choice?

When I have something visible I will write and attach here.

Antonio.


Antonio Manuel Muñiz Martín added a comment - 14/Dec/08 05:18 PM

Sorry, I forget something.

I will use REST API for retrieve data, so this module could be used in other projects for integration with sonar.

Antonio.


Freddy Mallet added a comment - 15/Dec/08 03:04 PM

Hello Antonio,

That sounds good.
Another option would have been to use XSL-FO, but as Sonar web interface uses lot of JavaScript, we wouldn't be able to reuse lot of xhtml code. Moreover, iText is more developerfriendly than XSL-FO.

If can give a little advise, start by developing a simple standalone java application that you can call in command line and make it retrieve data from Sonar through the REST API. When you will be happy with this first version, attach it to this ticket.

cheers,
Freddy


Antonio Manuel Muñiz Martín added a comment - 15/Dec/08 03:21 PM

Hello Freddy.

I have included one test in the module, when I execute mvn test it generates a result pdf consulting the REST API, this is an agile way to test my work. I will attach the complete module when I finish.

Thanks for your attention

Antonio.


Olivier Gaudin made changes - 17/Dec/08 05:28 AM
Priority Critical [ 2 ] Major [ 3 ]
Assignee Simon Brandhof [ simon.brandhof ]
Antonio Manuel Muñiz Martín added a comment - 28/Dec/08 12:08 PM

Hello.

I started the development of the module some days ago. First I have design a simple image for ilustrate the module idea (attached).

Even I have not clear the document structure:
1. One Chapter for main project (all metrics) and subchapters for subprojects (all metrics too).
2. One chapter for one metric, the meaning of the metric can be exposed on his chapter.

¿some advice?

Antonio.


Antonio Manuel Muñiz Martín added a comment - 28/Dec/08 12:10 PM

PDF Reporter Architecture


Antonio Manuel Muñiz Martín made changes - 28/Dec/08 12:10 PM
Attachment sonar.png [ 39047 ]
Freddy Mallet added a comment - 02/Jan/09 01:38 AM

Hello Antonio,

For the first version of the pdf export module, I think solution 1 "one chapter for main project (all metrics) and subchapters for subprojects" is more valuable.

Freddy


Antonio Manuel Muñiz Martín added a comment - 11/Jan/09 06:50 PM

Hello.

I have an early beta version of the module (and the first PDF report). By now I don´t attach much importance to visual design, only to technical design.
In this point I have a little cross of ways. Using the web service API I maintain the independency of the module (initial idea), but I loss a lot of data (as Tendency Analysis). I have three options:

1. Rewrite the code for this data (keeping the not-coupling way)
2. Acouple the pdf module logic to sonar-core logic (coupling way, the module can not be used out of sonar)
3. Develop the web service API for retrieve this data
4. Do nothing. The PDF report will not include this kind of data (really this is not a solution)

In my opinion, the best option is 3. Any advice will be valued.

Thanks.
Antonio.


Freddy Mallet added a comment - 12/Jan/09 02:19 PM

Hello Antonio, for sure option 3 is the best one but I'm going to ask Simon if we can't provide you such web service API in the development trunk ...


Antonio Manuel Muñiz Martín added a comment - 13/Jan/09 03:41 PM

Hello Freddy,
Thanks, that would be great!

I have attached the first pdf report. I know, the design can be improved but I am interested in your views on the structure of the document.
I am completely open to suggestions.

Regards.


Antonio Manuel Muñiz Martín added a comment - 13/Jan/09 03:42 PM

Sonar PDF Report (beta) on Sonar project


Antonio Manuel Muñiz Martín made changes - 13/Jan/09 03:42 PM
Attachment sonar-report.pdf [ 39311 ]
Simon Brandhof added a comment - 13/Jan/09 04:09 PM

Hi Antonio,

Good job ! Tendencies are already published in the measures request. Nodes are not really well-named :

  • t_quant for "quantitative tendency" ! 1 if the value increase, else 0 or -1
  • t_qual for "qualitative tendency", 1 if measure is better. It takes metric direction into account. For example average complexity is better if it decreases (t_quant =-1 but t_qual=1)

For your information the measures API will be completed soon with alert results.

I hope it helps,
Simon


Antonio Manuel Muñiz Martín added a comment - 13/Jan/09 04:28 PM

Hello Simon,

Thanks, I'm glad to read this, yes, it helps. There is still much work for obtain a good pdf report.
In that case, the only obstacle is SONAR-563.

Thanks for the info.

Antonio.


Antonio Manuel Muñiz Martín added a comment - 27/Jan/09 05:32 PM

Hi.

I have attched a snapshot of sonar-pdf. This a snapshot version, but I think that is a good start for the module.
The module has been developed as part of Sonar (maven module), with modifications in sonar-web for access to PDF reports, but it can be compiled/tested separately and I have isolated the module to try out of Sonar.

For now, I have only one test, this test generates a PDF report of Sonar project (accesing to nemo.sonar.codehaus.org).
You can execute the test with: "mvn test".

There are still many things to do, I am working on this.

Your comments will be welcome!

Antonio.


Antonio Manuel Muñiz Martín added a comment - 27/Jan/09 05:33 PM

Sonar PDF module attached.


Antonio Manuel Muñiz Martín made changes - 27/Jan/09 05:33 PM
Attachment sonar-pdf.zip [ 39622 ]
Antonio Manuel Muñiz Martín added a comment - 31/Jan/09 04:50 AM

Hello.

Only for info, I am now working to include a table of contents, number pages, a title page and metrics tendency information.

Antonio.


Freddy Mallet added a comment - 01/Feb/09 12:39 PM

Hi Antonio,

Thanks for this good job !
We are currently setting up the sonar-plugins project in order to host all Sonar plugins. I'll give you rights to publish your code during next week.

Freddy


Antonio Manuel Muñiz Martín added a comment - 04/Feb/09 11:48 AM

Hello.

I remember seeing a collection of sonar logos, do you know where they are? I thought they were on the wiki, but now I don´t find it.
I need a big logo for pdf front page.

Antonio.


Simon Brandhof added a comment - 04/Feb/09 12:03 PM

Hi Antonio, you can find some logos here.


Freddy Mallet made changes - 09/Feb/09 10:23 AM
Key SONAR-41 SONARPLUGINS-25
Project Sonar [ 11694 ] Sonar Plugins [ 11911 ]
Freddy Mallet made changes - 12/Feb/09 02:48 PM
Component/s PDF Report [ 13739 ]
Freddy Mallet made changes - 12/Feb/09 03:25 PM
Assignee Antonio Manuel Muñiz Martín [ amuniz ]
Freddy Mallet made changes - 13/Feb/09 09:15 AM
Attachment Sonar Executive Report.pdf [ 40014 ]
Freddy Mallet made changes - 13/Feb/09 09:15 AM
Attachment Results Outline.bmml [ 40017 ]
Attachment Report Overview.png [ 40016 ]
Attachment Report Overview.bmml [ 40015 ]
Freddy Mallet made changes - 13/Feb/09 09:15 AM
Attachment Violations summary.png [ 40020 ]
Attachment Violations summary.bmml [ 40019 ]
Attachment Results Outline.png [ 40018 ]
Freddy Mallet added a comment - 13/Feb/09 09:57 AM

Hi Antonio, I've taken time to discuss about this valuable "PDF Report" feature with several Sonar users. The conclusion is that we can't answer to all needs in one report and needs depend on the role of each stakeholder. In a first time, we can simply start with two families of stakeholders :

  • Managers who need to know what is a weather like
  • All other stakeholders who want to get detailed information on a given project

What follows is just a suggestion, but it could be a good idea to produce those two reports :

  • "Sonar Executive Report" which displays all projects in table and highlightes projects in trouble (alerts)
  • "Sonar Team Workbook" which can be composed of the following sections :
    • Report Overview equivalent to Sonar's Dashboard but without treemap, radar, events, etc ...
    • Violations Summary to get the list of all violations by rules
    • Result Outline to get a complete list of files which have a violation on a given rule

Freddy


Antonio Manuel Muñiz Martín added a comment - 15/Feb/09 06:10 AM

Hi Freddy,

Great!, I was thinking something like this.
Thanks for the images, very useful. I'm starting to work in this way.

I have done the first commit, really this isn't a plugin yet, because is not "installable" in Sonar, when we decide that is prepared I have to adapt some things. But now isn't the moment for this.

Thanks for all Freddy.
Antonio.


Antonio Manuel Muñiz Martín added a comment - 16/Mar/09 11:40 AM

Hello,

I have seen that the Web Service API has been completely refactored.
PDF Plugin depends on the web service interface and changes on it have a medium impact in the plugin code.

For now a have developed with Sonar 1.6, I will do some changes to adapt the reporter to Sonar 1.7RC3
Do you preview more important changes in Web Services interface?

Thanks.
Antonio.


Freddy Mallet added a comment - 18/Mar/09 04:08 PM

Hi Folks, everyone interested by discussions about Sonar API and web services can switch to the Sonar mailing list. We're going to improve our communication about evolutions of this API.

Sorry Antonio for this lack of information.


Freddy Mallet made changes - 16/Apr/09 04:11 PM
Fix Version/s PDFREPORT-0.1 [ 15232 ]
Antonio Manuel Muñiz Martín added a comment - 16/Apr/09 05:02 PM

The first version of the plugin is ready for release. It will soon be uploaded to public Maven repository.
I close this ticket.


Antonio Manuel Muñiz Martín made changes - 16/Apr/09 05:03 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Antonio Manuel Muñiz Martín made changes - 16/Apr/09 05:05 PM
Status Resolved [ 5 ] Closed [ 6 ]
Antonio Manuel Muñiz Martín made changes - 16/Apr/09 05:07 PM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Antonio Manuel Muñiz Martín made changes - 16/Apr/09 05:08 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]
Antonio Manuel Muñiz Martín made changes - 25/Jan/10 02:33 PM
Component/s PDF Report [ 13739 ]