Projects::GraphsController#charts: fix URL generation
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 |
---|---|
How to set up and validate locally
- Visit http://gdk.test:3000/gitlab-org/gitlab-test/-/graphs/master/charts?path=a%20b
- It should not raise an exception
Edited by Vasilii Iakliushin