Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • heptapod heptapod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • heptapodheptapod
  • heptapodheptapod
  • Merge requests
  • !329

Introduce API to get Heptapod-specific version information

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Elouan Martinet requested to merge topic/heptapod-stable/api-heptapod-version into branch/heptapod-stable Jan 04, 2022
  • Overview 17
  • Commits 1
  • Pipelines 3
  • Changes 4

Fixes #599 (closed)

This is a simple implementation, the GitLab version API call is more complex. It can be edited if wanted.

NB: to make this run, I had to add this patch or it would complain about Gitlab::Database::LoadBalancing::RackMiddleware::Sticking::STICK_OBJECT being not found, but this is unrelated to my change:

diff -r d256885afb1b lib/gitlab/database/load_balancing/sticking.rb
--- a/lib/gitlab/database/load_balancing/sticking.rb	Sun Dec 26 15:47:20 2021 +0100
+++ b/lib/gitlab/database/load_balancing/sticking.rb	Tue Jan 04 16:41:18 2022 +0100
@@ -27,8 +27,8 @@
         def stick_or_unstick_request(env, namespace, id)
           unstick_or_continue_sticking(namespace, id)
 
-          env[RackMiddleware::STICK_OBJECT] ||= Set.new
-          env[RackMiddleware::STICK_OBJECT] << [@model, namespace, id]
+          env[Gitlab::Database::LoadBalancing::RackMiddleware::STICK_OBJECT] ||= Set.new
+          env[Gitlab::Database::LoadBalancing::RackMiddleware::STICK_OBJECT] << [@model, namespace, id]
         end
 
         # Sticks to the primary if a write was performed.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: topic/heptapod-stable/api-heptapod-version