Add role for user in group (#697)
Related changes:
-
debusine/server/tasks/tests/test_experiment_workspace.py
: intest_execute_defaults
, also assert that the user is admin of the group
Help needed
debusine/db/migrations/0126_add_groupmembership.py
has the current migration approach, taken from Django docs, and a comment with the issues I have with it.
I can replace it with a sequence of migrations that guarantee the resulting DB will be aligned with the code, like:
- Create the through table
- Data migration to sync it with the m2m
- Remove the m2m
- Readd the m2m via the through table
Or can we fix this approach in a way that ends up with database and django model being in alignment?
Edited by Enrico Zini