Skip to content

fix(perf): Optimize calls to `/version` with RequestCache

Paul Slaughter requested to merge ps-fix-version-check-to-ff-service into main

Description

This MR optimizes how we retrieve the relevant GitLab instance version by:

  • Introducing a utility RequestCache
  • Introducing a singleton getGitLabVersion that uses RequestCache

How has this been tested?

  • Unit tests still pass 👍.
  • Manually with Run Extension task and verifying the number of /version calls in the extension logs.

Screenshots (if appropriate)

Before After
Screenshot_2024-09-03_at_10.34.16_PM Screenshot_2024-09-03_at_11.09.29_PM

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes

Merge request reports

Loading