Skip to content

Commit 4585849

Browse files
committed
CA-34933: link sessions and tasks in the datamodel in order to know whether a session is used.
Signed-off-by: Thomas Gazagnaire <[email protected]>
1 parent 6644426 commit 4585849

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocaml/idl/datamodel.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,7 @@ let session =
27942794
field ~in_product_since:rel_george ~qualifier:DynamicRO ~default_value:(Some(VDateTime(Date.of_float 0.))) ~ty:DateTime "validation_time" "time when session was last validated";
27952795
field ~in_product_since:rel_george ~qualifier:DynamicRO ~default_value:(Some(VString(""))) ~ty:String "auth_user_sid" "the subject identifier of the user that was externally authenticated. If a session instance has is_local_superuser set, then the value of this field is undefined.";
27962796
field ~in_product_since:rel_midnight_ride ~qualifier:StaticRO ~default_value:(Some(VSet [])) ~ty:(Set(String)) "rbac_permissions" "list with all RBAC permissions for this session";
2797+
field ~in_product_since:rel_midnight_ride ~qualifier:DynamicRO ~ty:(Set(Ref _task)) "tasks" "list of tasks created using the current session";
27972798
]
27982799
()
27992800

@@ -5853,6 +5854,7 @@ let all_relations =
58535854

58545855
(* subtasks hierarchy *)
58555856
(_task, "subtask_of"), (_task, "subtasks");
5857+
(_task, "session"), (_session, "tasks");
58565858

58575859
(_pif, "bond_slave_of"), (_bond, "slaves");
58585860
(_bond, "master"), (_pif, "bond_master_of");

0 commit comments

Comments
 (0)