Skip to content

Commit b4d409c

Browse files
Merge branch 'main' into mboulais/O2B-1435/rework-qc-flags-storage
2 parents c627370 + ed7d825 commit b4d409c

16 files changed

Lines changed: 339 additions & 123 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.8.0](https://github.com/AliceO2Group/Bookkeeping/releases/tag/%40aliceo2%2Fbookkeeping%401.8.0)
6+
* Notable changes for users:
7+
* Luminosity information has been added to run details page
8+
59
## [1.7.0](https://github.com/AliceO2Group/Bookkeeping/releases/tag/%40aliceo2%2Fbookkeeping%401.7.0)
610
* Notable changes for users:
711
* Clicking on button to delete a flag actually mark it as deleted and remove its effective periods instead of removing it from database

database/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.8.0](https://github.com/AliceO2Group/Bookkeeping/releases/tag/%40aliceo2%2Fbookkeeping%401.8.0)
2+
* Changes made to the database
3+
* Added default value of false to the deleted flag for QC flags, which avoids to rely only on sequelize model definition
4+
15
## [1.7.0](https://github.com/AliceO2Group/Bookkeeping/releases/tag/%40aliceo2%2Fbookkeeping%401.7.0)
26
* Changes made to the database
37
* Added deleted flag to QC flags in database
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use strict';
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
up: async (queryInterface, Sequelize) => await queryInterface.changeColumn(
6+
'quality_control_flags',
7+
'deleted',
8+
{
9+
type: Sequelize.DataTypes.BOOLEAN,
10+
allowNull: false,
11+
defaultValue: false,
12+
after: 'id',
13+
},
14+
),
15+
16+
down: async (queryInterface, Sequelize) => await queryInterface.changeColumn(
17+
'quality_control_flags',
18+
'deleted',
19+
{
20+
type: Sequelize.DataTypes.BOOLEAN,
21+
allowNull: false,
22+
after: 'id',
23+
},
24+
),
25+
};

lib/database/seeders/20200713103855-runs.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ module.exports = {
13741374
fill_number: 6,
13751375
pdp_beam_type: 'PbPb',
13761376
lhc_beam_energy: 23.21,
1377-
lhc_beam_mode: 'STABLE',
1377+
lhc_beam_mode: 'STABLE BEAMS',
13781378
lhc_beta_star: 321.1321,
13791379
alice_l3_current: 30002545.12,
13801380
alice_l3_polarity: 'POSITIVE',
@@ -1392,6 +1392,9 @@ module.exports = {
13921392
updated_at: '2019-08-08 17:00:00',
13931393
created_at: '2019-08-08 17:00:00',
13941394
lhc_period_id: 1,
1395+
trigger_efficiency: 1,
1396+
trigger_acceptance: 0.7569974555,
1397+
cross_section: 78600,
13951398

13961399
inelastic_interaction_rate_avg: 20000,
13971400
inelastic_interaction_rate_at_start: 10000,
@@ -2671,7 +2674,7 @@ module.exports = {
26712674
dcs: false,
26722675
epn: true,
26732676
fill_number: 1,
2674-
epn_topology: 'a quite long topology, which will for sure require a balloon to be displayed properly',
2677+
epn_topology: 'quite a long topology, which will for sure require a balloon to be displayed properly',
26752678
concatenated_detectors: 'ACO, CPV, CTP, EMC, FIT, HMP, ITS, MCH, MFT, MID, PHS, TOF, TPC, TRD, ZDC',
26762679
lhc_period_id: 2,
26772680
lhc_beam_mode: 'STABLE BEAMS',
@@ -2710,7 +2713,7 @@ module.exports = {
27102713
dcs: false,
27112714
epn: true,
27122715
fill_number: 1,
2713-
epn_topology: 'a quite long topology, which will for sure require a balloon to be displayed properly',
2716+
epn_topology: 'quite a long topology, which will for sure require a balloon to be displayed properly',
27142717
concatenated_detectors: 'ACO, CPV, CTP, EMC, FIT, HMP, ITS, MCH, MFT, MID, PHS, TOF, TPC, TRD, ZDC',
27152718
trigger_value: 'OFF',
27162719
lhc_period_id: 2,
@@ -2750,7 +2753,7 @@ module.exports = {
27502753
dcs: false,
27512754
epn: true,
27522755
fill_number: 1,
2753-
epn_topology: 'a quite long topology, which will for sure require a balloon to be displayed properly',
2756+
epn_topology: 'quite a long topology, which will for sure require a balloon to be displayed properly',
27542757
concatenated_detectors: 'ACO, CPV, CTP, EMC, FIT, HMP, ITS, MCH, MFT, MID, PHS, TOF, TPC, TRD, ZDC',
27552758
lhc_period_id: 2,
27562759
lhc_beam_mode: 'STABLE BEAMS',
@@ -2767,6 +2770,10 @@ module.exports = {
27672770
other_file_count: 50,
27682771
other_file_size: '214920239535280',
27692772
definition: RunDefinition.PHYSICS,
2773+
trigger_efficiency: 1,
2774+
trigger_acceptance: 0.7569974555,
2775+
cross_section: 78600,
2776+
27702777
updated_at: '2019-08-09 14:00:00',
27712778
created_at: '2019-08-09 14:00:00',
27722779
},

lib/database/seeders/20220503120937-lhc-fills.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = {
2525
filling_scheme_name: '25ns_2352b_2340_2004_2133_108bpi_24inj',
2626
created_at: new Date('2019-08-09 16:00:00'),
2727
updated_at: new Date('2019-08-09 16:00:00'),
28+
colliding_bunches_count: 1234,
2829
},
2930
{
3031
fill_number: 2,
@@ -67,7 +68,7 @@ module.exports = {
6768
stable_beams_end: '2019-08-08 23:00:00',
6869
stable_beams_duration: 60 * 60 * 12,
6970
filling_scheme_name: 'Single_12b_8_1024_8_2018',
70-
colliding_bunches_count: 123456789,
71+
colliding_bunches_count: 2345,
7172
delivered_luminosity: 420,
7273
created_at: new Date('2019-08-09 21:00:00'),
7374
updated_at: new Date('2019-08-09 21:00:00'),

lib/database/seeders/20240603124221-add-trigger-counters.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,34 @@ module.exports = {
3232
created_at: '2024-06-03 14:46:27',
3333
updated_at: '2024-06-03 14:49:44',
3434
},
35+
{
36+
id: 3,
37+
timestamp: '2024-06-03 14:45:12',
38+
run_number: 54,
39+
class_name: 'C1ZNC-B-NOPF-CRU',
40+
lmb: 5748831462n,
41+
lma: 5748757057n,
42+
l0b: 5748757057n,
43+
l0a: 5748757056n,
44+
l1b: 5748757056n,
45+
l1a: 5748757056n,
46+
created_at: '2024-06-03 14:48:01',
47+
updated_at: '2024-06-03 14:50:48',
48+
},
49+
{
50+
id: 4,
51+
timestamp: '2024-06-03 14:45:12',
52+
run_number: 108,
53+
class_name: 'CMTVX-NONE-NOPF-CRU',
54+
lmb: 61766221961n,
55+
lma: 0,
56+
l0b: 15944142517n,
57+
l0a: 15942608365n,
58+
l1b: 1141098293n,
59+
l1a: 1141098293n,
60+
created_at: '2024-06-03 14:48:01',
61+
updated_at: '2024-06-03 14:50:48',
62+
},
3563
], { transaction }),
3664
])),
3765

lib/public/utilities/formatting/formatFloat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/**
1515
* Format float number
1616
* @param {number} value number to be formatted
17+
* @param {object} [options] eventual options for formatting
1718
* @param {number} [options.precision = 3] precision of displayed value
1819
* @return {string} formatted number
1920
*/

0 commit comments

Comments
 (0)