RFE: Output as a detailed machine-parsable file

Bug #81289 reported by Simon Law
2
Affects Status Importance Assigned to Milestone
Bug Helper
Invalid
Wishlist
Unassigned

Bug Description

We will want to build tools on top of bughelper, some of which may not be written in Python. Wouldn't it be nice if bughelper could export the complete results of its screenscraping as a machine-parsable output file? I suggest XML, but am not tied to it.

Simon Law (sfllaw)
Changed in bughelper:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

First of all: I agree with you - exporting the API of bughelper is a must and also we should have configurable output as well. Does bug 79142 cover what you're suggesting?

Changed in bughelper:
status: Confirmed → Needs Info
Revision history for this message
Simon Law (sfllaw) wrote :

No, that's insufficiently programmatic.

It is related to bug 79142 in that it can use the same option parsing mechanism. But this output should be in raw data structures that some other program can trawl through.

This program could be another Python program to do data analysis, an XSLT program to render results into HTML, etc.

Revision history for this message
Daniel Holbach (dholbach) wrote :

In order to fix this bug, it'd be nice if you could point out, exactly which information you want displayed and exactly how.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

bughelper -p <packagename> --format=html > myfile.html already gives a good file that can be parsed. It doesn't provide all the information known about a bug, but bug helper doesn't look at all of it at this stage. We could of course add some more content to the html output version.

What you may want is to use a bug number and go in a grab the entrire XML version of the bug from LP (when that feature becomes available). I doubt that implementing something short of that, yet more complete than the html dump is worth the effort.

Changed in bughelper:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.