Merge pull request #5993 from jsangmeister/voting-changes
Adapt models.yml to new voting changes
This commit is contained in:
commit
bb1ac2fc96
@ -1948,6 +1948,7 @@
|
|||||||
"title": "1",
|
"title": "1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "analog",
|
"type": "analog",
|
||||||
|
"is_pseudoanonymized": false,
|
||||||
"pollmethod": "YNA",
|
"pollmethod": "YNA",
|
||||||
"state": "finished",
|
"state": "finished",
|
||||||
"min_votes_amount": 1,
|
"min_votes_amount": 1,
|
||||||
@ -1960,6 +1961,7 @@
|
|||||||
"votesvalid": "2.000000",
|
"votesvalid": "2.000000",
|
||||||
"votesinvalid": "9.000000",
|
"votesinvalid": "9.000000",
|
||||||
"votescast": "2.000000",
|
"votescast": "2.000000",
|
||||||
|
"entitled_users_at_stop": null,
|
||||||
|
|
||||||
"content_object_id": "motion/1",
|
"content_object_id": "motion/1",
|
||||||
"option_ids": [1],
|
"option_ids": [1],
|
||||||
@ -1974,6 +1976,7 @@
|
|||||||
"title": "2",
|
"title": "2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "analog",
|
"type": "analog",
|
||||||
|
"is_pseudoanonymized": false,
|
||||||
"pollmethod": "YNA",
|
"pollmethod": "YNA",
|
||||||
"state": "created",
|
"state": "created",
|
||||||
"min_votes_amount": 1,
|
"min_votes_amount": 1,
|
||||||
@ -1986,6 +1989,7 @@
|
|||||||
"votesvalid": null,
|
"votesvalid": null,
|
||||||
"votesinvalid": null,
|
"votesinvalid": null,
|
||||||
"votescast": null,
|
"votescast": null,
|
||||||
|
"entitled_users_at_stop": null,
|
||||||
|
|
||||||
"content_object_id": "motion/1",
|
"content_object_id": "motion/1",
|
||||||
"option_ids": [3],
|
"option_ids": [3],
|
||||||
@ -2000,6 +2004,7 @@
|
|||||||
"title": "1",
|
"title": "1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "analog",
|
"type": "analog",
|
||||||
|
"is_pseudoanonymized": false,
|
||||||
"pollmethod": "YNA",
|
"pollmethod": "YNA",
|
||||||
"state": "created",
|
"state": "created",
|
||||||
"min_votes_amount": 1,
|
"min_votes_amount": 1,
|
||||||
@ -2012,6 +2017,7 @@
|
|||||||
"votesvalid": null,
|
"votesvalid": null,
|
||||||
"votesinvalid": null,
|
"votesinvalid": null,
|
||||||
"votescast": null,
|
"votescast": null,
|
||||||
|
"entitled_users_at_stop": null,
|
||||||
|
|
||||||
"content_object_id": "assignment/1",
|
"content_object_id": "assignment/1",
|
||||||
"voted_ids": [],
|
"voted_ids": [],
|
||||||
@ -2026,6 +2032,7 @@
|
|||||||
"title": "2",
|
"title": "2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "analog",
|
"type": "analog",
|
||||||
|
"is_pseudoanonymized": false,
|
||||||
"pollmethod": "Y",
|
"pollmethod": "Y",
|
||||||
"state": "finished",
|
"state": "finished",
|
||||||
"min_votes_amount": 1,
|
"min_votes_amount": 1,
|
||||||
@ -2038,6 +2045,7 @@
|
|||||||
"votesvalid": "9.000000",
|
"votesvalid": "9.000000",
|
||||||
"votesinvalid": "2.000000",
|
"votesinvalid": "2.000000",
|
||||||
"votescast": "16.000000",
|
"votescast": "16.000000",
|
||||||
|
"entitled_users_at_stop": null,
|
||||||
|
|
||||||
"content_object_id": "assignment/1",
|
"content_object_id": "assignment/1",
|
||||||
"voted_ids": [],
|
"voted_ids": [],
|
||||||
@ -2052,6 +2060,7 @@
|
|||||||
"title": "Wahlgang",
|
"title": "Wahlgang",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "named",
|
"type": "named",
|
||||||
|
"is_pseudoanonymized": false,
|
||||||
"pollmethod": "Y",
|
"pollmethod": "Y",
|
||||||
"state": "finished",
|
"state": "finished",
|
||||||
"min_votes_amount": 1,
|
"min_votes_amount": 1,
|
||||||
@ -2064,6 +2073,7 @@
|
|||||||
"votesvalid": "1.000000",
|
"votesvalid": "1.000000",
|
||||||
"votesinvalid": "0.000000",
|
"votesinvalid": "0.000000",
|
||||||
"votescast": "1.000000",
|
"votescast": "1.000000",
|
||||||
|
"entitled_users_at_stop": null,
|
||||||
|
|
||||||
"content_object_id": "assignment/2",
|
"content_object_id": "assignment/2",
|
||||||
"voted_ids": [1],
|
"voted_ids": [1],
|
||||||
@ -2261,6 +2271,7 @@
|
|||||||
"id": 1,
|
"id": 1,
|
||||||
"weight": "2.000000",
|
"weight": "2.000000",
|
||||||
"value": "Y",
|
"value": "Y",
|
||||||
|
"user_token": "SNuxJc7W93bnhAiA",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2271,6 +2282,7 @@
|
|||||||
"id": 2,
|
"id": 2,
|
||||||
"weight": "4.000000",
|
"weight": "4.000000",
|
||||||
"value": "N",
|
"value": "N",
|
||||||
|
"user_token": "4bgn4RBjNlIeO7vj",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2281,6 +2293,7 @@
|
|||||||
"id": 3,
|
"id": 3,
|
||||||
"weight": "1.000000",
|
"weight": "1.000000",
|
||||||
"value": "A",
|
"value": "A",
|
||||||
|
"user_token": "xLBFgo3O1pAfGZ0h",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2291,6 +2304,7 @@
|
|||||||
"id": 4,
|
"id": 4,
|
||||||
"value": "Y",
|
"value": "Y",
|
||||||
"weight": "3.000000",
|
"weight": "3.000000",
|
||||||
|
"user_token": "neT9r5YkT9U8yJfa",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2301,6 +2315,7 @@
|
|||||||
"id": 5,
|
"id": 5,
|
||||||
"value": "Y",
|
"value": "Y",
|
||||||
"weight": "7.000000",
|
"weight": "7.000000",
|
||||||
|
"user_token": "U5YSuLUI1G5rNOHn",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2311,6 +2326,7 @@
|
|||||||
"id": 6,
|
"id": 6,
|
||||||
"value": "Y",
|
"value": "Y",
|
||||||
"weight": "2.000000",
|
"weight": "2.000000",
|
||||||
|
"user_token": "jkNKIiJr8Dl0yOXI",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2321,6 +2337,7 @@
|
|||||||
"id": 7,
|
"id": 7,
|
||||||
"value": "N",
|
"value": "N",
|
||||||
"weight": "2.000000",
|
"weight": "2.000000",
|
||||||
|
"user_token": "Z1cxOviuelzPT2rm",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2331,6 +2348,7 @@
|
|||||||
"id": 8,
|
"id": 8,
|
||||||
"value": "A",
|
"value": "A",
|
||||||
"weight": "1.000000",
|
"weight": "1.000000",
|
||||||
|
"user_token": "daUZh16fXCAu5DBL",
|
||||||
|
|
||||||
"user_id": null,
|
"user_id": null,
|
||||||
"delegated_user_id": null,
|
"delegated_user_id": null,
|
||||||
@ -2341,6 +2359,7 @@
|
|||||||
"id": 9,
|
"id": 9,
|
||||||
"value": "Y",
|
"value": "Y",
|
||||||
"weight": "1.000000",
|
"weight": "1.000000",
|
||||||
|
"user_token": "ivgipZ18D9Xac8pd",
|
||||||
|
|
||||||
"user_id": 1,
|
"user_id": 1,
|
||||||
"delegated_user_id": 1,
|
"delegated_user_id": 1,
|
||||||
|
@ -1653,6 +1653,7 @@ poll:
|
|||||||
- analog
|
- analog
|
||||||
- named
|
- named
|
||||||
- pseudoanonymous
|
- pseudoanonymous
|
||||||
|
is_pseudoanonymized: boolean
|
||||||
pollmethod:
|
pollmethod:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -1694,6 +1695,7 @@ poll:
|
|||||||
- N
|
- N
|
||||||
- valid
|
- valid
|
||||||
- cast
|
- cast
|
||||||
|
- entitled
|
||||||
- disabled
|
- disabled
|
||||||
default: disabled
|
default: disabled
|
||||||
majority_method:
|
majority_method:
|
||||||
@ -1708,6 +1710,7 @@ poll:
|
|||||||
votesvalid: decimal(6)
|
votesvalid: decimal(6)
|
||||||
votesinvalid: decimal(6)
|
votesinvalid: decimal(6)
|
||||||
votescast: decimal(6)
|
votescast: decimal(6)
|
||||||
|
entitled_users_at_stop: JSON
|
||||||
|
|
||||||
content_object_id: # Note: must not be set - it is allowed to have standalone polls
|
content_object_id: # Note: must not be set - it is allowed to have standalone polls
|
||||||
type: generic-relation
|
type: generic-relation
|
||||||
@ -1781,6 +1784,9 @@ vote:
|
|||||||
id: number
|
id: number
|
||||||
weight: decimal(6)
|
weight: decimal(6)
|
||||||
value: string
|
value: string
|
||||||
|
user_token:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
option_id:
|
option_id:
|
||||||
type: relation
|
type: relation
|
||||||
|
Loading…
Reference in New Issue
Block a user