Bug#766597: tracker news urls could be more package related + human friendly
Control: tag -1 newcomer
On Fri, 24 Oct 2014, Holger Levsen wrote:
> And then I realized that I thought this before about the tracker news urls: I
> think they are too "meaningless" and they would be more informative if they
> were of the form https://tracker.debian.org/$package/news/580713 (or
> What do you think? That would also make it possible to use lower IDs (and
> internally use pkgname+id) which are more human friendly. The current numbers
> can also be confused with bugs...
I don't think it makes much sense to include the name of the package.
However we could include the title of the news after the news id:
Basically, we take the title, pass is through a function that changes
the string to something that looks like a "slug" (possibly using
django.template.defaultfilters.slugify) and append it to the URL.
We modify the default urls.py to accept those url (and discard the
This is a good contribution for a new contributor. Anyone up to the task?
FWIW the list of news is handled in this template:
And the URL of the news is defined by the News.get_absolute_url()
method in distro_tracker/core/models.py.
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/