OP-19605 Nothing happens when clicking project link in notification#24017
OP-19605 Nothing happens when clicking project link in notification#24017dfriquet wants to merge 2 commits into
Conversation
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
1 similar comment
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
There was a problem hiding this comment.
I added this spec just to confirm my fix. I don’t know if it’s relevant enough to keep it and lengthen our feature specs runs, or if I drop it 🤷
There was a problem hiding this comment.
I would keep it. Just to prevent someone wondering why there is the target=_top", then try removing it, see it still works and push. This test is the only way to know something was broken (or on the contrary attest that the fix is not needed anymore).
There was a problem hiding this comment.
In that case, a spec should exist for each and every _top link in this side panel. And some of them require quite a setup, like cost types, relationships and all… Resulting in slow repetitive tests.
I’ll try to fix it the other way around: all links trigger a full-page navigation, unless stated otherwise for ad-hoc in-frame navigation. That way, no need to test navigation except for the one that should stay on the same page 🤔
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
|
@dfriquet would it be possible to target |
cbliard
left a comment
There was a problem hiding this comment.
I found two other places where the link is not working properly: user name link and sum query links
user name links
The "Update by " on top of the overview tab, clicking the user link triggers the bug (noop)
sum query links
If the work package has children and those children have work being set, then the parent shows the total, and this total is a link which can be clicked to show the children, so that the user can understand how the sum is computed.
When clicking this sum link from within the notification page in the work package side bar, then the link is a no-op.
Overall, it seems the fix is brittle: if a link is added in the overview page in the future, there is no guarantee this link will work properly when clicked from the notification center.
Ticket
https://community.openproject.org/wp/OP-19605
What are you trying to accomplish?
Open links in workpackage split view as full-page navigation.
What approach did you choose and why?
Escape from Turbo Frame with
target="_top".Merge checklist