-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 dependency link rendering in PR sidebar #16754
Fix dependency link rendering in PR sidebar #16754
Conversation
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #16754 +/- ##
==========================================
- Coverage 45.37% 45.36% -0.02%
==========================================
Files 760 760
Lines 85485 85485
==========================================
- Hits 38789 38780 -9
- Misses 40413 40421 +8
- Partials 6283 6284 +1
Continue to review full report at Codecov.
|
It's not a bug, it will automatically redirect to the right URL. |
indeed, the autoredirect is a very nice feature. not sure what exactly this PR was fixing. |
The redirect feature is a great one. That's true. This PR faces an issue with external issue trackers. If configured, the redirect feature seems to not always correctly separate issues from pulls. In this particular case it identifies a link pointing to a pull request as an issue reference and therefore redirects to the external tracker. I agree that the fix might not be the best. Maybe I should've identified the issue inside the redirect feature instead of this change. 🤔 |
Sorry @wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf I forgot about your case.
-- |
Given a repository with "External Issue Tracker" configured and having two PRs where PR 1 is added as dependency for PR 2. If you open the discussion page of PR 2 and have a look at the right sidebar, you can click on the dependency (which is PR 1). Without this fix, I get redirected to the external tracker instead of navigated to the PR 1 page in Gitea. It's ok to revert, if this breaks others environments. I guess, we need to identify the actual root cause of my described behavior and fix it, since it's a generic problem for links when an external issue tracker is configured. |
I guess what we need is @wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf to try this on their configuration to double check that this PR has broken things... |
thank you both for considering me, yay. alright, I have checked and this does not break my use case, I suppose that is because my mirrors in fact have the PR pages disabled. on closer look, I still think a better suited place for a more complete solution might have been the issue router redirection logic. |
Cool ... we can all stand-down! |
Thanks @justusbunsi for the fix. |
Signed-off-by: Steven Kriegler 61625851+justusbunsi@users.noreply.github.com