Skip to content
Snippets Groups Projects

Do not append issuable state to links with custom anchor

Merged username-removed-378947 requested to merge issuable-state-custom-links into master
All threads resolved!

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)

Bildschirmfoto_2017-04-19_um_11.51.36

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/30916

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • @adamniedzielski thanks! One question. I take it that using content is no slower than explicitly managing the children, like we were doing before?

  • 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

    Compare with previous version

  • added 1 commit

    • 06df283e - Do not append issuable state to links with custom anchor

    Compare with previous version

  • username-removed-378947 resolved all discussions

    resolved all discussions

  • username-removed-443319 resolved all discussions

    resolved all discussions

  • @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.

  • added 82 commits

    Compare with previous version

  • username-removed-443319 approved this merge request

    approved this merge request

  • username-removed-443319 enabled an automatic merge when the pipeline for 1269ee4c succeeds

    enabled an automatic merge when the pipeline for 1269ee4c succeeds

  • mentioned in commit b99853f5

  • Picked into 9-1-stable, will go into 9.1.0-rc6

  • mentioned in commit 65a136b4

  • Please register or sign in to reply
    Loading