[FastAPI] Remove deprecated `dedupe_qs`
Previously, a dedupe_qs
filter was added to deal with query string arguments in the templates/partials/tu/proposals.html template.
dedupe_qs
takes in a query string, while the new extend_query
takes in a query dict, which can be produced via dict(request.query_params)
in a FastAPI route. Additionally, the following commits include a urlencode
filter which can take the result of extend_query
and turn it into a query string (which does not include any ?
in it).
You will need to cherry-pick the following commits for new tools used to replace dedupe_qs
, starting with the first:
- bbbf8862 jinja2: rename filter 'urlencode' to 'quote_plus'
- 576043a6 aurweb.util: add extend_query and to_qs helpers
These commits can be found in kevr/aurweb's branch pu_packages.
$ git checkout pu
$ git pull <upstream> pu
$ git checkout -b pu_cleanup
$ git remote add kevr ssh://git@gitlab.archlinux.org:222/kevr/aurweb.git
$ git fetch kevr pu_packages
$ git cherry-pick bbbf8862aeefc7d4195e79bde8c15c59ea375b27
$ git cherry-pick 576043a64d86040842b3a8a88d78be5e54d987ea
Commit hashes are out of date; see pu_packages