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

Add anchors #69

Merged
merged 5 commits into from
Apr 19, 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
120 changes: 40 additions & 80 deletions models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,33 @@
# The field `restriction_mode` is required for every field. It puts the field into a
# restriction group. See https://github.com/OpenSlides/OpenSlides/wiki/Restrictions-Overview

_meta: # meta field to hold repeatedly used values
languages: &languages
- en
- de
- it
- es
- ru
- cs
- fr
ballot_paper_selection: &ballot_paper_selection
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
poll_backends: &poll_backends
- long
- fast
onehundred_percent_bases: &onehundred_percent_bases
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"

organization:
id:
type: number
Expand Down Expand Up @@ -113,14 +140,7 @@ organization:
default_language:
type: string
restriction_mode: A
enum:
- en
- de
- it
- es
- ru
- cs
- fr
enum: *languages
required: true

# Saml settings
Expand Down Expand Up @@ -764,14 +784,7 @@ meeting:
language:
type: string
restriction_mode: A
enum:
- en
- de
- it
- es
- ru
- cs
- fr
enum: *languages
required: true
constant: true

Expand Down Expand Up @@ -1233,10 +1246,7 @@ meeting:
# Motion poll
motion_poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
default: CUSTOM_NUMBER
restriction_mode: B
motion_poll_ballot_paper_number:
Expand All @@ -1249,16 +1259,7 @@ meeting:
restriction_mode: B
motion_poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: YNA
restriction_mode: B
motion_poll_default_group_ids:
Expand All @@ -1267,9 +1268,7 @@ meeting:
restriction_mode: B
motion_poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B

Expand Down Expand Up @@ -1379,10 +1378,7 @@ meeting:
# Assignment polls
assignment_poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
default: CUSTOM_NUMBER
restriction_mode: B
assignment_poll_ballot_paper_number:
Expand Down Expand Up @@ -1411,16 +1407,7 @@ meeting:
restriction_mode: B
assignment_poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: valid
restriction_mode: B
assignment_poll_default_group_ids:
Expand All @@ -1429,19 +1416,14 @@ meeting:
restriction_mode: B
assignment_poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B

# Polls
poll_ballot_paper_selection:
type: string
enum:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
enum: *ballot_paper_selection
restriction_mode: B
poll_ballot_paper_number:
type: number
Expand All @@ -1458,16 +1440,7 @@ meeting:
restriction_mode: B
poll_default_onehundred_percent_base:
type: string
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: YNA
restriction_mode: B
poll_default_group_ids:
Expand All @@ -1476,9 +1449,7 @@ meeting:
restriction_mode: B
poll_default_backend:
type: string
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: B
poll_couple_countdown:
Expand Down Expand Up @@ -3266,9 +3237,7 @@ poll:
backend:
type: string
required: True
enum:
- long
- fast
enum: *poll_backends
default: fast
restriction_mode: A
is_pseudoanonymized:
Expand Down Expand Up @@ -3322,16 +3291,7 @@ poll:
onehundred_percent_base:
type: string
required: true
enum:
- "Y"
- "YN"
- "YNA"
- "N"
- "valid"
- "cast"
- "entitled"
- "entitled_present"
- "disabled"
enum: *onehundred_percent_bases
default: disabled
restriction_mode: A
votesvalid:
Expand Down