twenty icon indicating copy to clipboard operation
twenty copied to clipboard

[Timebox] Separate user creation from workspace creation

Open FelixMalfait opened this issue 1 year ago • 1 comments

As of today, when someone signs up we create the workspace along with the user in the signup method of the Auth service. This clutters the database with a lot of unused schemas.

Instead we should only create the workspace upon clicking on the workspace creation form if it's possible.

The issue is with billing on our cloud version... Currently the "plan required" screen is displayed based on the workspace status so that would break. I feel like we have to add a flag like hasSetupBilling or something like this on the user table to restrict access.

FelixMalfait avatar Jan 25 '24 16:01 FelixMalfait

Scope:

  • do not create workspace on user sign up
  • make sure the front is still working
  • create an endpoint to "activate" the workspace

charlesBochet avatar Jan 29 '24 13:01 charlesBochet