Bug#1030734: link to upstream bug tracker and repository
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
Reply to: