REST API: RunnerDetails will no longer expose version, revision, platform, architecture
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
version, revision, platform, and architecture for an individual GitLab runner don't make sense now when we can have multiple runner managers assigned to the same runner with different values.
diff --git a/lib/api/entities/ci/runner_details.rb b/lib/api/entities/ci/runner_details.rb
index a26e3afb4c77..ee1ccbe9fffc 100644
--- a/lib/api/entities/ci/runner_details.rb
+++ b/lib/api/entities/ci/runner_details.rb
@@ -9,7 +9,11 @@ class RunnerDetails < Runner
expose :locked
expose :maximum_timeout
expose :access_level
- expose :version, :revision, :platform, :architecture
+ # TODO: remove in v5 https://gitlab.com/gitlab-org/gitlab/-/issues/415159
+ expose(:version) { |_runner, _options| '' }
+ expose(:revision) { |_runner, _options| '' }
+ expose(:platform) { |_runner, _options| '' }
+ expose(:architecture) { |_runner, _options| '' }
expose :contacted_at
expose :maintenance_note
Edited by 🤖 GitLab Bot 🤖