Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create default workspace on user creation #157

Closed
rajdip-b opened this issue Mar 2, 2024 · 2 comments · Fixed by #182
Closed

Create default workspace on user creation #157

rajdip-b opened this issue Mar 2, 2024 · 2 comments · Fixed by #182
Assignees
Labels
good first issue Good for newcomers scope: api Everything related to the API type: enhancement New feature or request
Milestone

Comments

@rajdip-b
Copy link
Member

rajdip-b commented Mar 2, 2024

Description

For the frontend to work properly, we need to create a default workspace for the user whenever they sign up. Requirements:

  • Workspace should be named 'My Workspace'
  • Add a property called isDefault in prisma schema
  • Externalize the createWorkspace and its associated functions in workspace.servvice.ts to separate files under common module. You may need to pass around the prisma object as reference to these functions
  • Call the createWorkspace function whenever a user signs up, or an admin creates the account. Relevant code can be found in auth.service.ts and user.service.ts
  • Default workspaces can't be deleted by the creator, nor can their ownership be transferred to other people. Make sure the business logic in workspace.service.ts is updated accordingly
  • When the owner's account is deleted, make sure that their default workspace and any other relevant data is deleted aswell.
  • Create tests for these scenarios
@rajdip-b rajdip-b added type: enhancement New feature or request good first issue Good for newcomers scope: api Everything related to the API labels Mar 2, 2024
@rajdip-b rajdip-b added this to the Release v1 milestone Mar 2, 2024
@rajdip-b rajdip-b moved this to Todo in keyshade-api Mar 2, 2024
@rajdip-b
Copy link
Member Author

rajdip-b commented Mar 2, 2024

@rajdip-b rajdip-b self-assigned this Apr 13, 2024
@rajdip-b rajdip-b moved this from Todo to In progress in keyshade-api Apr 13, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in keyshade-api Apr 14, 2024
@rajdip-b
Copy link
Member Author

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers scope: api Everything related to the API type: enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant