-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove committee-user relation #1856
Comments
Some permission calculation in the client is also based on this relation. It could be rewritten to use other existing permissions, but I'm not sure then if it's worth the work. Maybe we'll postpone this until another issue with the calculated fields comes up. |
Well, that did not take long: #1857 |
Overview of used places in the client:
The last function ( |
With the next step moving to relational database model we will have these fields as view fields with a simple query without great effort. But, removing is even better! |
How the committee membership is defined is described here: https://github.com/OpenSlides/OpenSlides/wiki/Users#user-association-to-committees. This is currently done in the backend on each |
Are you sure the text is still accurate? It says, that the relation is done for meeting in user.meeting_ids:
for committ in meeting.committee_id:
... There are currently three places in the restricter that uses that relation.
I think place 2 and 3 can be changed. This is only relevant for committee-managers. This should only be a few users. But the first case will get a speed penalty for every user for all connections that request a committee if the user is in many meetings. I don't now how often a client requests a committee. If I finish this PR, it should not be a problem anymore. |
Both are accurate: The relation
Sounds good. Do you have a plan for when and if that could be the case? |
This will take some time. I need a new implementation for the hole restricter. This will introduce new bugs. I have to discuss with @rrenkert if I should do it for 4.1 or for a later version. We could remove the relation right now, live with the performance penalty and hope for the improvements in a later version. Or we remove the relation after the 4.1 |
Sounds to me like the latter option is the better one. @rrenkert? |
@emanuelschuetze said in OpenSlides/openslides-client#2210 (review) that the number of assigned accounts for committee managers could be removed. Since this is AFAIK the only use of the relation
committee/user-ids
, we could remove the relation altogether. This relation (specifically, the calculated fields handler for it) was the root cause for #1840. We could potentially prevent such errors in the future by removing this relation, maybe together with the meeting-user relation so we no longer have any calculated fields.The text was updated successfully, but these errors were encountered: