Restore arcane breadcrumbs (broken link) #3174

Merged
kevin merged 1 commit from mwinters/infra-ansible:tahrir_breadcrumb into main 2026-03-11 21:09:38 +00:00
Contributor
I'm trying to get my head around Tahrir and just encountered this broken breadcrumb: - https://github.com/fedora-infra/tahrir - -> https://tahrir.readthedocs.io/en/latest/installation.html - -> https://infrastructure.fedoraproject.org/infra/ansible/roles/openshift-apps/badges/templates/tahrir.cfg.py - -> https://forge.fedoraproject.org/infra/tickets/8689 (404)
Owner

The link is wrong, but the new link should be:

infra/tickets#8689

so, the update commit where I tried to update pagure.io issue links to forge seems to have missed a part of the path.

The link is wrong, but the new link should be: https://forge.fedoraproject.org/infra/tickets/issues/8689 so, the update commit where I tried to update pagure.io issue links to forge seems to have missed a part of the path.
mwinters force-pushed tahrir_breadcrumb from 4542e501b6
Some checks failed
Linter / yamllint (pull_request) Has been cancelled
Linter / ansible-lint (pull_request) Has been cancelled
to ee88fafbeb
Some checks are pending
Linter / yamllint (pull_request) Blocked by required conditions
Linter / ansible-lint (pull_request) Blocked by required conditions
2026-03-02 23:11:25 +00:00
Compare
mwinters force-pushed tahrir_breadcrumb from ee88fafbeb
Some checks are pending
Linter / yamllint (pull_request) Blocked by required conditions
Linter / ansible-lint (pull_request) Blocked by required conditions
to 2047fc08d7
Some checks are pending
Linter / yamllint (pull_request) Blocked by required conditions
Linter / ansible-lint (pull_request) Blocked by required conditions
2026-03-02 23:16:02 +00:00
Compare
Author
Contributor

@kevin Thanks, rebased and updated.

@kevin Thanks, rebased and updated.
mwinters force-pushed tahrir_breadcrumb from a1b06af115
Some checks are pending
Linter / yamllint (pull_request) Blocked by required conditions
Linter / ansible-lint (pull_request) Blocked by required conditions
to 894322aa8d
Some checks failed
Linter / yamllint (pull_request) Failing after 25s
Linter / ansible-lint (pull_request) Failing after 42s
2026-03-02 23:55:10 +00:00
Compare
Author
Contributor

@kevin I added a second commit to fix all such instances. The only non-comment change was files/httpd/fedorahosted-redirects.conf -- maybe double-check that..

@kevin I added a second commit to fix all such instances. The only non-comment change was `files/httpd/fedorahosted-redirects.conf` -- maybe double-check that..
mwinters force-pushed tahrir_breadcrumb from 894322aa8d
Some checks failed
Linter / yamllint (pull_request) Failing after 25s
Linter / ansible-lint (pull_request) Failing after 42s
to ef010bcedb
Some checks failed
Linter / yamllint (pull_request) Successful in 26s
Linter / ansible-lint (pull_request) Failing after 44s
2026-03-03 21:45:38 +00:00
Compare
Author
Contributor

@kevin The linters are complaining about problems I didn't create :)

I added a 3rd commit, to satisfy yamllint because that was just trailing spaces. I don't know what ansible-lint wants. (No spare cycles to grok that playbook at the moment.)

Let me know if you want me to squash before merge.

@kevin The linters are complaining about problems I didn't create :) I added a 3rd commit, to satisfy yamllint because that was just trailing spaces. I don't know what ansible-lint wants. (No spare cycles to grok that playbook at the moment.) Let me know if you want me to squash before merge.
kevin left a comment
Owner

Two raw links need adjustment. ;)

But this also hits frozen hosts, so it needs a freeze break or to wait until after freeze. Do you have a preference? I think it all seems reasonable (aside the two minor things), so I would +1 it (but it needs another).

yeah, don't worry about linting for now... there's a few pr's to fix things more for that but dont worry about it being a blocker for now.

Two raw links need adjustment. ;) But this also hits frozen hosts, so it needs a freeze break or to wait until after freeze. Do you have a preference? I think it all seems reasonable (aside the two minor things), so I would +1 it (but it needs another). yeah, don't worry about linting for now... there's a few pr's to fix things more for that but dont worry about it being a blocker for now.
@ -5,3 +5,3 @@
<div style="margin: auto" class="container">
<a href="https://fedoraproject.limequery.com/2023" target="_blank">
<img src="https://forge.fedoraproject.org/infra/tickets/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png" style="max-width: 100%">
<img src="https://forge.fedoraproject.org/infra/tickets/issues/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png" style="max-width: 100%">
Owner

This doesn't seem quite right... at least it's 404...

This doesn't seem quite right... at least it's 404...
Author
Contributor

I'm not sure how to fix this. Both the original and my updated version are 404, and I have no way to know what ticket number these attachments belong to so I can't go figure out the correct URL (if there is one).

I'm not sure how to fix this. Both the original and my updated version are 404, and I have no way to know what ticket number these attachments belong to so I can't go figure out the correct URL (if there is one).
Owner

Ah yeah, it's an attachment...

https://forge.fedoraproject.org/fedora-infrastructure/issue/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png

I think should be right? (although really it just redirects to the old pagure attachment since that url is a pagure one and attachments didn't migrate).

Ah yeah, it's an attachment... https://forge.fedoraproject.org/fedora-infrastructure/issue/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png I think should be right? (although really it just redirects to the old pagure attachment since that url is a pagure one and attachments didn't migrate).
mwinters marked this conversation as resolved
@ -6,3 +6,3 @@
<div class="banner">
<a href="https://fedoraproject.limequery.com/2023" target="_blank">
<img src="https://forge.fedoraproject.org/infra/tickets/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png">
<img src="https://forge.fedoraproject.org/infra/tickets/issues/raw/files/b4d328e7ce730f610530822af4c9cdab1029c47dc2bdb15648d4008e1b304e43-contributor-survey-banner.png">
Owner

Same here.

Same here.
mwinters marked this conversation as resolved
Author
Contributor

@nirik See my thread comment above. I'm fine with merging this after the freeze, though perhaps the broken redirect is worth the breakglass -- your call.

@nirik See my thread comment above. I'm fine with merging this after the freeze, though perhaps the broken redirect is worth the breakglass -- your call.
mwinters force-pushed tahrir_breadcrumb from ef010bcedb
Some checks failed
Linter / yamllint (pull_request) Successful in 26s
Linter / ansible-lint (pull_request) Failing after 44s
to d3a3c98bbf
Some checks failed
Linter / yamllint (pull_request) Successful in 27s
Linter / ansible-lint (pull_request) Has been cancelled
2026-03-05 15:51:13 +00:00
Compare
mwinters force-pushed tahrir_breadcrumb from d3a3c98bbf
Some checks failed
Linter / yamllint (pull_request) Successful in 27s
Linter / ansible-lint (pull_request) Has been cancelled
to 68c54c6832
Some checks failed
Linter / yamllint (pull_request) Successful in 27s
Linter / ansible-lint (pull_request) Failing after 45s
AI Code Review / ai-review (pull_request_target) Successful in 35s
2026-03-05 15:52:06 +00:00
Compare
Author
Contributor

@nirik I corrected the attachment URLs and squashed.

@nirik I corrected the attachment URLs and squashed.
Owner

Thanks! Lets just wait and push this next wed...

Thanks! Lets just wait and push this next wed...

AI Code Review

📋 MR Summary

Fixes broken Forge links across the repository by appending /issues/ to ticket paths and correcting raw attachment URLs. The changes predominantly affect code comments, with functional updates to an httpd redirect rule and two HTML templates.

  • Key Changes:
    • Updated functional httpd redirect in fedorahosted-redirects.conf to point legacy ticket URLs to the new /issues/ endpoint.
    • Corrected raw attachment URLs for survey banners in Mailman3 and Noggin HTML templates.
    • Performed a repository-wide search-and-replace to fix broken Forge ticket references in comments.
    • Removed trailing whitespace/newlines in a few files to resolve existing yamllint warnings.
  • Impact: httpd (redirects), mailman3 (templates), noggin (templates), ansible roles (documentation/comments)
  • Risk Level: 🟢 Low - The vast majority of changes are isolated to code comments. The functional changes (HTML templates and Apache redirects) are straightforward string replacements that have been validated against the new Forge URL structure.

Detailed Code Review

The implementation correctly aligns with the conclusions discussed during the PR review process. The broken attachment links have been successfully reconstructed using the proper fedora-infrastructure/issue/raw/files/ path format. The repository-wide updates to the documentation comments accurately implement the /issues/ path injection.

The update to files/httpd/fedorahosted-redirects.conf correctly preserves the regex capture group $1 while safely updating the destination URL. Furthermore, the minor whitespace removals nicely satisfy yamllint without bleeding into broader linting scopes, which honors the reviewer's guidance that full linting is not a blocker here.

No critical issues or bugs were identified in this review.

Summary

  • Overall Assessment: The changes successfully restore the broken breadcrumbs and functional links with no identified security, performance, or logic issues.

🤖 AI Code Review | Generated with ai-code-review | Model: gemini-3.1-pro-preview

⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.

## AI Code Review ### 📋 MR Summary Fixes broken Forge links across the repository by appending `/issues/` to ticket paths and correcting raw attachment URLs. The changes predominantly affect code comments, with functional updates to an httpd redirect rule and two HTML templates. - **Key Changes:** - Updated functional httpd redirect in `fedorahosted-redirects.conf` to point legacy ticket URLs to the new `/issues/` endpoint. - Corrected raw attachment URLs for survey banners in Mailman3 and Noggin HTML templates. - Performed a repository-wide search-and-replace to fix broken Forge ticket references in comments. - Removed trailing whitespace/newlines in a few files to resolve existing `yamllint` warnings. - **Impact:** httpd (redirects), mailman3 (templates), noggin (templates), ansible roles (documentation/comments) - **Risk Level:** 🟢 Low - The vast majority of changes are isolated to code comments. The functional changes (HTML templates and Apache redirects) are straightforward string replacements that have been validated against the new Forge URL structure. ### Detailed Code Review The implementation correctly aligns with the conclusions discussed during the PR review process. The broken attachment links have been successfully reconstructed using the proper `fedora-infrastructure/issue/raw/files/` path format. The repository-wide updates to the documentation comments accurately implement the `/issues/` path injection. The update to `files/httpd/fedorahosted-redirects.conf` correctly preserves the regex capture group `$1` while safely updating the destination URL. Furthermore, the minor whitespace removals nicely satisfy `yamllint` without bleeding into broader linting scopes, which honors the reviewer's guidance that full linting is not a blocker here. No critical issues or bugs were identified in this review. ### ✅ Summary - **Overall Assessment:** The changes successfully restore the broken breadcrumbs and functional links with no identified security, performance, or logic issues. --- 🤖 **AI Code Review** | Generated with [ai-code-review](https://gitlab.com/redhat/edge/ci-cd/ai-code-review) | **Model:** `gemini-3.1-pro-preview` ⚠️ *AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.*
Owner

Merging this now. Thanks for the pull request!

Merging this now. Thanks for the pull request!
kevin merged commit aedf43d1f3 into main 2026-03-11 21:09:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/ansible!3174
No description provided.