[arvados] updated: 2.5.0-293-gce5ad31aa

git repository hosting git at public.arvados.org
Thu Mar 23 15:23:40 UTC 2023


Summary of changes:
 services/api/config/initializers/schema_discovery_cache.rb       | 9 ---------
 .../api/test/functional/arvados/v1/schema_controller_test.rb     | 1 -
 services/api/test/integration/remote_user_test.rb                | 1 -
 3 files changed, 11 deletions(-)
 delete mode 100644 services/api/config/initializers/schema_discovery_cache.rb

       via  ce5ad31aac392b38889fc04640fcd06474cebeb6 (commit)
      from  fe1c718ce87a72b84f59215decc613d4d5010dce (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 ce5ad31aac392b38889fc04640fcd06474cebeb6
Author: Tom Clegg <tom at curii.com>
Date:   Thu Mar 23 11:23:16 2023 -0400

    20187: Remove references to discovery doc cache.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/services/api/config/initializers/schema_discovery_cache.rb b/services/api/config/initializers/schema_discovery_cache.rb
deleted file mode 100644
index c2cb8de08..000000000
--- a/services/api/config/initializers/schema_discovery_cache.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-# Delete the cached discovery document during startup. Otherwise we
-# might still serve an old discovery document after updating the
-# schema and restarting the server.
-
-Rails.cache.delete 'arvados_v1_rest_discovery'
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 89feecb45..f96f1af53 100644
--- a/services/api/test/functional/arvados/v1/schema_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/schema_controller_test.rb
@@ -9,7 +9,6 @@ class Arvados::V1::SchemaControllerTest < ActionController::TestCase
   setup do forget end
   teardown do forget end
   def forget
-    Rails.cache.delete 'arvados_v1_rest_discovery'
     AppVersion.forget
   end
 
diff --git a/services/api/test/integration/remote_user_test.rb b/services/api/test/integration/remote_user_test.rb
index 179d30f3c..af7b747d7 100644
--- a/services/api/test/integration/remote_user_test.rb
+++ b/services/api/test/integration/remote_user_test.rb
@@ -55,7 +55,6 @@ class RemoteUsersTest < ActionDispatch::IntegrationTest
         SSLCertName: [["CN", WEBrick::Utils::getservername]],
         StartCallback: lambda { ready.push(true) })
       srv.mount_proc '/discovery/v1/apis/arvados/v1/rest' do |req, res|
-        Rails.cache.delete 'arvados_v1_rest_discovery'
         res.body = Arvados::V1::SchemaController.new.send(:discovery_doc).to_json
       end
       srv.mount_proc '/arvados/v1/users/current' do |req, res|

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list