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 > news/$package/) > > 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: https://tracker.debian.org/news/534915/Accepted-xdelta-1.1.3-9.1-source-amd64 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 title part). This is a good contribution for a new contributor. Anyone up to the task? FWIW the list of news is handled in this template: distro_tracker/core/templates/core/panels/news.html And the URL of the news is defined by the News.get_absolute_url() method in distro_tracker/core/models.py. Happy hacking! -- 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/ -- To UNSUBSCRIBE, email to debian-qa-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141126174258.ga21...@home.ouaza.com