Do not append issuable state to links with custom anchor
What does this MR do?
Do not append issuable state to links with custom anchor. Do not append issuable state to links to comments.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
[ ] Changelog entry added, if necessary[ ] Documentation created/updated[ ] API support added- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Merge request reports
Activity
changed milestone to %9.1
assigned to @smcgivern
- Resolved by username-removed-378947
@adamniedzielski thanks! One question. I take it that using
content
is no slower than explicitly managing the children, like we were doing before?assigned to @adamniedzielski
mentioned in issue #31145 (moved)
@smcgivern we were using
content
in the initial implementation and then I changed it to explicitly managing the children in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10683/diffs. However, this was not due to the performance, just to correctly handle some nested tags.We no longer have to handle this case, because we append the state only when the anchor is exactly issue reference, without any HTML tags in the anchor. Thanks for asking about this though, it helped me in finding a minor edge case.
I'd expect using
content=
to be faster than manually appending a child, because the library can modify an existing node without allocating a temporary one.added 1 commit
- ba67d11f - Do not append issuable state to links with custom anchor
added 1 commit
- 06df283e - Do not append issuable state to links with custom anchor
assigned to @smcgivern
- Resolved by username-removed-443319
@adamniedzielski https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10789 is MWPS, so please assign back to me after that's merged and the conflicts are fixed.
assigned to @adamniedzielski
added 82 commits
-
06df283e...29ddc15f - 81 commits from branch
master
- 1269ee4c - Do not append issuable state to links with custom anchor
-
06df283e...29ddc15f - 81 commits from branch
assigned to @smcgivern
enabled an automatic merge when the pipeline for 1269ee4c succeeds
mentioned in commit b99853f5
mentioned in commit 65a136b4