-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat: multi-workspace followup #4197
Merged
charlesBochet
merged 23 commits into
twentyhq:main
from
AdityaPimpalkar:multi-workspace-followup
Mar 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
13a3dc4
Seed UserWorkspace for existing demo/dev users
AdityaPimpalkar b83fd79
add workspaces field to currentUser
AdityaPimpalkar f8d6fb7
new token generation endpoint for switching workspace
AdityaPimpalkar 96b1323
lint fix
AdityaPimpalkar ecc3f7b
include dependency
AdityaPimpalkar a2637bd
requested fixes
AdityaPimpalkar 972df45
resolver test pass
AdityaPimpalkar 21b914a
changing defaultWorkspace and workspaceMember when switching workspaces
AdityaPimpalkar 2ba4aec
tests fix
AdityaPimpalkar 407402b
requested changes
AdityaPimpalkar 0d186ec
delete user/workspace edge case handled
AdityaPimpalkar a6b7c1f
Merge branch 'main' into multi-workspace-followup
AdityaPimpalkar 825d522
after merge
AdityaPimpalkar d2b4cdb
Merge branch 'main' into multi-workspace-followup
AdityaPimpalkar f78a930
requested changes
AdityaPimpalkar 88e6544
:wq!
AdityaPimpalkar d652afa
workspace manytoone relation
AdityaPimpalkar 73a074a
Merge branch 'main' into multi-workspace-followup
AdityaPimpalkar 0a7f69e
lint fix / import fix
AdityaPimpalkar d74758d
gql codegen
AdityaPimpalkar f0f03cc
Fix migrations and generateJWT
martmull 2eed678
migration fix
AdityaPimpalkar 39df75d
relations fix
AdityaPimpalkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,11 +55,6 @@ export class Workspace { | |
@OneToMany(() => User, (user) => user.defaultWorkspace) | ||
users: User[]; | ||
|
||
@OneToMany(() => UserWorkspace, (userWorkspace) => userWorkspace.workspace, { | ||
onDelete: 'CASCADE', | ||
}) | ||
workspaceUsers: UserWorkspace[]; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. think the OneToMany with userWorkspace entities is missing, but we might not call that field |
||
@Field() | ||
@Column({ default: true }) | ||
allowImpersonation: boolean; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think one migration is missing then