diff --git a/docs/example-data.json b/docs/example-data.json index c8f13f15c..82fd98161 100644 --- a/docs/example-data.json +++ b/docs/example-data.json @@ -331,8 +331,8 @@ "motion_workflow_ids": [1, 2], "motion_statute_paragraph_ids": [], "poll_ids": [1, 2, 3, 4, 5], - "option_ids": [1, 2, 3, 4, 5, 6, 7, 8], - "vote_ids": [1, 2, 3, 4, 5, 6, 7], + "option_ids": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], + "vote_ids": [1, 2, 3, 4, 5, 6, 7, 8, 9], "assignment_ids": [1, 2], "assignment_candidate_ids": [1, 2, 3, 4, 5], "personal_note_ids": [1], @@ -1907,9 +1907,6 @@ "global_abstain": false, "onehundred_percent_base": "YNA", "majority_method": "simple", - "amount_global_yes": null, - "amount_global_no": null, - "amount_global_abstain": null, "votesvalid": "2.000000", "votesinvalid": "9.000000", "votescast": "2.000000", @@ -1917,6 +1914,7 @@ "content_object_id": "motion/1", "option_ids": [1], + "global_option_id": 2, "voted_ids": [], "entitled_group_ids": [], "projection_ids": [], @@ -1938,16 +1936,14 @@ "global_abstain": false, "onehundred_percent_base": "YNA", "majority_method": "simple", - "amount_global_yes": null, - "amount_global_no": null, - "amount_global_abstain": null, "votesvalid": null, "votesinvalid": null, "votescast": null, "user_has_voted": false, "content_object_id": "motion/1", - "option_ids": [2], + "option_ids": [3], + "global_option_id": 4, "voted_ids": [], "entitled_group_ids": [], "projection_ids": [], @@ -1969,9 +1965,6 @@ "global_abstain": true, "onehundred_percent_base": "YNA", "majority_method": "simple", - "amount_global_yes": null, - "amount_global_no": null, - "amount_global_abstain": null, "votesvalid": null, "votesinvalid": null, "votescast": null, @@ -1980,7 +1973,8 @@ "content_object_id": "assignment/1", "voted_ids": [], "entitled_group_ids": [], - "option_ids": [3], + "option_ids": [5], + "global_option_id": 6, "projection_ids": [], "current_projector_ids": [], "meeting_id": 1 @@ -2000,9 +1994,6 @@ "global_abstain": true, "onehundred_percent_base": "Y", "majority_method": "simple", - "amount_global_yes": null, - "amount_global_no": "2.000000", - "amount_global_abstain": "1.000000", "votesvalid": "9.000000", "votesinvalid": "2.000000", "votescast": "16.000000", @@ -2011,7 +2002,8 @@ "content_object_id": "assignment/1", "voted_ids": [], "entitled_group_ids": [], - "option_ids": [4, 5, 6], + "option_ids": [7, 8, 9], + "global_option_id": 10, "projection_ids": [], "current_projector_ids": [], "meeting_id": 1 @@ -2031,9 +2023,6 @@ "global_abstain": false, "onehundred_percent_base": "valid", "majority_method": "simple", - "amount_global_yes": null, - "amount_global_no": "0.000000", - "amount_global_abstain": null, "votesvalid": "1.000000", "votesinvalid": "0.000000", "votescast": "1.000000", @@ -2042,7 +2031,8 @@ "content_object_id": "assignment/2", "voted_ids": [1], "entitled_group_ids": [2], - "option_ids": [7, 8], + "option_ids": [11, 12], + "global_option_id": 13, "projection_ids": [], "current_projector_ids": [], "meeting_id": 1 @@ -2053,21 +2043,35 @@ "yes": "2.000000", "no": "4.000000", "abstain": "1.000000", - "weight": 10000, + "weight": 1, "poll_id": 1, + "used_as_global_option_in_poll_id": null, "content_object_id": "motion/1", "vote_ids": [1, 2, 3], "meeting_id": 1 }, { - "id": 2, + "id": 1, "yes": "0.000000", "no": "0.000000", "abstain": "0.000000", - "weight": 10000, + "weight": 1, + + "poll_id": null, + "used_as_global_option_in_poll_id": 1, + "vote_ids": [0], + "meeting_id": 1 + }, + { + "id": 3, + "yes": "0.000000", + "no": "0.000000", + "abstain": "0.000000", + "weight": 1, "poll_id": 2, + "used_as_global_option_in_poll_id": null, "content_object_id": "motion/1", "vote_ids": [], "meeting_id": 1 @@ -2079,69 +2083,123 @@ "abstain": "0.000000", "weight": 1, + "poll_id": null, + "used_as_global_option_in_poll_id": 2, + "vote_ids": [], + "meeting_id": 1 + }, + { + "id": 5, + "yes": "0.000000", + "no": "0.000000", + "abstain": "0.000000", + "weight": 1, + "poll_id": 3, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/1", "vote_ids": [], "meeting_id": 1 }, { - "id": 4, + "id": 6, + "yes": "0.000000", + "no": "0.000000", + "abstain": "0.000000", + "weight": 1, + + "poll_id": null, + "used_as_global_option_in_poll_id": 3, + "vote_ids": [], + "meeting_id": 1 + }, + { + "id": 7, "yes": "3.000000", "no": "0.000000", "abstain": "0.000000", "weight": 1, "poll_id": 4, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/1", - "vote_ids": [1], + "vote_ids": [4], "meeting_id": 1 }, { - "id": 5, + "id": 8, "yes": "7.000000", "no": "0.000000", "abstain": "0.000000", "weight": 2, "poll_id": 4, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/3", - "vote_ids": [3], + "vote_ids": [5], "meeting_id": 1 }, { - "id": 6, + "id": 9, "yes": "2.000000", "no": "0.000000", "abstain": "0.000000", "weight": 3, "poll_id": 4, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/2", - "vote_ids": [2], + "vote_ids": [6], "meeting_id": 1 }, { - "id": 7, + "id": 10, + "yes": "0.000000", + "no": "2.000000", + "abstain": "1.000000", + "weight": 1, + + "poll_id": null, + "used_as_global_option_in_poll_id": 4, + "vote_ids": [7, 8], + "meeting_id": 1 + }, + { + "id": 11, "yes": "0.000000", "no": "0.000000", "abstain": "0.000000", "weight": 1, "poll_id": 5, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/3", "vote_ids": [], "meeting_id": 1 }, { - "id": 8, + "id": 12, "yes": "1.000000", "no": "0.000000", "abstain": "0.000000", "weight": 2, "poll_id": 5, + "used_as_global_option_in_poll_id": null, "content_object_id": "user/2", - "vote_ids": [4], + "vote_ids": [9], + "meeting_id": 1 + }, + { + "id": 13, + "yes": "0.000000", + "no": "0.000000", + "abstain": "0.000000", + "weight": 1, + + "poll_id": null, + "used_as_global_option_in_poll_id": 5, + "vote_ids": [], "meeting_id": 1 }], "vote": [ @@ -2182,37 +2240,57 @@ "user_id": null, "delegated_user_id": null, - "option_id": 4, + "option_id": 7, "meeting_id": 1 }, { "id": 5, "value": "Y", - "weight": "2.000000", + "weight": "7.000000", "user_id": null, "delegated_user_id": null, - "option_id": 6, + "option_id": 8, "meeting_id": 1 }, { "id": 6, "value": "Y", - "weight": "7.000000", + "weight": "2.000000", "user_id": null, "delegated_user_id": null, - "option_id": 5, + "option_id": 9, "meeting_id": 1 }, { "id": 7, + "value": "N", + "weight": "2.000000", + + "user_id": null, + "delegated_user_id": null, + "option_id": 10, + "meeting_id": 1 + }, + { + "id": 8, + "value": "A", + "weight": "1.000000", + + "user_id": null, + "delegated_user_id": null, + "option_id": 10, + "meeting_id": 1 + }, + { + "id": 9, "value": "Y", "weight": "1.000000", "user_id": 1, "delegated_user_id": 1, - "option_id": 8, + "option_id": 12, "meeting_id": 1 }], "assignment": [ diff --git a/docs/modellierung.drawio b/docs/modellierung.drawio index 283559931..697c1b54d 100644 --- a/docs/modellierung.drawio +++ b/docs/modellierung.drawio @@ -1 +1 @@ -7V1bd9pIEv41ftlz8EHdrdtjnMROJpuZ2XE2O8mLjwxt0EZIRBLG+NevZNQgdRcgQH2RNy+JdQGk6q+qv7p09QV+O3u6SYP59HMyptEFGo6fLvC7C4Qsx/GK/8ozq/UZz69OTNJwXN20PXEbPtPq5LA6uwjHNGvcmCdJlIfz5slREsd0lDfOBWmaLJu3PSRR81fnwYQKJ25HQSSe/U84zqfsvWyyvfCBhpNp9dMIY2d9ZRawu6tXyabBOFnWTuH3F/htmiT5+q/Z01saldJjgll/7nrH1c2TpTTO23zg99/Spfcze5Mt3cfRt29P9vxf0aD8QPk1j0G0qF65etp8xWSQJot4TMtvsS7w1XIa5vR2HozKq8ti1Itz03wWVZfHQTbd3Cs+YvXUjzTN6VPtVPXINzSZ0TxdFbdUV323El8FIMu118fL2nD41T3T2khgBqGggsBk891bIRV/VHI6QmaWt0dEw+K1kzSfJpMkDqJ/Jsm8ksV/aZ6vKoAHizxpio0+hfnf5ccvkV0dfqu+rfz73VP9YMUO4uJ11p+y2eE39oXlwfZjL0fbz43flLpRHMZJTNdnrsNSCi/Xdw5blizSEd0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+YzE3mjqhzEYxxQpNMRsRmHR7gEVjwXQ/m10n4BdPD7c+/kmeyhtGIUP/jiRKi6DaQ6KoI1ONJEoQ/wEoExnk9fapcsTlth134O6H0rI0IJl1XTP6wKAiiwWAbtKSTeIjFcisALKnmEZCW5+eFhYSEJbClhaQNVkH4jQTysOMdUcmNbbCGhLAUfCxKYY9HzFFCi86gNXeFM9IGMvuAuj1M9emGt1NIv9hTdc3c2iwB+u+OtBNPbDu5eO1dy1dEJkzUeUU9Bu9pAhZndliBlid7JhEvD6tgZId6PavQioVpolbWSo9EJv34ZYrQQ8YKO0f0hSvC47+KKXY9klI92Qnp6FpBkTvXNAad+L3ZRoumwkiBJ8RObqpVrzzMr/dS8lR/zYVvyaLrANV61O65mrgg1WklBDM7HOCu/03Ua/JK9wbPprFnKyLWjVDIgxdxYHpBsE9MinQ/KcOhrq750i5pOfblczuVTQGJUBWCTQdlLdMYEvqRTUAfG47ExlcsaAnrXHcWObNYaZ8luaGKFucguw5dzzPHuieBQSydljzDon1N4b7KrWWWKm7L3J+x1oNBrvLrkv7bBjVLOilU+KNvhMxG9RHHhjwAMX2RyGmeuQKTlXildOPOPeEjb3qjrYs0/oIN/206putHBsY99W+YV/hmffv85v788Xz9eOH+LH6ALIhf5TC1iYcd6JLVCcTbGFYCi17juAD7lvHeXvW00udMxF+Yt1D1ka82STqXfsTMpNm4AcX08RZZuWC8zQBiXFO9bXXpjZG7FUMZkamzrQYXfy7DCO8o2KtzNN9k6T62hE8jv+Dw== \ No newline at end of file diff --git a/docs/models.yml b/docs/models.yml index 88c4c84f1..f0091a6af 100644 --- a/docs/models.yml +++ b/docs/models.yml @@ -1547,14 +1547,9 @@ poll: - two_thirds - three_quarters - disabled - amount_global_yes: decimal(6) - amount_global_no: decimal(6) - amount_global_abstain: decimal(6) votesvalid: decimal(6) votesinvalid: decimal(6) votescast: decimal(6) - user_has_voted: boolean # This is user specific and set during restriction - user_has_voted_for_delegations: number[] # This is user specific and set during restriction content_object_id: # Note: must not be set - it is allowed to have standalone polls type: generic-relation @@ -1569,6 +1564,11 @@ poll: to: option/poll_id on_delete: CASCADE equal_fields: meeting_id + global_option_id: + type: relation + to: option/used_as_global_option_in_poll_id + on_delete: CASCADE + equal_fields: meeting_id voted_ids: type: relation-list to: @@ -1607,7 +1607,10 @@ option: type: relation to: poll/option_ids equal_fields: meeting_id - required: true + used_as_global_option_in_poll_id: + type: relation + to: poll/global_option_id + equal_fields: meeting_id vote_ids: type: relation-list to: vote/option_id