@@ -37,6 +37,8 @@ def test_api_documents_children_list_anonymous_public_standalone(
37
37
"abilities" : child1 .get_abilities (AnonymousUser ()),
38
38
"ancestors_link_reach" : "public" ,
39
39
"ancestors_link_role" : document .link_role ,
40
+ "computed_link_reach" : "public" ,
41
+ "computed_link_role" : child1 .computed_link_role ,
40
42
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
41
43
"creator" : str (child1 .creator .id ),
42
44
"depth" : 2 ,
@@ -57,6 +59,8 @@ def test_api_documents_children_list_anonymous_public_standalone(
57
59
"abilities" : child2 .get_abilities (AnonymousUser ()),
58
60
"ancestors_link_reach" : "public" ,
59
61
"ancestors_link_role" : document .link_role ,
62
+ "computed_link_reach" : "public" ,
63
+ "computed_link_role" : child2 .computed_link_role ,
60
64
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
61
65
"creator" : str (child2 .creator .id ),
62
66
"depth" : 2 ,
@@ -107,6 +111,8 @@ def test_api_documents_children_list_anonymous_public_parent(django_assert_num_q
107
111
"abilities" : child1 .get_abilities (AnonymousUser ()),
108
112
"ancestors_link_reach" : child1 .ancestors_link_reach ,
109
113
"ancestors_link_role" : child1 .ancestors_link_role ,
114
+ "computed_link_reach" : child1 .computed_link_reach ,
115
+ "computed_link_role" : child1 .computed_link_role ,
110
116
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
111
117
"creator" : str (child1 .creator .id ),
112
118
"depth" : 4 ,
@@ -127,6 +133,8 @@ def test_api_documents_children_list_anonymous_public_parent(django_assert_num_q
127
133
"abilities" : child2 .get_abilities (AnonymousUser ()),
128
134
"ancestors_link_reach" : child2 .ancestors_link_reach ,
129
135
"ancestors_link_role" : child2 .ancestors_link_role ,
136
+ "computed_link_reach" : child2 .computed_link_reach ,
137
+ "computed_link_role" : child2 .computed_link_role ,
130
138
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
131
139
"creator" : str (child2 .creator .id ),
132
140
"depth" : 4 ,
@@ -196,6 +204,8 @@ def test_api_documents_children_list_authenticated_unrelated_public_or_authentic
196
204
"abilities" : child1 .get_abilities (user ),
197
205
"ancestors_link_reach" : reach ,
198
206
"ancestors_link_role" : document .link_role ,
207
+ "computed_link_reach" : child1 .computed_link_reach ,
208
+ "computed_link_role" : child1 .computed_link_role ,
199
209
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
200
210
"creator" : str (child1 .creator .id ),
201
211
"depth" : 2 ,
@@ -216,6 +226,8 @@ def test_api_documents_children_list_authenticated_unrelated_public_or_authentic
216
226
"abilities" : child2 .get_abilities (user ),
217
227
"ancestors_link_reach" : reach ,
218
228
"ancestors_link_role" : document .link_role ,
229
+ "computed_link_reach" : child2 .computed_link_reach ,
230
+ "computed_link_role" : child2 .computed_link_role ,
219
231
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
220
232
"creator" : str (child2 .creator .id ),
221
233
"depth" : 2 ,
@@ -271,6 +283,8 @@ def test_api_documents_children_list_authenticated_public_or_authenticated_paren
271
283
"abilities" : child1 .get_abilities (user ),
272
284
"ancestors_link_reach" : child1 .ancestors_link_reach ,
273
285
"ancestors_link_role" : child1 .ancestors_link_role ,
286
+ "computed_link_reach" : child1 .computed_link_reach ,
287
+ "computed_link_role" : child1 .computed_link_role ,
274
288
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
275
289
"creator" : str (child1 .creator .id ),
276
290
"depth" : 4 ,
@@ -291,6 +305,8 @@ def test_api_documents_children_list_authenticated_public_or_authenticated_paren
291
305
"abilities" : child2 .get_abilities (user ),
292
306
"ancestors_link_reach" : child2 .ancestors_link_reach ,
293
307
"ancestors_link_role" : child2 .ancestors_link_role ,
308
+ "computed_link_reach" : child2 .computed_link_reach ,
309
+ "computed_link_role" : child2 .computed_link_role ,
294
310
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
295
311
"creator" : str (child2 .creator .id ),
296
312
"depth" : 4 ,
@@ -373,6 +389,8 @@ def test_api_documents_children_list_authenticated_related_direct(
373
389
"abilities" : child1 .get_abilities (user ),
374
390
"ancestors_link_reach" : document .link_reach ,
375
391
"ancestors_link_role" : link_role ,
392
+ "computed_link_reach" : child1 .computed_link_reach ,
393
+ "computed_link_role" : child1 .computed_link_role ,
376
394
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
377
395
"creator" : str (child1 .creator .id ),
378
396
"depth" : 2 ,
@@ -393,6 +411,8 @@ def test_api_documents_children_list_authenticated_related_direct(
393
411
"abilities" : child2 .get_abilities (user ),
394
412
"ancestors_link_reach" : document .link_reach ,
395
413
"ancestors_link_role" : link_role ,
414
+ "computed_link_reach" : child2 .computed_link_reach ,
415
+ "computed_link_role" : child2 .computed_link_role ,
396
416
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
397
417
"creator" : str (child2 .creator .id ),
398
418
"depth" : 2 ,
@@ -451,6 +471,8 @@ def test_api_documents_children_list_authenticated_related_parent(
451
471
"abilities" : child1 .get_abilities (user ),
452
472
"ancestors_link_reach" : "restricted" ,
453
473
"ancestors_link_role" : None ,
474
+ "computed_link_reach" : child1 .computed_link_reach ,
475
+ "computed_link_role" : child1 .computed_link_role ,
454
476
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
455
477
"creator" : str (child1 .creator .id ),
456
478
"depth" : 4 ,
@@ -471,6 +493,8 @@ def test_api_documents_children_list_authenticated_related_parent(
471
493
"abilities" : child2 .get_abilities (user ),
472
494
"ancestors_link_reach" : "restricted" ,
473
495
"ancestors_link_role" : None ,
496
+ "computed_link_reach" : child2 .computed_link_reach ,
497
+ "computed_link_role" : child2 .computed_link_role ,
474
498
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
475
499
"creator" : str (child2 .creator .id ),
476
500
"depth" : 4 ,
@@ -581,6 +605,8 @@ def test_api_documents_children_list_authenticated_related_team_members(
581
605
"abilities" : child1 .get_abilities (user ),
582
606
"ancestors_link_reach" : "restricted" ,
583
607
"ancestors_link_role" : None ,
608
+ "computed_link_reach" : child1 .computed_link_reach ,
609
+ "computed_link_role" : child1 .computed_link_role ,
584
610
"created_at" : child1 .created_at .isoformat ().replace ("+00:00" , "Z" ),
585
611
"creator" : str (child1 .creator .id ),
586
612
"depth" : 2 ,
@@ -601,6 +627,8 @@ def test_api_documents_children_list_authenticated_related_team_members(
601
627
"abilities" : child2 .get_abilities (user ),
602
628
"ancestors_link_reach" : "restricted" ,
603
629
"ancestors_link_role" : None ,
630
+ "computed_link_reach" : child2 .computed_link_reach ,
631
+ "computed_link_role" : child2 .computed_link_role ,
604
632
"created_at" : child2 .created_at .isoformat ().replace ("+00:00" , "Z" ),
605
633
"creator" : str (child2 .creator .id ),
606
634
"depth" : 2 ,
0 commit comments