-
Notifications
You must be signed in to change notification settings - Fork 37
[rel-db] Fix meeting.import #3287
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
Changes from 7 commits
3a7a5db
c73f131
9539651
e89db5b
0b0aa78
2980fb0
ea83bba
c8b2b5d
2cc82a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2134,3 +2134,22 @@ def test_clone_with_structured_published_orga_files(self) -> None: | |
| for fqid, model in models.items(): | ||
| self.assert_model_exists(fqid, model) | ||
| self.media.duplicate_mediafile.assert_not_called() | ||
|
|
||
| def test_clone_require_duplicate_from_allowed(self) -> None: | ||
| self.set_test_data_with_admin() | ||
| self.set_models( | ||
| { | ||
| "meeting/1": {"template_for_organization_id": 1, "name": "m1"}, | ||
| "organization/1": { | ||
| "template_meeting_ids": [1], | ||
| }, | ||
|
vkrasnovyd marked this conversation as resolved.
Outdated
|
||
| "user/1": { | ||
| "organization_management_level": None, | ||
| "committee_ids": [1], | ||
| "committee_management_ids": [1], | ||
| }, | ||
| "committee/60": {"user_ids": [1], "manager_ids": [1]}, | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case I'd suggest using
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, also used
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case you can also get completely rid of |
||
| ) | ||
| response = self.request("meeting.clone", {"meeting_id": 1}) | ||
| self.assert_status_code(response, 200) | ||
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.
I love that error message for this error became more descriptive.