Skip to content
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

Make meeting_user actions backend internal #1888

Closed
jsangmeister opened this issue Aug 29, 2023 · 2 comments · Fixed by #1895
Closed

Make meeting_user actions backend internal #1888

jsangmeister opened this issue Aug 29, 2023 · 2 comments · Fixed by #1895
Assignees
Milestone

Comments

@jsangmeister
Copy link
Contributor

The meeting user actions should not be accessible from outside the backend. The client does not and should not use them as the user actions encapsulate them for the client.

Also, the payload of meeting_user.{create|update} should be reduced and cleaned up. I don't see any necessity to be able to set the various relations via these actions, especially not together with the action currently being public.

@jsangmeister jsangmeister added this to the 4.1 milestone Aug 29, 2023
@reiterl reiterl self-assigned this Sep 6, 2023
@reiterl
Copy link
Member

reiterl commented Sep 6, 2023

Which relations should be excluded from the meeting_user create and update actions?
I think, we need a way to update them. So why excluding them?

@jsangmeister
Copy link
Contributor Author

Which relations should be excluded from the meeting_user create and update actions? I think, we need a way to update them. So why excluding them?

Most are updated through the reverse relation. Here is a list of all places where the actions are used and which fields are sent (besides the required fields):

So, the only fields actually used are group_ids and personal_note_ids, so the rest of the standard_fields can be removed without any consequence. I would keep group_ids since it is useful in multiple places and rewrite the places using personal_note_ids to instead update the reverse relation so personal_note_ids can be removed from the payloads as well.

Also, the meeting_user.delete action should be internal as well.

@reiterl reiterl assigned rrenkert and unassigned reiterl Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants