Skip to content

Implementation: Generate a commit SHA-specific chain of custody report [Frontend]

Problem to solve

This is the frontend implementation issue for Generate a commit SHA-specific chain of custody report &4608 (closed).

User experience goal

An administrator or group owner input a specific commimt SHA into a chain of custody download prompt and receive a CSV report in the same format, but which shows the MR, pipeline, author, approver, etc for that specific commit SHA.

Intended users

Proposal

Update the chain of custody report to filter the criteria to show only data points related to the specific commit SHA provided by a user.

  1. An admin or group owner clicks on the export button and sees a prompt
  2. Their options could be: [List of all merge requests] or [ Search Commit SHA]
  3. Using the second option, they input 1a2bc3 to find a commit sha report
  4. They receive the same report as we've built in #213364 (closed), but it would show only data related to the specific commit SHA
Empty State Error Long hash
Empty_state Error Long_Commit_SHA

Implementation

  1. Change the List all merge commits button to a button with dropdown with the new input form.
  2. On input done, check if the hash is valid with a simple regular expression.
  3. On export click, submit the commit hash to the mergeCommitsCsvExportPath.
Edited by Jiaan Louw