-
Notifications
You must be signed in to change notification settings - Fork 11
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
Send names of persons, that have voted, to the autoupdate-service #306
Comments
Do we need the
Yes, meeting_user.
Same as above. I would prefer a name without
Hopefully not ;) |
I don't see a name clash. The I added the |
@rrenkert I created PRs for meta, autoupdate-service and vote-service. I made it a bit different then we discussed. The back reference was complicated. I don't think, that we need it and it will be much easier in the future, when we use postgress. I only created a field I used user_ids and not meeting_user_ids, because that is, what the vote-service is saving. If we want to change this, it would be clearer to update the vote-service to work with meeting_user_ids instead of user_ids. Is this ok for you? |
In short: Yes, its ok for me! I see the points you mentioned above. |
Currently, we have the feature
VoteCount
. It tells, how many users have voted in which polls.This has to be changed to the information, which userids have voted.
Here is the http-handler, that has either has to return a json-representation of
map[int][]int
. The value is either the complete list of user_ids of this poll, or all new user-ids since the last event.Here is the service-function
It gets called once a second:
openslides-vote-service/vote/http/http.go
Lines 51 to 54 in e007cfc
Here is the field in the models.yml, that has to be changed: https://github.com/OpenSlides/openslides-meta/blob/aff030454079ab470b544f7baa3ad1aa6a1b54d9/models.yml#L3227
Since the new field is a reverence to meeting_user, another field
meeting_user/has_voted_poll_ids
will be necessary.There is already a field
user/poll_voted_ids
. This is filled by the backend, after the vote is done. They should not be mistaken.@rrenkert How should the new fields be named?
This is the first time, we have a calculated relation field. I hope, it will not be a problem to create the back reference in the autoupdate-service?
The text was updated successfully, but these errors were encountered: