-
Notifications
You must be signed in to change notification settings - Fork 173
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
Alessandro/web 1659 workspace limits #2733
Conversation
…alessandro/web-1659-workspace-limits
packages/server/modules/workspaces/tests/integration/workspaces.graph.spec.ts
Show resolved
Hide resolved
} | ||
|
||
type WorkspaceBilling { | ||
version: WorkspaceBillingVersion |
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.
lets call this versionCount
@@ -153,6 +153,21 @@ input PendingWorkspaceCollaboratorsFilter { | |||
search: String | |||
} | |||
|
|||
type WorkspaceBillingVersion { |
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.
type WorkspaceVersionCount
@@ -1 +1,2 @@ | |||
export const WorkspaceInviteResourceType = 'workspace' | |||
export const WORKSPACE_MAX_PROJECTS_VERSIONS = 500 |
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.
This could be moved to the gatekeeper module
.where({ workspaceId }) | ||
.count(StreamCommits.col.commitId) | ||
|
||
return Number(res.count) |
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.
prob parseInt is more correct
async ({ workspaceId }) => { | ||
const [res] = await tables | ||
.workspaces(db) | ||
.join(Streams.name, Streams.col.workspaceId, Workspaces.col.id) |
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.
you can just query the Streams
table
…alessandro/web-1659-workspace-limits
…alessandro/web-1659-workspace-limits
…alessandro/web-1659-workspace-limits
Description & motivation
Changes:
To-do before merge:
Screenshots:
Validation of changes:
Checklist:
References