[ARVADOS] updated: 2f6af007ae1b131388a427e647a08af1a8192b19

Git user git at public.curoverse.com
Fri Sep 8 12:37:07 EDT 2017


Summary of changes:
 .../api/config/initializers/init_permissions.rb                  | 5 +++--
 services/api/lib/refresh_permission_view.rb                      | 9 +++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)
 copy apps/workbench/test/controllers/authorized_keys_controller_test.rb => services/api/config/initializers/init_permissions.rb (53%)
 create mode 100644 services/api/lib/refresh_permission_view.rb

       via  2f6af007ae1b131388a427e647a08af1a8192b19 (commit)
      from  135db618fb31530ca2baae115e583b81f43d0894 (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 2f6af007ae1b131388a427e647a08af1a8192b19
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Sep 8 12:36:53 2017 -0400

    12032: Add missing files.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/config/initializers/init_permissions.rb b/services/api/config/initializers/init_permissions.rb
new file mode 100644
index 0000000..39a7ee8
--- /dev/null
+++ b/services/api/config/initializers/init_permissions.rb
@@ -0,0 +1,9 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+require 'refresh_permission_view'
+
+if defined?(Rails::Server)
+  refresh_permission_view
+end
diff --git a/services/api/lib/refresh_permission_view.rb b/services/api/lib/refresh_permission_view.rb
new file mode 100644
index 0000000..4d3df7d
--- /dev/null
+++ b/services/api/lib/refresh_permission_view.rb
@@ -0,0 +1,9 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+PERMISSION_VIEW = "materialized_permission_view"
+
+def refresh_permission_view
+  ActiveRecord::Base.connection.exec_query("REFRESH MATERIALIZED VIEW #{PERMISSION_VIEW}")
+end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list