mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
feat: multipart blob sync support (#14138)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Flexible blob uploads: GRAPHQL, presigned, and multipart flows with
per‑part URLs, abort/complete operations, presigned proxy endpoints, and
nightly cleanup of expired pending uploads.
* **API / Schema**
* GraphQL additions: new types, mutations, enum and error to manage
upload lifecycle (create, complete, abort, get part URL).
* **Database**
* New blob status enum and columns (status, upload_id); listing now
defaults to completed blobs.
* **Localization**
* Added user-facing message: "Blob is invalid."
* **Tests**
* Expanded unit and end‑to‑end coverage for upload flows, proxy
behavior, multipart and provider integrations.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"it": 1,
|
||||
"ja": 99,
|
||||
"ko": 100,
|
||||
"nb-NO": 12,
|
||||
"nb-NO": 30,
|
||||
"pl": 99,
|
||||
"pt-BR": 99,
|
||||
"ru": 99,
|
||||
|
||||
@@ -8680,6 +8680,10 @@ export function useAFFiNEI18N(): {
|
||||
blobId: string;
|
||||
spaceId: string;
|
||||
}>): string;
|
||||
/**
|
||||
* `Blob is invalid.`
|
||||
*/
|
||||
["error.BLOB_INVALID"](): string;
|
||||
/**
|
||||
* `Expected to publish a doc, not a Space.`
|
||||
*/
|
||||
|
||||
@@ -2163,6 +2163,7 @@
|
||||
"error.INVALID_HISTORY_TIMESTAMP": "Invalid doc history timestamp provided.",
|
||||
"error.DOC_HISTORY_NOT_FOUND": "History of {{docId}} at {{timestamp}} under Space {{spaceId}}.",
|
||||
"error.BLOB_NOT_FOUND": "Blob {{blobId}} not found in Space {{spaceId}}.",
|
||||
"error.BLOB_INVALID": "Blob is invalid.",
|
||||
"error.EXPECT_TO_PUBLISH_DOC": "Expected to publish a doc, not a Space.",
|
||||
"error.EXPECT_TO_REVOKE_PUBLIC_DOC": "Expected to revoke a public doc, not a Space.",
|
||||
"error.EXPECT_TO_GRANT_DOC_USER_ROLES": "Expect grant roles on doc {{docId}} under Space {{spaceId}}, not a Space.",
|
||||
|
||||
Reference in New Issue
Block a user