Resolve "Migrate Team user-type subjects from the User to the GroupUser model."
requested to merge 1413-migrate-team-user-type-subjects-from-the-user-to-the-groupuser-model into develop
Summary
This MR changes user-type TeamSubject
from using the User
to the GroupUser
model.
How to test it
- Migrate
baserow_enterprise
-
0010_delete_all_user_teamsubjects
will delete allTeamSubject
with asubject_type
pointing toUser
. -
test_0010_delete_all_user_teamsubjects
tests this migration.
-
- You will likely now have no
TeamSubject
locally. - Create a team with one or more subjects. You'll be creating subjects with a
GroupUser
record instead. - Edit that team, add/remove subjects. Confirm that you can still add/remove properly.
Misc
I've removed the ability to create a subject via an email
address. This was initially added in the early stages of teams development, and it was never actually used.
Merge Request Checklist
-
changelog.md has been updated if required -
New/updated Premium features are separated correctly in the premium folder -
The latest Chrome and Firefox have been used to test any new frontend features -
Documentation has been updated -
Quality Standards are met -
Performance: tables are still fast with 100k+ rows, 100+ field tables -
The redoc API pages have been updated for any REST API changes -
Our custom API docs are updated for changes to endpoints accessed via api tokens -
The UI/UX has been updated following UI Style Guide
Closes #1413 (closed)
Edited by Peter Evans