External status check Retry button breaks when building URL
Summary
When a MR has a failed external status check, clicking the Retry button does nothing. This is because the code fails to correctly build the URL for the API endpoint it needs to hit.
Steps to reproduce
- Add an external status check to a project
- Open a MR with a change that will cause the external check to fail
- Expand the status check widget
- Click "Retry"
Example Project
What is the current bug behavior?
Nothing happens from users perspective when clicking the button.
What is the expected correct behavior?
Loading state should show, and API request made to trigger the external status check retry
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
this.mrStatusCheckRetryPath
is undefined
. It was defined here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/api.js#L47