Use server-built path for inline blame prior-blame link

What does this MR do and why?

This MR switches the blame viewer to read previousBlamePath added in !253769 (merged)

References

Screenshots or screen recordings

No visual change. The "View blame prior to this change" button looks and behaves identically to master. Only the source of the button's href changes: it is now server-built (previousBlamePath from GraphQL) rather than client-built. The resulting URL value is the same.

How to set up and validate locally

  1. In GDK, open any text file that has more than one commit in its history. Click Blame in the file header to enable inline blame. Hover a blame entry and click the View blame prior to this change button (the doc-versions icon). Confirm the link resolves with ?blame=1 and shows the correct prior blame view.
  2. Configure GDK with a relative URL root (relative_url_root: /gitlab in gdk.yml) and repeat step 1. Confirm the button href includes the /gitlab prefix and the page still resolves correctly.
  3. In both cases the behavior should be identical to current master.

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 Chaoyue Zhao

Merge request reports

Loading
Loading