Bug#1030734: link to upstream bug tracker and repository

2023-02-26 Thread Raphael Hertzog
Hi,

On Sat, 25 Feb 2023, Jelmer Vernooij wrote:
> > FWIW, I don't plan to work on this (at least not in the short term) but
> > I'll happily review MR and answer questions.
> 
> I might spend some time on this, but would appreciate any further hints
> on where to add this if the information is available in UDD.

The first step would be to make this data available in a JSON file that we
can download from UDD. Lucas usually add some .cgi exporting the data
on request.

Then it's a matter of adding a Task that fetches the file and generates
whatever we want. I just implemented something similar adding links
for debian/patches metadata. So you could have a look at the approach taken
in 
https://salsa.debian.org/qa/distro-tracker/-/commit/181db12111b35f9f54e5ed07654d34cff604feb3

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS



Bug#1030734: link to upstream bug tracker and repository

2023-02-25 Thread Jelmer Vernooij
Hi Raphael,

On Sat, Feb 25, 2023 at 03:53:28PM +0100, Raphael Hertzog wrote:
> On Mon, 06 Feb 2023, Jelmer Vernooij wrote:
> > A large number of Debian packages now has upstream metadata, including 
> > links to
> > upstream repositories (Repository-Browse) and bugtrackers (Bug-Database /
> > Bug-Submit). Would it be possible to link to those from tracker?
> 
> It's of course possible but is there something already extracting all
> those values and making them available in a convenient way? Maybe UDD?

They're actually already available in UDD:

udd=> select key, value from upstream_metadata where source = 'dulwich';
key|  value
---+--
 Bug-Database  | https://github.com/dulwich/dulwich/issues
 Bug-Submit| https://github.com/dulwich/dulwich/issues/new
 Repository| https://github.com/dulwich/dulwich.git
 Repository-Browse | https://github.com/jelmer/dulwich
 Security-Contact  | https://github.com/dulwich/dulwich/tree/HEAD/SECURITY.md
(5 rows)

udd=>

> Otherwise we first need to implement something like that which can be a
> bit of a pain.
> 
> Usually the tracker fetches some external file and turns it into PackageData
> entries that can then be easily displayed for example with a
> LinksPanel.ItemProvider to add links in the "Links" panel on the right.
> 
> If we have to extract the upstream metadata on our own, then we should
> modify distro_tracker/extract_source_files/ to extract it and add some
> new Task to parse those files after they have been extracted (or do it
> directly in extract_source_files but that would be a scope expansion for
> that Django application).
> 
> FWIW, I don't plan to work on this (at least not in the short term) but
> I'll happily review MR and answer questions.

I might spend some time on this, but would appreciate any further hints
on where to add this if the information is available in UDD.

Jelmer



Bug#1030734: link to upstream bug tracker and repository

2023-02-25 Thread Raphael Hertzog
Hello,

On Mon, 06 Feb 2023, Jelmer Vernooij wrote:
> A large number of Debian packages now has upstream metadata, including links 
> to
> upstream repositories (Repository-Browse) and bugtrackers (Bug-Database /
> Bug-Submit). Would it be possible to link to those from tracker?

It's of course possible but is there something already extracting all
those values and making them available in a convenient way? Maybe UDD?

Otherwise we first need to implement something like that which can be a
bit of a pain.

Usually the tracker fetches some external file and turns it into PackageData
entries that can then be easily displayed for example with a
LinksPanel.ItemProvider to add links in the "Links" panel on the right.

If we have to extract the upstream metadata on our own, then we should
modify distro_tracker/extract_source_files/ to extract it and add some
new Task to parse those files after they have been extracted (or do it
directly in extract_source_files but that would be a scope expansion for
that Django application).

FWIW, I don't plan to work on this (at least not in the short term) but
I'll happily review MR and answer questions.

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS



Bug#1030734: link to upstream bug tracker and repository

2023-02-06 Thread Jelmer Vernooij
Package: tracker.debian.org
Severity: wishlist

A large number of Debian packages now has upstream metadata, including links to
upstream repositories (Repository-Browse) and bugtrackers (Bug-Database /
Bug-Submit). Would it be possible to link to those from tracker?