Skip to content

Commit

Permalink
WIP: multipart uploads for large assets
Browse files Browse the repository at this point in the history
Change-type: major
otaviojacobi committed Apr 22, 2024
1 parent 5cd7626 commit dc8df69
Showing 5 changed files with 111 additions and 207 deletions.
308 changes: 105 additions & 203 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -47,8 +47,8 @@
"@balena/env-parsing": "^1.1.10",
"@balena/es-version": "^1.0.3",
"@balena/node-metrics-gatherer": "^6.0.3",
"@balena/pinejs": "^16.0.0",
"@balena/pinejs-webresource-cloudfront": "^0.1.0",
"@balena/pinejs": "17.0.0-build-v17-a23172f0d3c5aa4169ebb0f29d4939508c9074cf-2",
"@balena/pinejs-webresource-cloudfront": "0.1.1-build-use-s3-handler-622b09a67f3eba747fac871e0be4ae053c4dc4de-1",
"@sentry/node": "^7.99.0",
"@types/basic-auth": "^1.1.8",
"@types/bluebird": "^3.5.42",
2 changes: 1 addition & 1 deletion src/balena-model.ts
Original file line number Diff line number Diff line change
@@ -588,7 +588,7 @@ export interface ReleaseAsset {
release: { __id: number } | [Release];
asset_key: string;
id: number;
asset: WebResource;
asset: WebResource | null;
}

export interface MyApplication {
2 changes: 1 addition & 1 deletion src/balena.sbvr
Original file line number Diff line number Diff line change
@@ -716,7 +716,7 @@ Fact type: release has asset key

-- release asset
Fact type: release asset has asset
Necessity: each release asset has exactly one asset.
Necessity: each release asset has at most one asset.


-- service environment variable
2 changes: 2 additions & 0 deletions src/migrations/00086-nullable-release-assets-asset.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "release asset"
ALTER COLUMN "asset" DROP NOT NULL;

0 comments on commit dc8df69

Please sign in to comment.