[ARVADOS] updated: 2.1.0-86-g47b3757a8

Git user git at public.arvados.org
Thu Nov 5 19:56:02 UTC 2020


Summary of changes:
 .../api/db/migrate/20201105190435_refresh_permissions.rb  | 15 +++++++++++++++
 services/api/db/structure.sql                             |  3 ++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 services/api/db/migrate/20201105190435_refresh_permissions.rb

       via  47b3757a87151d9d7554f5e38c79e485558812c5 (commit)
      from  833220f67a5dfa5af83c71fdedde14702f4badcf (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 47b3757a87151d9d7554f5e38c79e485558812c5
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Thu Nov 5 14:55:35 2020 -0500

    17090: Migration to refresh_permissions
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/services/api/db/migrate/20201105190435_refresh_permissions.rb b/services/api/db/migrate/20201105190435_refresh_permissions.rb
new file mode 100644
index 000000000..1ced9d228
--- /dev/null
+++ b/services/api/db/migrate/20201105190435_refresh_permissions.rb
@@ -0,0 +1,15 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+require '20200501150153_permission_table_constants'
+
+class RefreshPermissions < ActiveRecord::Migration[5.2]
+  def change
+    # There was a report of deadlocks resulting in failing permission
+    # updates.  These failures should not have corrupted permissions
+    # (the failure should have rolled back the entire update) but we
+    # will refresh the permissions out of an abundance of caution.
+    refresh_permissions
+  end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 6f9cee270..58c064ac3 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -3185,6 +3185,7 @@ INSERT INTO "schema_migrations" (version) VALUES
 ('20200501150153'),
 ('20200602141328'),
 ('20200914203202'),
-('20201103170213');
+('20201103170213'),
+('20201105190435');
 
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list