8311: Fix gitUrl discovery doc for config git_repo_https_base: true.
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 14 Dec 2017 21:22:08 +0000 (16:22 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 14 Dec 2017 21:27:06 +0000 (16:27 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/api/app/controllers/arvados/v1/schema_controller.rb

index 8ab93328ad79d1c7ccc0f5079069a47a760e4533..d4be3c8093fee71692d5b1ed7b2d5fd57c96e44d 100644 (file)
@@ -60,7 +60,14 @@ class Arvados::V1::SchemaController < ApplicationController
         websocketUrl: Rails.application.config.websocket_address,
         workbenchUrl: Rails.application.config.workbench_address,
         keepWebServiceUrl: Rails.application.config.keep_web_service_url,
-        gitUrl: Rails.application.config.git_repo_https_base || "",
+        gitUrl: case Rails.application.config.git_repo_https_base
+                when false
+                  ''
+                when true
+                  'https://git.%s.arvadosapi.com/' % Rails.configuration.uuid_prefix
+                else
+                  Rails.application.config.git_repo_https_base
+                end,
         parameters: {
           alt: {
             type: "string",