Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance new motion fields #26

Merged
merged 3 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 74 additions & 10 deletions models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,14 @@ meeting_user:
to: motion/supporter_meeting_user_ids
equal_fields: meeting_id
restriction_mode: A
editor_for_motion_ids:
motion_editor_ids:
type: relation-list
to: motion/editor_id
to: motion_editor/meeting_user_id
equal_fields: meeting_id
restriction_mode: A
working_group_speaker_for_motion_ids:
motion_working_group_speaker_ids:
type: relation-list
to: motion/working_group_speaker_id
to: motion_working_group_speaker/meeting_user_id
equal_fields: meeting_id
restriction_mode: A
motion_submitter_ids:
Expand Down Expand Up @@ -1581,6 +1581,16 @@ meeting:
to: motion_submitter/meeting_id
on_delete: CASCADE
restriction_mode: B
motion_editor_ids:
type: relation-list
to: motion_editor/meeting_id
on_delete: CASCADE
restriction_mode: B
motion_working_group_speaker_ids:
type: relation-list
to: motion_working_group_speaker/meeting_id
on_delete: CASCADE
restriction_mode: B
motion_change_recommendation_ids:
type: relation-list
to: motion_change_recommendation/meeting_id
Expand Down Expand Up @@ -2575,14 +2585,14 @@ motion:
to: meeting_user/supported_motion_ids
equal_fields: meeting_id
restriction_mode: C
editor_id:
type: relation
to: meeting_user/editor_for_motion_ids
editor_ids:
type: relation-list
to: motion_editor/motion_id
equal_fields: meeting_id
restriction_mode: B
working_group_speaker_id:
type: relation
to: meeting_user/working_group_speaker_for_motion_ids
working_group_speaker_ids:
type: relation-list
to: motion_working_group_speaker/motion_id
equal_fields: meeting_id
restriction_mode: B
poll_ids:
Expand Down Expand Up @@ -2684,6 +2694,60 @@ motion_submitter:
restriction_mode: A
constant: true

motion_editor:
id:
type: number
restriction_mode: A
constant: true
weight:
type: number
restriction_mode: A
meeting_user_id:
type: relation
to: meeting_user/motion_editor_ids
restriction_mode: A
required: true
motion_id:
type: relation
to: motion/editor_ids
equal_fields: meeting_id
restriction_mode: A
required: true
constant: true
meeting_id:
type: relation
to: meeting/motion_editor_ids
required: true
restriction_mode: A
constant: true

motion_working_group_speaker:
id:
type: number
restriction_mode: A
constant: true
weight:
type: number
restriction_mode: A
meeting_user_id:
type: relation
to: meeting_user/motion_working_group_speaker_ids
restriction_mode: A
required: true
motion_id:
type: relation
to: motion/working_group_speaker_ids
equal_fields: meeting_id
restriction_mode: A
required: true
constant: true
meeting_id:
type: relation
to: meeting/motion_working_group_speaker_ids
required: true
restriction_mode: A
constant: true

motion_comment:
id:
type: number
Expand Down