Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
69e5fc2
Change models for new vote service
ostcar Jan 16, 2026
cea9668
Generate schema
ostcar Jan 16, 2026
7109ee5
Merge remote-tracking branch 'upstream/feature/relational-db' into fe…
ostcar Jan 17, 2026
24e47fc
Added config for new poll method scottish stv. (#371)
normanjaeckel Jan 17, 2026
0365ee0
Add generated relational schema after inserting stv scottish config. …
normanjaeckel Jan 17, 2026
0ff0ea0
Merge remote-tracking branch 'origin/feature/relational-db' into HEAD
bastianjoel Feb 16, 2026
77b136d
Make poll config_id non required (#395)
bastianjoel Feb 23, 2026
9b2534c
Make poll config required again (#403)
ostcar Mar 1, 2026
95f672c
Merge 'main' into feature/vote
vkrasnovyd Mar 2, 2026
815c4aa
Merge branch 'main' into HEAD
bastianjoel Mar 17, 2026
3c347a4
Add `onehundred_percent_base` fields to configs (#408)
bastianjoel Mar 20, 2026
9892984
Move poll options from config to poll (#419)
ostcar Mar 20, 2026
9661cf9
Revert formatting changes (#485)
bastianjoel Apr 23, 2026
533e443
Merge commit 'dbf8a0e92a600339b15b6eef2c3f6d67a511ec7c' into feature/…
bastianjoel Apr 23, 2026
6b8e508
Merge branch 'main' into feature/vote
bastianjoel Apr 23, 2026
30ec47f
Remove meeting id from ballot (#500)
bastianjoel May 5, 2026
4a2ea7e
Merge branch 'main' into feature/vote
bastianjoel May 7, 2026
76cd8f6
Remove projection content (#504)
bastianjoel May 7, 2026
a1d28df
[Vote] Models changes for new Vote-Service (#506)
ostcar May 9, 2026
7e5dc21
Merge remote-tracking branch 'upstream/main' into feature/vote
ostcar May 9, 2026
9273b58
Mark collections not managed by the backend (#509)
bastianjoel May 11, 2026
0ffd963
Update permissions (#510)
vkrasnovyd May 11, 2026
d9cc010
Merge branch 'main' into merge-main
vkrasnovyd Jun 1, 2026
0f01e57
Add poll to history entry
ostcar Jun 11, 2026
221c498
Merge remote-tracking branch 'refs/remotes/upstream/feature/vote' int…
ostcar Jun 11, 2026
403d161
Add field for max_yes_amount (#538)
ostcar Jun 25, 2026
341cb6d
Improve models diff (#527)
peb-adr Jun 2, 2026
a327bde
Bump pytest from 9.0.3 to 9.1.1 in /dev (#537)
dependabot[bot] Jun 25, 2026
cab8db6
Bump debugpy (#530)
dependabot[bot] Jun 25, 2026
9e3f7f6
Bump sqlfluff (#531)
dependabot[bot] Jun 25, 2026
e84e062
Bump actions/checkout from 6 to 7 (#536)
dependabot[bot] Jun 25, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
working-directory: dev/

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
name: Create or update PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
path: current-meta-repository
ref: ${{ github.ref_name }}

- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
repository: ${{ github.repository_owner }}/${{ inputs.repository }}
path: service-repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pick-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout main
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
ref: main
fetch-depth: 2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-sql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Install psql
run: |
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Each collection-file has the following format:
for which UNIQUE constraints will be generated in the database.
Difference: for `unique_together` the uniqueness check is skipped if
value in at least one of the fields is NULL.
- `managed_by` can be set to the service the collection is managed by. Default to
`backend`. Available options are `backend` or `vote`.
- Length of names:
- field name: Their length is limited to 25 characters. There are still some
fields with longer names, that has to be shortened
Expand Down
47 changes: 35 additions & 12 deletions collection-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,42 @@ enum_definitions:
- NUMBER_OF_DELEGATES
- NUMBER_OF_ALL_PARTICIPANTS
- CUSTOM_NUMBER
poll_backends:
- long
- fast
onehundred_percent_bases:
- Y
- YN
- YNA
- N
- valid
- cast
- entitled
- entitled_present
- disabled
- no_general
- yes_no
- valid
- cast
- entitled
- entitled_present
- disabled
approval_onehundred_percent_bases:
- yes_no
- valid
- cast
- entitled
- entitled_present
- disabled
rating_approval_onehundred_percent_bases:
- yes_no
- valid
- cast
- entitled
- entitled_present
- disabled
rating_score_onehundred_percent_bases:
- yes_no
- valid
- cast
- entitled
- entitled_present
- disabled
selection_onehundred_percent_bases:
- no_general
- valid
- cast
- entitled
- entitled_present
- disabled
id_field: &id_field
type: number
restriction_mode: A
Expand Down
5 changes: 4 additions & 1 deletion collections/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ fields:
items:
enum:
- agenda_item.can_manage
- agenda_item.can_manage_polls
- agenda_item.can_see_polls
- agenda_item.can_see
- agenda_item.can_see_internal
- assignment.can_manage
- assignment.can_manage_polls
- assignment.can_nominate_other
- assignment.can_nominate_self
- assignment.can_see_polls
- assignment.can_see
- chat.can_manage
- list_of_speakers.can_be_speaker
Expand All @@ -47,11 +50,11 @@ fields:
- motion.can_manage
- motion.can_manage_metadata
- motion.can_manage_polls
- motion.can_see_polls
- motion.can_see
- motion.can_see_internal
- motion.can_see_origin
- motion.can_support
- poll.can_manage
- poll.can_see_progress
- projector.can_manage
- projector.can_see
Expand Down
14 changes: 8 additions & 6 deletions collections/history_entry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ fields:
type: generic-relation
to:
collections:
- user
- motion
- assignment
- assignment
- motion
- poll
- user
field: history_entry_ids
restriction_mode: A
reference:
- user
- motion
- assignment
- assignment
- motion
- poll
- user
position_id:
type: relation
to: history_position/entry_ids
Expand Down
71 changes: 21 additions & 50 deletions collections/meeting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -544,26 +544,21 @@ fields:
restriction_mode: B
motion_poll_default_type:
type: string
default: pseudoanonymous
default: secret
restriction_mode: B
motion_poll_default_method:
type: string
default: YNA
motion_poll_default_allow_abstain:
type: boolean
default: true
restriction_mode: B
motion_poll_default_onehundred_percent_base:
type: string
enum: onehundred_percent_bases
default: YNA
enum: approval_onehundred_percent_bases
default: valid
restriction_mode: B
motion_poll_default_group_ids:
type: relation-list
to: group/used_as_motion_poll_default_id
restriction_mode: B
motion_poll_default_backend:
type: string
enum: poll_backends
default: fast
restriction_mode: B
motion_poll_projection_name_order_first:
type: string
enum:
Expand All @@ -578,18 +573,6 @@ fields:
required: true
restriction_mode: B

# poll list election
poll_candidate_list_ids:
type: relation-list
to: poll_candidate_list/meeting_id
reference: poll_candidate_list
restriction_mode: B
poll_candidate_ids:
type: relation-list
to: poll_candidate/meeting_id
reference: poll_candidate
restriction_mode: B

# Users
meeting_user_ids:
type: relation-list
Expand Down Expand Up @@ -710,11 +693,11 @@ fields:
restriction_mode: B
assignment_poll_default_type:
type: string
default: pseudoanonymous
default: secret
restriction_mode: B
assignment_poll_default_method:
type: string
default: Y
default: selection
restriction_mode: B
assignment_poll_default_onehundred_percent_base:
type: string
Expand All @@ -725,11 +708,6 @@ fields:
type: relation-list
to: group/used_as_assignment_poll_default_id
restriction_mode: B
assignment_poll_default_backend:
type: string
enum: poll_backends
default: fast
restriction_mode: B

# Polls
poll_ballot_paper_selection:
Expand All @@ -751,22 +729,27 @@ fields:
restriction_mode: B
poll_default_onehundred_percent_base:
type: string
enum: onehundred_percent_bases
default: YNA
enum: selection_onehundred_percent_bases
default: valid
restriction_mode: B
poll_default_group_ids:
type: relation-list
to: group/used_as_poll_default_id
restriction_mode: B
poll_default_backend:
type: string
enum: poll_backends
default: fast
restriction_mode: B
poll_default_live_voting_enabled:
type: boolean
default: false
description: Defines default 'poll.live_voting_enabled' option suggested to user. Is not used in the validations.
description: Defines default 'poll.published' before finished option suggested to user. Is not used in the validations.
restriction_mode: B
poll_default_allow_invalid:
type: boolean
default: false
description: Defines defaut `poll.allow_invalid` option suggested to user.
restriction_mode: B
poll_default_allow_vote_split:
type: boolean
default: false
description: Defines defaut `poll.allow_vote_split` option suggested to user.
restriction_mode: B
poll_couple_countdown:
type: boolean
Expand Down Expand Up @@ -921,18 +904,6 @@ fields:
reference: poll
on_delete: CASCADE
restriction_mode: B
option_ids:
type: relation-list
to: option/meeting_id
reference: option
on_delete: CASCADE
restriction_mode: B
vote_ids:
type: relation-list
to: vote/meeting_id
reference: vote
on_delete: CASCADE
restriction_mode: B
assignment_ids:
type: relation-list
to: assignment/meeting_id
Expand Down
21 changes: 19 additions & 2 deletions collections/meeting_user.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
unique_together:
- meeting_id, user_id
- meeting_id, user_id

fields:
id:
Expand Down Expand Up @@ -87,6 +87,24 @@ fields:
to: meeting_user/vote_delegated_to_id
equal_fields: meeting_id
restriction_mode: A
poll_voted_ids:
type: relation-list
to: poll/voted_ids
restriction_mode: A
poll_option_ids:
type: relation-list
to: poll_option/meeting_user_id
reference: poll_option
required: false
restriction_mode: A
acting_ballot_ids:
type: relation-list
to: poll_ballot/acting_meeting_user_id
restriction_mode: A
represented_ballot_ids:
type: relation-list
to: poll_ballot/represented_meeting_user_id
restriction_mode: A
chat_message_ids:
type: relation-list
to: chat_message/meeting_user_id
Expand All @@ -103,4 +121,3 @@ fields:
equal_fields: meeting_id
restriction_mode: A
to: structure_level/meeting_user_ids

7 changes: 0 additions & 7 deletions collections/motion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,6 @@ fields:
on_delete: CASCADE
equal_fields: meeting_id
restriction_mode: C
option_ids:
type: relation-list
to: option/content_object_id
reference: option
on_delete: CASCADE
equal_fields: meeting_id
restriction_mode: C
change_recommendation_ids:
type: relation-list
to: motion_change_recommendation/motion_id
Expand Down
Loading