Skip to content

Add role for user in group (#697)

Enrico Zini requested to merge group-admin into devel

Related changes:

  • debusine/server/tasks/tests/test_experiment_workspace.py: in test_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

Merge request reports

Loading