[ARVADOS] updated: e17169e05c2e69d5bb46792bc33ef3c92f9c5237

git at public.curoverse.com git at public.curoverse.com
Tue Jan 28 11:05:57 EST 2014


Summary of changes:
 apps/workbench/app/models/arvados_api_client.rb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

       via  e17169e05c2e69d5bb46792bc33ef3c92f9c5237 (commit)
      from  8506c7afd5dc27d8fe40d10d53283cc7af9647e7 (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 e17169e05c2e69d5bb46792bc33ef3c92f9c5237
Author: Tom Clegg <tom at curoverse.com>
Date:   Tue Jan 28 08:04:48 2014 -0800

    Clean up /arvados/v1/../../discovery/v1/ hack before sending request
    to server.

diff --git a/apps/workbench/app/models/arvados_api_client.rb b/apps/workbench/app/models/arvados_api_client.rb
index b2d774c..84735d9 100644
--- a/apps/workbench/app/models/arvados_api_client.rb
+++ b/apps/workbench/app/models/arvados_api_client.rb
@@ -32,6 +32,9 @@ class ArvadosApiClient
     resources_kind = class_kind(resources_kind).pluralize if resources_kind.is_a? Class
     url = "#{self.arvados_v1_base}/#{resources_kind}#{action}"
 
+    # Clean up /arvados/v1/../../discovery/v1 to /discovery/v1
+    url.sub! '/arvados/v1/../../', '/'
+
     query = {"api_token" => api_token}
     if !data.nil?
       data.each do |k,v|

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list