Skip to content

Projects::GraphsController#charts: fix URL generation

Vasilii Iakliushin requested to merge 496469_fix_template_error into master

What does this MR do and why?

Contributes to #496469 (closed)

Problem

project_graph_path doesn't use @ref with an extracted reference in GraphsController. The URL generation fails and returns a 500 error.

Solution

Provide a correct reference object to project_graph_path

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-09-30_at_14.37.27 Screenshot_2024-09-30_at_14.37.44

How to set up and validate locally

  1. Visit http://gdk.test:3000/gitlab-org/gitlab-test/-/graphs/master/charts?path=a%20b
  2. It should not raise an exception
Edited by Vasilii Iakliushin

Merge request reports

Loading