@balena/open-balena-api 30.0.11-build-v2-image-env-var-device-update-trigger-cf9c7768a66a7e15cc30984f396417a9395096eb-1 → 30.0.11-build-no-include-env-var-in-cache-256ee47776a19986ba88d71ae9f30408a3e346d2-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/device-types/build-info-facade.d.ts +1 -1
- package/dist/features/device-types/build-info-facade.js +13 -7
- package/dist/features/device-types/build-info-facade.js.map +1 -1
- package/dist/features/vars-schema/hooks/vars-update-trigger.js +28 -22
- package/dist/features/vars-schema/hooks/vars-update-trigger.js.map +1 -1
- package/package.json +2 -2
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { DeviceTypeJson } from './device-type-json.js';
|
2
|
-
export declare const getLogoUrl:
|
2
|
+
export declare const getLogoUrl: (normalizedSlug: string, buildId: string) => Promise<string | undefined>;
|
3
3
|
export declare const getDeviceTypeJson: import("../../infra/cache/multi-level-memoizee.js").MemoizedFn<(normalizedSlug: string, buildId: string) => Promise<DeviceTypeJson | undefined>>;
|
4
4
|
export declare const getCompressedSize: import("../../infra/cache/multi-level-memoizee.js").MemoizedFn<(normalizedSlug: string, buildId: string) => Promise<number>>;
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import { multiCacheMemoizee } from '../../infra/cache/index.js';
|
2
2
|
import { BUILD_COMPRESSED_SIZE_CACHE_TIMEOUT, BUILD_PROPERTY_CACHE_TIMEOUT, FILES_HOST, } from '../../lib/config.js';
|
3
3
|
import { fileExists, getFile, getFolderSize, getImageKey, } from './storage/index.js';
|
4
|
-
|
5
|
-
if (!FILES_HOST) {
|
6
|
-
return;
|
7
|
-
}
|
4
|
+
const $getLogoUrl = multiCacheMemoizee(async (normalizedSlug, buildId) => {
|
8
5
|
const pathComponents = [normalizedSlug, buildId, 'logo.svg'];
|
9
6
|
try {
|
10
7
|
const logoKey = getImageKey(...pathComponents);
|
@@ -13,20 +10,29 @@ export const getLogoUrl = multiCacheMemoizee(async (normalizedSlug, buildId) =>
|
|
13
10
|
return;
|
14
11
|
}
|
15
12
|
// url encode since the buildId can contain a `+`
|
16
|
-
|
17
|
-
return `https://${FILES_HOST}/${encodedLogoPath}`;
|
13
|
+
return getImageKey(...pathComponents.map(encodeURIComponent));
|
18
14
|
}
|
19
15
|
catch {
|
20
16
|
return;
|
21
17
|
}
|
22
18
|
}, {
|
23
|
-
cacheKey: 'getLogoUrl',
|
19
|
+
cacheKey: '$getLogoUrl',
|
24
20
|
undefinedAs: false,
|
25
21
|
promise: true,
|
26
22
|
primitive: true,
|
27
23
|
preFetch: true,
|
28
24
|
maxAge: BUILD_PROPERTY_CACHE_TIMEOUT,
|
29
25
|
}, { useVersion: false });
|
26
|
+
export const getLogoUrl = async (normalizedSlug, buildId) => {
|
27
|
+
if (!FILES_HOST) {
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
const encodedLogoPath = await $getLogoUrl(normalizedSlug, buildId);
|
31
|
+
if (!encodedLogoPath) {
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
return `https://${FILES_HOST}/${encodedLogoPath}`;
|
35
|
+
};
|
30
36
|
export const getDeviceTypeJson = multiCacheMemoizee(async (normalizedSlug, buildId) => {
|
31
37
|
const isIgnored = await fileExists(getImageKey(normalizedSlug, buildId, 'IGNORE'));
|
32
38
|
if (isIgnored) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build-info-facade.js","sourceRoot":"","sources":["../../../src/features/device-types/build-info-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,EACN,mCAAmC,EACnC,4BAA4B,EAC5B,UAAU,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,UAAU,EACV,OAAO,EACP,aAAa,EACb,WAAW,GACX,MAAM,oBAAoB,CAAC;AAE5B,MAAM,
|
1
|
+
{"version":3,"file":"build-info-facade.js","sourceRoot":"","sources":["../../../src/features/device-types/build-info-facade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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AE,KAAK,EAAE,CACrB,CAAC"}
|
@@ -265,26 +265,24 @@ addEnvHooks('device_service_environment_variable', async (args) => {
|
|
265
265
|
}),
|
266
266
|
];
|
267
267
|
});
|
268
|
-
// Normally we don't expect these to return any match, since our clients
|
269
|
-
// * POST image env vars before the release & images gets marked as successful
|
270
|
-
// * never PATCH them after that point
|
271
|
-
// * DELETEs are expected to normally only happen if the release gets DELETED,
|
272
|
-
// in which case the should_be_running__release will change and trigger an update of its own.
|
273
268
|
addEnvHooks('image_environment_variable', async (args) => {
|
274
|
-
// The filter paths here should match the expand path of the state GET.
|
275
269
|
if (args.req.body.release_image != null) {
|
276
270
|
return {
|
277
|
-
|
271
|
+
image_install: {
|
278
272
|
$any: {
|
279
|
-
$alias: '
|
273
|
+
$alias: 'ii',
|
280
274
|
$expr: {
|
281
|
-
|
282
|
-
release_image: {
|
275
|
+
installs__image: {
|
283
276
|
$any: {
|
284
|
-
$alias: '
|
277
|
+
$alias: 'i',
|
285
278
|
$expr: {
|
286
|
-
|
287
|
-
|
279
|
+
i: {
|
280
|
+
release_image: {
|
281
|
+
$any: {
|
282
|
+
$alias: 'ri',
|
283
|
+
$expr: { ri: { id: args.req.body.release_image } },
|
284
|
+
},
|
285
|
+
},
|
288
286
|
},
|
289
287
|
},
|
290
288
|
},
|
@@ -301,20 +299,28 @@ addEnvHooks('image_environment_variable', async (args) => {
|
|
301
299
|
return [
|
302
300
|
envVarIds,
|
303
301
|
(envVarIdsChunk) => ({
|
304
|
-
|
302
|
+
image_install: {
|
305
303
|
$any: {
|
306
|
-
$alias: '
|
304
|
+
$alias: 'ii',
|
307
305
|
$expr: {
|
308
|
-
|
309
|
-
release_image: {
|
306
|
+
installs__image: {
|
310
307
|
$any: {
|
311
|
-
$alias: '
|
308
|
+
$alias: 'i',
|
312
309
|
$expr: {
|
313
|
-
|
314
|
-
|
310
|
+
i: {
|
311
|
+
release_image: {
|
315
312
|
$any: {
|
316
|
-
$alias: '
|
317
|
-
$expr: {
|
313
|
+
$alias: 'ri',
|
314
|
+
$expr: {
|
315
|
+
ri: {
|
316
|
+
image_environment_variable: {
|
317
|
+
$any: {
|
318
|
+
$alias: 'e',
|
319
|
+
$expr: { e: { id: { $in: envVarIdsChunk } } },
|
320
|
+
},
|
321
|
+
},
|
322
|
+
},
|
323
|
+
},
|
318
324
|
},
|
319
325
|
},
|
320
326
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vars-update-trigger.js","sourceRoot":"","sources":["../../../../src/features/vars-schema/hooks/vars-update-trigger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAOjE,4FAA4F;AAC5F,wFAAwF;AACxF,8BAA8B;AAC9B,uIAAuI;AACvI,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC;AAE7C,iBAAiB;AACjB,MAAM,WAAW,GAAG,CACnB,QAAW,EACX,WAWC,EACM,EAAE;IACT,MAAM,oBAAoB,GAAG,KAAK,EACjC,IAEC,EACA,EAAE;QACH,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,OAAO;YACR,CAAC;YACD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;gBACpC,CAAC,CAAC,CAAC,GAAG,EAAE;oBACN,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,MAAM,CAAC;oBAC5C,4GAA4G;oBAC5G,OAAO,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,GAA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oBACX,KAAK,EAAE;wBACN,CAAC,EAAE;4BACF,mCAAmC,EAAE;gCACpC,IAAI,EAAE;oCACL,MAAM,EAAE,GAAG;oCACX,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE;iCAC7C;6BACD;yBACD;qBACD;iBACD;aACD;SACD,CAAC;KACF,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,
|
1
|
+
{"version":3,"file":"vars-update-trigger.js","sourceRoot":"","sources":["../../../../src/features/vars-schema/hooks/vars-update-trigger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAOjE,4FAA4F;AAC5F,wFAAwF;AACxF,8BAA8B;AAC9B,uIAAuI;AACvI,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC;AAE7C,iBAAiB;AACjB,MAAM,WAAW,GAAG,CACnB,QAAW,EACX,WAWC,EACM,EAAE;IACT,MAAM,oBAAoB,GAAG,KAAK,EACjC,IAEC,EACA,EAAE;QACH,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,OAAO;YACR,CAAC;YACD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;gBACpC,CAAC,CAAC,CAAC,GAAG,EAAE;oBACN,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,MAAM,CAAC;oBAC5C,4GAA4G;oBAC5G,OAAO,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CA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AG;gCACX,KAAK,EAAE;oCACN,CAAC,EAAE;wCACF,aAAa,EAAE;4CACd,IAAI,EAAE;gDACL,MAAM,EAAE,IAAI;gDACZ,KAAK,EAAE;oDACN,EAAE,EAAE;wDACH,0BAA0B,EAAE;4DAC3B,IAAI,EAAE;gEACL,MAAM,EAAE,GAAG;gEACX,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,EAAE,EAAE;6DAC7C;yDACD;qDACD;iDACD;6CACD;yCACD;qCACD;iCACD;6BACD;yBACD;qBACD;iBACD;aACD;SACD,CAAC;KACF,CAAC;AACH,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "30.0.11-build-
|
4
|
+
"version": "30.0.11-build-no-include-env-var-in-cache-256ee47776a19986ba88d71ae9f30408a3e346d2-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -167,6 +167,6 @@
|
|
167
167
|
"loader": "ts-node/esm/transpile-only"
|
168
168
|
},
|
169
169
|
"versionist": {
|
170
|
-
"publishedAt": "2024-10-21T16:
|
170
|
+
"publishedAt": "2024-10-21T16:17:23.780Z"
|
171
171
|
}
|
172
172
|
}
|