Skip to content

Commit 23f6e04

Browse files
committed
Revert "Merge branch 'main' into feature/O2B-1563/Create-GAQ-summary-invalidation-mechanism"
This reverts commit ce0ac8c, reversing changes made to 9c1116b.
1 parent ce0ac8c commit 23f6e04

170 files changed

Lines changed: 4641 additions & 4956 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
* @graduta
2-
* @isaachilly

.github/workflows/bookkeeping.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ on:
1010
branches:
1111
- main
1212

13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
16-
1713
jobs:
1814
parallel_tests:
1915
name: ${{ matrix.test_type }}
@@ -43,7 +39,7 @@ jobs:
4339
steps:
4440
- uses: actions/checkout@v6
4541
- name: Set up Docker
46-
uses: docker/setup-buildx-action@v4
42+
uses: docker/setup-buildx-action@v3
4743
- name: Create Coverage Directory
4844
run: mkdir -p ${{ github.workspace }}/coverage
4945

@@ -75,7 +71,7 @@ jobs:
7571
env:
7672
TEST_TYPE: ${{ matrix.test_type }}
7773
- name: Upload Coverage to Codecov
78-
uses: codecov/codecov-action@v6
74+
uses: codecov/codecov-action@v5
7975
with:
8076
files: ./coverage/lcov.info
8177
env:

.github/workflows/docker.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
permissions:
1010
contents: read
1111

12-
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: true
15-
1612
jobs:
1713
linter:
1814
runs-on: ubuntu-latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apk add --no-cache \
2222
freetype=2.13.2-r0 \
2323
freetype-dev=2.13.2-r0 \
2424
harfbuzz=8.5.0-r0 \
25-
ca-certificates=20260413-r0
25+
ca-certificates=20250911-r0
2626

2727
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
2828
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

lib/database/migrations/v1/20260305110000-add-qcf-run-detector-index.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

lib/database/seeders/20240404100811-qc-flags.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -281,21 +281,6 @@ module.exports = {
281281
created_at: '2024-08-12 12:00:10',
282282
updated_at: '2024-08-12 12:00:10',
283283
},
284-
{
285-
id: 103,
286-
deleted: true,
287-
from: null,
288-
to: '2019-08-08 20:50:00',
289-
comment: 'deleted flag',
290-
291-
run_number: 56,
292-
flag_type_id: 13, // Bad
293-
created_by_id: 2,
294-
detector_id: 7, // FT0
295-
296-
created_at: '2024-08-12 12:00:15',
297-
updated_at: '2024-08-12 12:00:15',
298-
},
299284

300285
// Run : 56, ITS
301286
{
@@ -409,12 +394,6 @@ module.exports = {
409394
from: '2019-08-08 20:50:00',
410395
to: null,
411396
},
412-
{
413-
id: 103,
414-
flag_id: 103,
415-
from: null,
416-
to: '2019-08-08 20:50:00',
417-
},
418397

419398
// Run : 56, ITS
420399
{

lib/domain/dtos/GetAllLogsDto.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,32 @@ const PaginationDto = require('./PaginationDto');
1717
const { CustomJoi } = require('./CustomJoi.js');
1818
const { TagsFilterDto } = require('./filters/TagsFilterDto.js');
1919
const { FromToFilterDto } = require('./filters/FromToFilterDto.js');
20+
const { EnvironmentsFilterDto } = require('./filters/EnvironmentsFilterDto');
2021

21-
const RunFilterDto = CustomJoi.stringArray().items(EntityIdDto).single();
22-
const EnvironmentsFilterDto = CustomJoi.stringArray().items(Joi.string()).single();
23-
const LhcFillFilterDto = CustomJoi.stringArray().items(EntityIdDto).single();
22+
const RunFilterDto = Joi.object({
23+
values: CustomJoi.stringArray().items(EntityIdDto).single().required(),
24+
operation: Joi.string().valid('and', 'or').required(),
25+
});
26+
27+
const LhcFillFilterDto = Joi.object({
28+
values: CustomJoi.stringArray().items(EntityIdDto).single().required(),
29+
operation: Joi.string().valid('and', 'or').required(),
30+
});
2431

2532
const FilterDto = Joi.object({
2633
title: Joi.string().trim(),
2734
content: Joi.string().trim(),
2835
author: Joi.string().trim(),
2936
created: FromToFilterDto,
3037
tags: TagsFilterDto,
31-
fillNumbers: LhcFillFilterDto,
32-
runNumbers: RunFilterDto,
38+
lhcFills: LhcFillFilterDto,
39+
run: RunFilterDto,
3340
origin: Joi.string()
3441
.valid('human', 'process'),
3542
parentLog: EntityIdDto,
3643
rootLog: EntityIdDto,
3744
rootOnly: Joi.boolean(),
38-
environmentIds: EnvironmentsFilterDto,
45+
environments: EnvironmentsFilterDto,
3946
});
4047

4148
const SortDto = Joi.object({

test/public/Filters/index.js renamed to lib/domain/dtos/filters/EnvironmentsFilterDto.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
* or submit itself to any jurisdiction.
1212
*/
1313

14-
const ToUrlSuite = require('./filtersToUrl.test.js');
15-
const ToFilterSuite = require('./urlToFilter.test.js');
16-
const FilteringModelSuite = require('./filteringModel.test.js');
14+
const Joi = require('joi');
15+
const { CustomJoi } = require('../CustomJoi.js');
1716

18-
module.exports = () => {
19-
describe('Filters to URL', ToUrlSuite);
20-
describe('URL to Filters', ToFilterSuite);
21-
describe('FilteringModel', FilteringModelSuite);
22-
};
17+
exports.EnvironmentsFilterDto = Joi.object({
18+
values: CustomJoi.stringArray().items(Joi.string()).single().required(),
19+
operation: Joi.string().valid('and', 'or').required(),
20+
});

lib/domain/dtos/filters/RunFilterDto.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,27 +88,26 @@ exports.RunFilterDto = Joi.object({
8888
inelasticInteractionRateAtEnd: FloatComparisonDto,
8989

9090
gaq: Joi.object({
91-
notBadFraction: FloatComparisonDto.custom((value, helpers) => {
92-
const [, { dataPassIds }] = helpers.state.ancestors;
93-
94-
if (!dataPassIds || dataPassIds.length !== 1) {
95-
return helpers.message('Filtering by GAQ is enabled only when filtering with one dataPassId');
96-
}
97-
98-
return value;
99-
}),
91+
notBadFraction: FloatComparisonDto.when(
92+
'dataPassIds',
93+
{
94+
is: Joi.array().length(1),
95+
then: FloatComparisonDto,
96+
otherwise: Joi.forbidden().error(new Error('Filtering by GAQ is enabled only when filtering with one dataPassId')),
97+
},
98+
),
10099
mcReproducibleAsNotBad: Joi.boolean().optional(),
101100
}),
102101

103-
detectorsQcNotBadFraction: Joi.object()
102+
detectorsQc: Joi.object()
104103
.pattern(
105104
Joi.string().regex(/^_\d+$/), // Detector id with '_' prefix
106-
FloatComparisonDto,
105+
Joi.object({ notBadFraction: FloatComparisonDto }),
107106
)
108107
.keys({
109108
mcReproducibleAsNotBad: Joi.boolean().optional(),
110109
})
111-
.custom((detectorsQcNotBadFractionObj, helpers) => {
110+
.custom((detectorsQcObj, helpers) => {
112111
const [{ dataPassIds, simulationPassIds, lhcPeriodIds }] = helpers.state.ancestors;
113112

114113
singleRunsCollectionCustomCheck(
@@ -118,6 +117,6 @@ exports.RunFilterDto = Joi.object({
118117
'the dataPassIds, simulationPassIds and lhcPeriodIds filters collectively contain exactly one ID',
119118
);
120119

121-
return detectorsQcNotBadFractionObj;
120+
return detectorsQcObj;
122121
}),
123122
});

lib/domain/enums/NonPhysicsProductionsNamesWords.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ const NonPhysicsProductionsNamesWords = Object.freeze({
2323
module.exports.NonPhysicsProductionsNamesWords = NonPhysicsProductionsNamesWords;
2424

2525
module.exports.NON_PHYSICS_PRODUCTIONS_NAMES_WORDS = Object.values(NonPhysicsProductionsNamesWords);
26-
27-
module.exports.NON_PHYSICS_PRODUCTIONS_NAMES_TOTAL_LENGTH = Object.values(NonPhysicsProductionsNamesWords).join(',').length;

0 commit comments

Comments
 (0)