Skip to content

Resolve "Migrate Team user-type subjects from the User to the GroupUser model."

Summary

This MR changes user-type TeamSubject from using the User to the GroupUser model.

How to test it

  1. Migrate baserow_enterprise
    • 0010_delete_all_user_teamsubjects will delete all TeamSubject with a subject_type pointing to User.
    • test_0010_delete_all_user_teamsubjects tests this migration.
  2. You will likely now have no TeamSubject locally.
  3. Create a team with one or more subjects. You'll be creating subjects with a GroupUser record instead.
  4. 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

Merge request reports