[ARVADOS] updated: 1.1.2-113-g3a3fc5a
Git user
git at public.curoverse.com
Wed Jan 17 10:31:30 EST 2018
Summary of changes:
apps/workbench/app/assets/javascripts/models/session_db.js | 2 +-
services/api/app/controllers/arvados/v1/schema_controller.rb | 1 +
services/api/test/functional/arvados/v1/schema_controller_test.rb | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
via 3a3fc5ac54a80b62b05f78cf2da0a7b43f4a4380 (commit)
from 6b3cfe60beb46ba087de5093926363d8b03ab889 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3a3fc5ac54a80b62b05f78cf2da0a7b43f4a4380
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Wed Jan 17 10:31:04 2018 -0500
Fix wrong cluster label on search page when authenticated remotely.
Add uuid prefix to discovery doc.
refs #11453
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/apps/workbench/app/assets/javascripts/models/session_db.js b/apps/workbench/app/assets/javascripts/models/session_db.js
index a43cd79..d5cd98d 100644
--- a/apps/workbench/app/assets/javascripts/models/session_db.js
+++ b/apps/workbench/app/assets/javascripts/models/session_db.js
@@ -127,7 +127,7 @@ window.SessionDB = function() {
},
}).then(function(user) {
session.user = user
- db.save(user.uuid.slice(0, 5), session)
+ db.save(user.owner_uuid.slice(0, 5), session)
db.trash(key)
})
})
diff --git a/services/api/app/controllers/arvados/v1/schema_controller.rb b/services/api/app/controllers/arvados/v1/schema_controller.rb
index d4be3c8..91685f5 100644
--- a/services/api/app/controllers/arvados/v1/schema_controller.rb
+++ b/services/api/app/controllers/arvados/v1/schema_controller.rb
@@ -44,6 +44,7 @@ class Arvados::V1::SchemaController < ApplicationController
rootUrl: root_url,
servicePath: "arvados/v1/",
batchPath: "batch",
+ uuidPrefix: Rails.application.config.uuid_prefix,
defaultTrashLifetime: Rails.application.config.default_trash_lifetime,
blobSignatureTtl: Rails.application.config.blob_signature_ttl,
maxRequestSize: Rails.application.config.max_request_size,
diff --git a/services/api/test/functional/arvados/v1/schema_controller_test.rb b/services/api/test/functional/arvados/v1/schema_controller_test.rb
index 235b78e..c15060d 100644
--- a/services/api/test/functional/arvados/v1/schema_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/schema_controller_test.rb
@@ -33,6 +33,7 @@ class Arvados::V1::SchemaControllerTest < ActionController::TestCase
assert_match(/^[0-9a-f]+(-modified)?$/, discovery_doc['source_version'])
assert_equal discovery_doc['websocketUrl'], Rails.application.config.websocket_address
assert_equal discovery_doc['workbenchUrl'], Rails.application.config.workbench_address
+ assert_equal('zzzzz', discovery_doc['uuidPrefix'])
end
test "discovery document overrides source_version with config" do
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list