@balena/open-balena-api 31.2.11-build-add-synonymous-forms-for-dsev-54f3d4dcd0ae38f22d11d9921a98f3ef68e22f0b-2 → 31.2.12-build-fix-double-task-on-move-342f406381769328019cdca8cc48fb4b48d1b10e-2

Sign up to get free protection for your applications and to get access to all the features.
@@ -214,15 +214,25 @@ hooks.addPureHook('PATCH', 'resin', 'device', {
214
214
  const affectedIds = await sbvrUtils.getAffectedIds(args);
215
215
  if (affectedIds.length !== 0) {
216
216
  await deleteServiceInstallsForCurrentApp(args.api, newAppId, affectedIds);
217
- await createAppServiceInstalls(args.api, newAppId, affectedIds, args.tx);
218
217
  }
219
218
  },
220
- });
221
- hooks.addPureHook('PATCH', 'resin', 'device', {
222
219
  POSTRUN: async ({ api, request, tx }) => {
223
220
  const affectedIds = request.affectedIds;
224
- if (request.values.is_pinned_on__release !== undefined &&
225
- affectedIds.length !== 0) {
221
+ if (affectedIds.length === 0) {
222
+ return;
223
+ }
224
+ const newAppId = request.values.belongs_to__application;
225
+ if (newAppId != null) {
226
+ // We could also have an optimization for the case that `values.is_pinned_on__release != null`
227
+ // to make the part that finds the target release faster, but chose to keep this simpler since:
228
+ // a) We expect that in the majority of device move requests users will not be also be pinning
229
+ // the device at the same time.
230
+ // b) Only the sync approach would benefit from it, since creating the service installs via tasks
231
+ // (which is going to be the default), only accepts the deviceIds as a parameter,
232
+ await createAppServiceInstalls(api, newAppId, affectedIds, tx);
233
+ return;
234
+ }
235
+ if (request.values.is_pinned_on__release !== undefined) {
226
236
  // If the device was preloaded, and then pinned, service_installs do not exist
227
237
  // for this device+release combination. We need to create these
228
238
  if (request.values.is_pinned_on__release != null) {
@@ -1 +1 @@
1
- {"version":3,"file":"service-installs.js","sourceRoot":"","sources":["../../../../src/features/ci-cd/hooks/service-installs.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAA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C,CAAC;YAC5C,sGAAsG;YACtG,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;gBACvB,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC;oBACzB,WAAW,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,EAAE;iBAC1C,CAAC,CAAC;gBACH,MAAM,4BAA4B,CACjC,OAAO,EACP,CAAC,QAAQ,CAAC,EACV;oBACC,EAAE,EAAE,SAAS;iBACb,EACD,EAAE,CACF,CAAC;YACH,CAAC;QACF,CAAC;KACD,CAAC,CAAC;IAEH,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC7C,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE;YACvC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAY,CAAC;YACzC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAC5C,oGAAoG;YACpG,IAAI,SAAS,IAAI,IAAI,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACnD,MAAM,4BAA4B,CACjC,GAAG,EACH,WAAW,EACX;oBACC,EAAE,EAAE,SAAS;iBACb,EACD,EAAE,CACF,CAAC;YACH,CAAC;QACF,CAAC;KACD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,MAAM,SAAS,IAAI;IACvB,+BAA+B;IAC/B,gCAAgC;CACvB,EAAE,CAAC;IACZ,+BAA+B,CAAC,SAAS,CAAC,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"service-installs.js","sourceRoot":"","sources":["../../../../src/features/ci-cd/hooks/service-installs.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAAO,EACN,wBA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et of things, Made Simple",
4
- "version": "31.2.11-build-add-synonymous-forms-for-dsev-54f3d4dcd0ae38f22d11d9921a98f3ef68e22f0b-2",
4
+ "version": "31.2.12-build-fix-double-task-on-move-342f406381769328019cdca8cc48fb4b48d1b10e-2",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -166,6 +166,6 @@
166
166
  "loader": "ts-node/esm/transpile-only"
167
167
  },
168
168
  "versionist": {
169
- "publishedAt": "2024-11-22T17:41:10.808Z"
169
+ "publishedAt": "2024-11-22T18:31:52.575Z"
170
170
  }
171
171
  }