Skip to content

Commit 3b3053e

Browse files
authored
[release/bkp/1.9.5] (#1914)
* 1.9.5 * Improve runDefinition for Synthetic
1 parent d7da343 commit 3b3053e

3 files changed

Lines changed: 21 additions & 16 deletions

File tree

lib/server/services/run/getRunDefinition.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
*/
1313
const { RunDefinition } = require('../../../domain/enums/RunDefinition.js');
1414

15+
const RUN_TYPES_MATCH_FOR_SYNTHETIC = ['REPLAY', 'SYNTHETIC'];
16+
1517
const COSMICS_OR_PHYSICS_TF_BUILDER_MODE = ['processing', 'processing-disk'];
1618

1719
const CALIBRATION_RUN_TYPES_STARTS_WITH = ['CALIBRATION_', 'PEDESTAL', 'LASER', 'PULSER', 'NOISE'];
@@ -78,7 +80,7 @@ const getRunDefinition = (run) => {
7880
} else if (
7981
!dcs
8082
&& triggerValue === 'OFF'
81-
&& runType?.name?.match(/^(?:replay|synthetic)$/i)
83+
&& RUN_TYPES_MATCH_FOR_SYNTHETIC.includes(runType?.name?.toLocaleUpperCase())
8284
) {
8385
definition = RunDefinition.SYNTHETIC;
8486
} else if (CALIBRATION_RUN_TYPES_STARTS_WITH.some((prefix) => runType?.name?.toUpperCase().startsWith(prefix))) {

package-lock.json

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aliceo2/bookkeeping",
3-
"version": "1.9.4",
3+
"version": "1.9.5",
44
"author": "ALICEO2",
55
"scripts": {
66
"coverage": "nyc npm test && npm run coverage:report",

0 commit comments

Comments
 (0)