Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Package template still linking to Flyspray instead of GitLab #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thrimbor
Copy link

@thrimbor thrimbor commented Jan 1, 2025

Just a small change to fix some outdated links I found that still lead to bugs.archlinux.org instead of the GitLab.
I couldn't quickly figure out if and how a change like this is tested (almost all tests don't work on my machine even before the change), but the links should work fine like that.

Foxboron
Foxboron previously approved these changes Jan 2, 2025
Copy link
Member

@Foxboron Foxboron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

<a href="https://bugs.archlinux.org/?project=0&order=id&sort=desc&string={{ package.pkgname|urlencode }}">bugs open</a> |
<a href="https://bugs.archlinux.org/?project=0&order=id&sort=desc&status%5B%5D=closed&string={{ package.pkgname|urlencode }}">bugs closed</a> |
<a href="https://gitlab.archlinux.org/archlinux/packaging/packages/{{ package.pkgname|urlencode }}-/issues">bugs open</a> |
<a href="https://gitlab.archlinux.org/archlinux/packaging/packages/{{ package.pkgname|urlencode }}/-/issues/?state=closed">bugs closed</a> |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work, it needs to be encoded so afl++ goes to afl++ gitlab.

For that you need something like we have in archweb https://github.com/archlinux/archweb/blob/4e25b014e45c6e44658222e38e563767b839e187/main/utils.py#L156

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has taken me a while, but I've update the commit to adapt that approach, but as a jinja filter.
I also figured out I can test this locally by manually adding a package to the db, and it seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants