[arvados] updated: 2.5.0-47-gdaab28c11

git repository hosting git at public.arvados.org
Thu Jan 26 14:17:36 UTC 2023


Summary of changes:
 doc/sdk/python/cookbook.html.textile.liquid | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

       via  daab28c11f17210a29b2cd3cd2b0cd4797d8e013 (commit)
       via  b5f762fb5f8495a75a2d94f90a8ef5364161584e (commit)
       via  80215c92fabf020555726381a223e06a79f6a564 (commit)
      from  dfa06386290a17fb768c359de12719b170f02a72 (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 daab28c11f17210a29b2cd3cd2b0cd4797d8e013
Author: Brett Smith <brett.smith at curii.com>
Date:   Thu Jan 26 09:17:19 2023 -0500

    19792: Correct filter for revoking permissions example
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index 4c38a4988..e8512a3a7 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -218,7 +218,7 @@ for permission in arvados.util.keyset_list_all(
         ['link_class', '=', 'permission'],
         # Add other filters as desired.
         ['name', '=', 'can_login'],
-        ['head_uuid', '=', 'zzzzz-tpzed-12345abcde67890'],
+        ['tail_uuid', '=', 'zzzzz-tpzed-12345abcde67890'],
         ...,
     ],
 ):

commit b5f762fb5f8495a75a2d94f90a8ef5364161584e
Author: Brett Smith <brett.smith at curii.com>
Date:   Thu Jan 26 09:16:53 2023 -0500

    19792: Simplify example for modifying permissions
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index 598bdceeb..4c38a4988 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -176,7 +176,7 @@ permission = arv_client.links().create(
 
 h3(#modify-permission). Modify permission on an object
 
-To modify an existing permission—for example, to change its access level—find the existing link object for the permission, then update it with the new values you want. This example shows making all permissions on a specific collection read-only. Adjust the filters appropriately to find the permission(s) you want to modify.
+To modify an existing permission—for example, to change its access level—find the existing link object for the permission, then update it with the new values you want. This example shows changing all read-write permissions on a specific collection to read-only. Adjust the filters appropriately to find the permission(s) you want to modify.
 
 {% codeblock as python %}
 import arvados.util
@@ -187,11 +187,8 @@ for permission in arvados.util.keyset_list_all(
         # You should use this filter for all permission searches,
         # to exclude other kinds of links.
         ['link_class', '=', 'permission'],
-        # In this example, we do not want to *increase* the access level of
-        # no-permission links, and updating read-permission links would be a
-        # noop. Exclude both here.
-        ['name', 'not in', ['none', 'can_read']],
         # Add other filters as desired.
+        ['name', '=', 'can_write'],
         ['head_uuid', '=', 'zzzzz-4zz18-12345abcde67890'],
         ...,
     ],

commit 80215c92fabf020555726381a223e06a79f6a564
Author: Brett Smith <brett.smith at curii.com>
Date:   Thu Jan 26 09:16:40 2023 -0500

    19792: Add missing words
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index b449766df..598bdceeb 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -145,7 +145,7 @@ for item in arvados.util.keyset_list_all(
 
 h2(#working-with-permissions). Working with permissions
 
-In brief, a permission is represented in Arvados with the following values:
+In brief, a permission is represented in Arvados as a link object with the following values:
 
 * @link_class@ is @"permission"@.
 * @name@ is one of @"none"@, @"can_read"@, @"can_write"@, @"can_manage"@, or @"can_login"@.

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list