feat(server): separate storage quota limit and blob size limit (#10957)

close CLOUD-171
This commit is contained in:
fengmk2
2025-03-18 09:28:50 +00:00
parent 86c4e0705f
commit 4fc3e92205
9 changed files with 48 additions and 14 deletions
+1
View File
@@ -612,6 +612,7 @@ export enum ErrorNames {
SPACE_NOT_FOUND = 'SPACE_NOT_FOUND',
SPACE_OWNER_NOT_FOUND = 'SPACE_OWNER_NOT_FOUND',
SPACE_SHOULD_HAVE_ONLY_ONE_OWNER = 'SPACE_SHOULD_HAVE_ONLY_ONE_OWNER',
STORAGE_QUOTA_EXCEEDED = 'STORAGE_QUOTA_EXCEEDED',
SUBSCRIPTION_ALREADY_EXISTS = 'SUBSCRIPTION_ALREADY_EXISTS',
SUBSCRIPTION_EXPIRED = 'SUBSCRIPTION_EXPIRED',
SUBSCRIPTION_HAS_BEEN_CANCELED = 'SUBSCRIPTION_HAS_BEEN_CANCELED',
+5 -1
View File
@@ -7726,9 +7726,13 @@ export function useAFFiNEI18N(): {
*/
["error.COPILOT_EMBEDDING_UNAVAILABLE"](): string;
/**
* `You have exceeded your blob storage quota.`
* `You have exceeded your blob size quota.`
*/
["error.BLOB_QUOTA_EXCEEDED"](): string;
/**
* `You have exceeded your storage quota.`
*/
["error.STORAGE_QUOTA_EXCEEDED"](): string;
/**
* `You have exceeded your workspace member quota.`
*/
+2 -1
View File
@@ -1901,7 +1901,8 @@
"error.COPILOT_FAILED_TO_MODIFY_CONTEXT": "Failed to modify context {{contextId}}: {{message}}",
"error.COPILOT_FAILED_TO_MATCH_CONTEXT": "Failed to match context {{contextId}} with \"%7B%7Bcontent%7D%7D\": {{message}}",
"error.COPILOT_EMBEDDING_UNAVAILABLE": "Embedding feature not available, you may need to install pgvector extension to your database",
"error.BLOB_QUOTA_EXCEEDED": "You have exceeded your blob storage quota.",
"error.BLOB_QUOTA_EXCEEDED": "You have exceeded your blob size quota.",
"error.STORAGE_QUOTA_EXCEEDED": "You have exceeded your storage quota.",
"error.MEMBER_QUOTA_EXCEEDED": "You have exceeded your workspace member quota.",
"error.COPILOT_QUOTA_EXCEEDED": "You have reached the limit of actions in this workspace, please upgrade your plan.",
"error.RUNTIME_CONFIG_NOT_FOUND": "Runtime config {{key}} not found.",