Skip to content

Add gitlab version header to response

charlie ablett requested to merge 378069-cablett-add-version-to-header into master

What does this MR do and why?

Adds a gitlab-version to response via middleware.

The goal is to allow API calls (initially GraphQL) to determine if a schema mismatch is due to a version discrepancy.

See #378069 (comment 1408724835) and #352455 (comment 1132346448) for details.

Screenshots or screen recordings

No user-facing changes

How to set up and validate locally

  1. Open Inspector in browser, network tab
  2. Open any page on GitLab
  3. Look for version header.
Authenticated Unauthenticated
image image

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 #378069

Edited by charlie ablett

Merge request reports