MR reference filter understands "_A123" from rapid diffs

What does this MR do and why?

MR reference filter understands "_A123" from rapid diffs

Rapid diffs add _A#{n} for links to added lines; include uppercase letters in the fragment we parse so they're included.

Fixes MR diff links with per-line anchors are truncat... (#630777 - closed).

Screenshots or screen recordings

What Before After
PTE image.png image
RTE image.png image.png
Render image.png image

How to set up and validate locally

  1. Create an MR in your dev environment with at least one changed/added line.

  2. In the diffs view (should be rapid diffs), click on the added line's line number to get a link to that added line:

    image.png

  3. The URL in your address bar should end in something like _A123 (but a different number unless you are very lucky):

    image.png

  4. Copy that URL into a Markdown field. Observe the "Before" side above in all listed modes.

  5. Check out this branch.

  6. Repeat step 4, but observe the "After" side.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Asherah Connor

Merge request reports

Loading
Loading