Skip to content

Set ref for commit show page

What does this MR do and why?

Set the @ref in the CommitController#show. this @ref will be used later to create the search urls which will allow to add the repository_ref as the query param.

Screenshots or screen recordings

How to set up and validate locally

  1. Run the local development environment
    gdk start
  2. Navigate to the commit show page. For eg: http://127.0.0.1:3000/flightjs/Flight/-/commit/3b9e7ae1d68eda2c4f17ce8a6cd355b41cf8749a
  3. Search for any text in the top search bar in the header
  4. You should land on the search page with the search limited to the commit-sha where from you are coming. In this case 3b9e7ae1d68eda2c4f17ce8a6cd355b41cf8749a

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #31707 (closed)

Edited by Ravi Kumar

Merge request reports

Loading