-
Notifications
You must be signed in to change notification settings - Fork 993
chore(site): remove create workspace xservice #10217
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
Changes from 1 commit
10f3c10
f577c4d
fd84833
4749547
6d0e3ab
06b9748
de37d44
cc18ecd
c6bee93
4aec6a5
b588271
ed42cbb
0f7a300
7f2c605
1593068
902b4b1
1bcc73e
816e596
b1ac086
7175b69
b2d6db9
b548155
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export const createWorkspaceChecks = (organizationId: string) => | ||
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. I'm guessing that these types are coming from XState. Do we have any files that have some of these types defined for when we eventually remove the library? One of my worries is that once we remove XState, our codebase will still be partly influenced by how it sets things up, but we won't have the type definitions 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. Nops, there is no types coming from 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. Oh, I just assumed that they were, because I've seen a few objects structured with these 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. No it is not, it is related to our internal RBAC system 😁 |
||
({ | ||
createWorkspaceForUser: { | ||
object: { | ||
resource_type: "workspace", | ||
organization_id: organizationId, | ||
owner_id: "*", | ||
}, | ||
action: "create", | ||
}, | ||
}) as const; | ||
|
||
export type CreateWSPermissions = Record< | ||
keyof ReturnType<typeof createWorkspaceChecks>, | ||
boolean | ||
>; |
Uh oh!
There was an error while loading. Please reload this page.