mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat(server): support query overcapacity member count of workspace (#12050)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Workspace quota information now includes a new metric: the count of members exceeding seat capacity ("overcapacityMemberCount"), available in both numeric and human-readable formats.
- The workspace quota display and related queries have been updated to show this new overcapacity member count alongside existing quota metrics.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1821,12 +1821,15 @@ export const workspaceQuotaQuery = {
|
||||
historyPeriod
|
||||
memberLimit
|
||||
memberCount
|
||||
overcapacityMemberCount
|
||||
humanReadable {
|
||||
name
|
||||
blobLimit
|
||||
storageQuota
|
||||
historyPeriod
|
||||
memberLimit
|
||||
memberCount
|
||||
overcapacityMemberCount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,12 +8,15 @@ query workspaceQuota($id: String!) {
|
||||
historyPeriod
|
||||
memberLimit
|
||||
memberCount
|
||||
overcapacityMemberCount
|
||||
humanReadable {
|
||||
name
|
||||
blobLimit
|
||||
storageQuota
|
||||
historyPeriod
|
||||
memberLimit
|
||||
memberCount
|
||||
overcapacityMemberCount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2310,6 +2310,7 @@ export interface WorkspaceQuotaHumanReadableType {
|
||||
memberCount: Scalars['String']['output'];
|
||||
memberLimit: Scalars['String']['output'];
|
||||
name: Scalars['String']['output'];
|
||||
overcapacityMemberCount: Scalars['String']['output'];
|
||||
storageQuota: Scalars['String']['output'];
|
||||
storageQuotaUsed: Scalars['String']['output'];
|
||||
}
|
||||
@@ -2322,6 +2323,7 @@ export interface WorkspaceQuotaType {
|
||||
memberCount: Scalars['Int']['output'];
|
||||
memberLimit: Scalars['Int']['output'];
|
||||
name: Scalars['String']['output'];
|
||||
overcapacityMemberCount: Scalars['Int']['output'];
|
||||
storageQuota: Scalars['SafeInt']['output'];
|
||||
/** @deprecated use `usedStorageQuota` instead */
|
||||
usedSize: Scalars['SafeInt']['output'];
|
||||
@@ -4498,6 +4500,7 @@ export type WorkspaceQuotaQuery = {
|
||||
historyPeriod: number;
|
||||
memberLimit: number;
|
||||
memberCount: number;
|
||||
overcapacityMemberCount: number;
|
||||
humanReadable: {
|
||||
__typename?: 'WorkspaceQuotaHumanReadableType';
|
||||
name: string;
|
||||
@@ -4505,6 +4508,8 @@ export type WorkspaceQuotaQuery = {
|
||||
storageQuota: string;
|
||||
historyPeriod: string;
|
||||
memberLimit: string;
|
||||
memberCount: string;
|
||||
overcapacityMemberCount: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user