[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779402: tracker.debian.org: code search form uses old PTS codesearch.cgi script



Package: tracker.debian.org
Severity: normal
Tags: newcomer

The code search form uses the old PTS codesearch.cgi script. The old PTS
will be deleted at some point so the distro-tracker should not rely on
it. The code for the old PTS codesearch script is available at [1] and
the reference to it is listed in [2]. The task would be to add a new
codesearch page that redirects to the correct codesearch URL. This
workaround is needed as codesearch does not yet accept the package name
as a separate query parameter. This looks like a fairly easy task for
someone new to the tracker who knows a bit of django.

     1. https://anonscm.debian.org/viewvc/qa/trunk/pts/www/cgi-bin/codesearch.cgi?view=co
     2. $ git grep -hC5 codesearch.cgi 
        'stable',
    )
    SOURCES_URL_TEMPLATE = 'https://sources.debian.net/src/{package}/latest'
    SEARCH_FORM_TEMPLATE = (
        '<form class="code-search-form"'
        ' action="https://packages.qa.debian.org/cgi-bin/codesearch.cgi";'
        ' method="get" target="_blank">'
        '<input type="hidden" name="package" value="{package}">'
        '<input type="text" name="q" placeholder="search source code">'
        '</form>')

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: