- Package:
- tracker.debian.org
- Source:
- tracker.debian.org
- Submitter:
- Jelmer Vernooij
- Date:
- 2023-02-26 16:03:03 UTC
- Severity:
- normal
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?
Hello, 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,
Hi Raphael,
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=>
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
Hi, 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,