[arvados] updated: 2.7.0-5013-g4ec55841b9

git repository hosting git at public.arvados.org
Thu Oct 19 18:26:57 UTC 2023


Summary of changes:
 services/api/app/models/group.rb                   | 85 ++++++++++++----------
 .../20231013000000_compute_permission_index.rb     | 27 +++++++
 services/api/db/structure.sql                      | 68 +++++++++--------
 services/api/lib/update_permissions.rb             | 65 +++++++++--------
 4 files changed, 143 insertions(+), 102 deletions(-)
 create mode 100644 services/api/db/migrate/20231013000000_compute_permission_index.rb

       via  4ec55841b965ae33aad66479bf4d4ad41e6a0b62 (commit)
       via  4727334c7ef28cdb7fb2df89211c09eb5d51bef4 (commit)
       via  e3ad9c3190f3dfad24e4d437149cf2a4462b2464 (commit)
       via  26510a8ee080eac922abd6c981e2f077fe1a2f58 (commit)
       via  841194f2456f9f4874fe6ebe1e4639c0b0421b97 (commit)
      from  220869d94387efb179d1692ada16f39049f56700 (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 4ec55841b965ae33aad66479bf4d4ad41e6a0b62
Merge: 220869d943 4727334c7e
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Thu Oct 19 14:26:44 2023 -0400

    Merge branch '21030-update-perm-cte' refs #21030
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --cc services/api/db/structure.sql
index a26db2e5db,28259a08f2..c0d4263d97
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@@ -62,10 -62,10 +62,10 @@@ wit
       permission (permission origin is self).
    */
    perm_from_start(perm_origin_uuid, target_uuid, val, traverse_owned) as (
--    
++
  WITH RECURSIVE
          traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
--            
++
               values (perm_origin_uuid, starting_uuid, starting_perm,
                      should_traverse_owned(starting_uuid, starting_perm),
                      (perm_origin_uuid = starting_uuid or starting_uuid not like '_____-tpzed-_______________'))
@@@ -107,10 -107,10 +107,10 @@@ case (edges.edge_id = perm_edge_id
         can_manage permission granted by ownership.
    */
    additional_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
--    
++
  WITH RECURSIVE
          traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
--            
++
      select edges.tail_uuid as origin_uuid, edges.head_uuid as target_uuid, edges.val,
             should_traverse_owned(edges.head_uuid, edges.val),
             edges.head_uuid like '_____-j7d0g-_______________'
@@@ -3308,6 -3301,6 +3315,5 @@@ INSERT INTO "schema_migrations" (versio
  ('20230503224107'),
  ('20230815160000'),
  ('20230821000000'),
- ('20230922000000');
- 
- 
++('20230922000000'),
+ ('20231013000000');
 -
 -

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list