-
Notifications
You must be signed in to change notification settings - Fork 32
Remove the meeting_user when removing a user from a meeting
#3206
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
Merged
luisa-beerboom
merged 25 commits into
OpenSlides:main
from
luisa-beerboom:2111-require-groups-in-meeting-users
Jan 14, 2026
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
26639b4
Require groups in meeting users, fix most tests
luisa-beerboom a7654e4
Merge remote-tracking branch 'upstream/main' into 2111-require-groups…
luisa-beerboom 66b71e7
Make user.update delete meeting_users
luisa-beerboom 9b9d24f
Finish (?) user.update changes
luisa-beerboom 2bb5270
Make changes for motions
luisa-beerboom 96018df
Make changes for chat messages
luisa-beerboom c4791c2
Make changes for personal note
luisa-beerboom b188ffa
Update docs
luisa-beerboom 7963c7e
Fix clone test
luisa-beerboom 281c37a
Merge remote-tracking branch 'upstream/main' into 2111-require-groups…
luisa-beerboom ecb09cc
Write and test migration
luisa-beerboom a9f7eba
Fix code
luisa-beerboom 1847e4a
Finish first test, no supporter code for now though
luisa-beerboom 69d1d75
motion_supporter test code
luisa-beerboom 7121e2f
Merge remote-tracking branch 'upstream/main' into 2111-require-groups…
luisa-beerboom df13ae7
Fix migration after update
luisa-beerboom 1635b50
cleanup
luisa-beerboom 306ba2a
More tests
luisa-beerboom c2dea98
Minor changes
luisa-beerboom 3570c97
Requested code style changes
luisa-beerboom 3fc5a29
Merge remote-tracking branch 'upstream/main' into 2111-require-groups…
luisa-beerboom 32958a0
Fix motion create perms
luisa-beerboom 34c37e9
Add test for issue 3133
luisa-beerboom d56cd28
Merge remote-tracking branch 'upstream/main' into 2111-require-groups…
luisa-beerboom 42fcde9
Requested changes
luisa-beerboom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "_migration_index": 74, | ||
| "_migration_index": 75, | ||
| "gender":{ | ||
| "1":{ | ||
| "id": 1, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "_migration_index": 74, | ||
| "_migration_index": 75, | ||
| "gender":{ | ||
| "1":{ | ||
| "id": 1, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
openslides_backend/action/actions/meeting_user/base_delete.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| from openslides_backend.shared.patterns import fqid_from_collection_and_id | ||
| from openslides_backend.shared.typing import HistoryInformation | ||
|
|
||
| from ....models.models import MeetingUser | ||
| from ...generics.delete import DeleteAction | ||
| from ...util.default_schema import DefaultSchema | ||
|
|
||
|
|
||
| class MeetingUserBaseDelete(DeleteAction): | ||
| """ | ||
| Base action to delete a meeting user. | ||
| """ | ||
|
|
||
| model = MeetingUser() | ||
| schema = DefaultSchema(MeetingUser()).get_delete_schema() | ||
|
|
||
| def get_history_information(self) -> HistoryInformation | None: | ||
| users = self.get_instances_with_fields(["user_id", "meeting_id"]) | ||
| return { | ||
| fqid_from_collection_and_id("user", user["user_id"]): [ | ||
| "Participant removed from meeting {}", | ||
| fqid_from_collection_and_id("meeting", user["meeting_id"]), | ||
| ] | ||
| for user in users | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name needs to also be changed in the payload description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done