jessevdk / bugzini

Light weight bugzilla frontend
12 stars 3 forks source link

Show and retrieve attachments #6

Open jessevdk opened 10 years ago

jessevdk commented 10 years ago

This is not possible with xmlrpc of bugzilla 3.4, but would still be nice to support through other means (i.e. calling into bugzilla http interface directly)

erick2red commented 10 years ago

It seems every time you attach something to bugzilla it creates a comment automatically with the attachment id. Maybe you(we) can parse that and at least, add a link to the attachment.

erick2red commented 10 years ago

I managed to get this. The implementation is a bit rough but can be improved.

screenshot from 2014-10-27 13 16 35

I couldn't find a way to ask a bugs if it has attachments.

jessevdk commented 10 years ago

Great! Please open a PR.

erick2red commented 10 years ago

I've thought this through I guess it would be good if we could download the attachments when and store them locally when a bug si clicked (on _render_bug call)

erick2red commented 10 years ago

More tinkering on the issue, this approach is nice to have but doesn't show the status of the attachemnt. For instance, the attachment could be a patch made obsolete by some other patch, and that's not shown with this solution. Although this helps a bit on locating the attachments, it doesn't completely fix the issue.