Wiki source code of Tree (activity, evaluation)

Last modified by Josef Vencl on 2020/10/15 09:36

Show last authors
1 {{toc/}}
2
3 = General =
4
5 [[image:1568809353819-225.png]]
6
7 1. //everyone see, permission are on buttons in pop-up (see //**Rights pop-up**// lower)//
8 1. UPDATE_ACTIVITY (on hovered tree item if it is an activity) or
9 UPDATE_ACTIVITY_SET (a folder)
10 1. (DELETE_ACTIVITY (on hovered activityitem and parent too)
11 DELETE_ACTIVITY_SET (on hovered folder item and parent too))
12 (//Block and Complex Block have more options, see// **Block and Comlex Block specifics**// lower.
13 related asanaId: //1140430424032189)
14 1. (% class="mark" %)not resolved in backend yet (AsanaId: 1140430424032185)
15 frontend offers all possible destinations(%%)
16 needed permissions to show this:
17 (UPDATE_ACTIVITY (on hovered activity item) or
18 UPDATE_ACTIVITY_SET (on hovered folder item) **and **one of following
19 (DELETE_ACTIVITY_SET (if the parent is folder)
20 DELETE_ACTIVITY (parent is block or complex block))
21 //note: for the button we solve only starting permissions. Perms on target should be solved by side-panel filter.//
22 //related asanaId: //1140430424032189
23 1. same as 2.
24 1. //same as 4.//
25 1. //nothing (solved inside)//
26 1. //nothing//
27 1. menu, items inside as result of n. 4-6
28
29 = [[Block and Complex Block specifics>>||anchor="block_spec"]] =
30
31 [[image:1568805526145-849.png]]
32
33 1. CREATE_ACTIVITY (on block)
34 //There is unable to create activity_set comparing to folder.//
35 1. //nothing//
36 1. UPDATE_ACTIVITY
37 1. DELETE_ACTIVITY
38 1. //same as nums. 2-4//
39 1. UPDATE_ACTIVITY
40 1. CREATE_ACTIVITY (on selected block)
41
42 = Folder (Activity Folder and Evaluation Folder) specifics =
43
44 [[image:1568812097154-280.png]]
45
46 1. CREATE_FOLDER_ACTIVITY_SET (on hovered tree item)
47 1. CREATE_ACTIVITY (on hovered tree item)
48 1. //same as in general//
49 1. //same as in general//
50 1. //same as in general//
51 1. //same as num 3-5//
52 1. CREATE_FOLDER_ACTIVITY_SET **or **CREATE_ACTIVITY (on active folder)
53 1. //same as in general n. 4//
54 1. //same as in general n. 5//
55 1. //same as in general n. 6//
56 1. //nothing//
57
58 = Rights pop-up =
59
60 [[image:1568813443923-737.png]]
61
62 All the actions are on given folder. Other objects are in brackets.
63
64 1. CREATE_USER_ACTIVITY (if the active item is an activity)
65 CREATE_USER_ACTIVITY_SET (users are filtered by side-panel)
66 1. EDIT_USET_ACTIVITY
67 EDIT_USER_ACTIVITY_SET (on corresponding user, available roles are filtered)
68 1. CREATE_USERGROUP_ACTIVITY or
69 CREATE_USERGROUP_ACTIVITY_SET  (groups are filtered by side-panel)
70 1. EDIT_USERGROUP_ACTIVITY or
71 EDIT_USERGROUP_ACTIVITY_SET (on corresponding group, available roles are filtered)
72 1. UPDATE_USERGROUP_ACTIVITY or
73 UPDATE_USER_ACTIVITY_SET
74 DELETE_USER_ACTIVITY or
75 DELETE_USER_ACTIVITY_SET if the last role is to be deleted
76 1. UPDATE_USERGROUP_ACTIVITY_SET, DELETE_USERGROUP_ACTIVITY_SET //in same way as n. 5//
77
78 to test: Can admin unlink from a user such role which is out of the admin's rights? AsanaId: 1140430424032186
79
80 note: "Hotovo" buttons should alternate with "Cancel" for viewing users. AsanaId: 1140430424032188
81
82 = Sidebar (move item) =
83
84 [[image:1569014722851-663.png]]
85
86 1,2. UPDATE_FOLDER_ACTIVITY_SET (on possible target folders)
87 AsanaId: 1140949896544531