Split forwarding_tree_motion_ids into two fields

This commit is contained in:
Joshua Sangmeister 2021-07-05 14:52:29 +02:00
parent 610a10712d
commit 7f8a00ea4e
2 changed files with 10 additions and 5 deletions

View File

@ -1370,7 +1370,8 @@
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"all_origin_ids": [],
"all_derived_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"recommendation_extension_reference_ids": [],
@ -1415,7 +1416,8 @@
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"all_origin_ids": [],
"all_derived_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"recommendation_extension_reference_ids": [],
@ -1460,7 +1462,8 @@
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"all_origin_ids": [],
"all_derived_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"recommendation_extension_reference_ids": [],
@ -1507,7 +1510,8 @@
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"all_origin_ids": [],
"all_derived_motion_ids": [],
"state_id": 6,
"recommendation_id": null,
"category_id": null,

View File

@ -1309,7 +1309,8 @@ motion:
derived_motion_ids:
type: relation-list
to: motion/origin_id # Note: The related motions may not be in the same meeting
forwarding_tree_motion_ids: number[] # Calculated: All children (derived_motion_ids), grand children, ... and all parents (origin_id).
all_origin_ids: number[] # Calculated: All parents (origin_id), grandparents, etc. of this motion.
all_derived_motion_ids: number[] # Calculated: All children (derived_motion_ids), grandchildren, etc. of this motion.
state_id:
type: relation
to: motion_state/motion_ids