Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
722caf7
chore: remove redundant model assignment.
Feb 20, 2026
f161cae
chore: move all filters denoted as so to a filteringModel
Feb 20, 2026
9faffaf
Make filterInputModel extend filterModel
Feb 20, 2026
247943b
rename inputfilter to ParsedInputFilter
Feb 20, 2026
114285d
implement authorfilter with ParsedInputFilterModel changes
Feb 20, 2026
f39f7ae
re-implement filter
Feb 20, 2026
df1fea3
add tag-filters to the filtering object
Feb 20, 2026
96ca85f
replace titleFilter and contentFilter with RawTextFilterModels
Feb 20, 2026
93b3291
make Authorfilter an implementation of RawTextFilterModel
Feb 20, 2026
5a5e830
add runs filter to the filteringmodel
Feb 20, 2026
b5e7148
add environments filter to the filteringmodel
Feb 20, 2026
3507ba0
add lhcFills filter to the filteringmodel
Feb 20, 2026
9c63409
add created filter to the filteringmodel
Feb 20, 2026
5500b3e
move the sort 'filter' to fetchlogs, since it doesn't actually filter…
Feb 20, 2026
a09ae8b
change filter to rawTextFilter for title
Feb 21, 2026
512999b
fix test by changing event type to 'change'
Feb 21, 2026
0f15812
fix content and author tests
Feb 21, 2026
7b641ca
import openFilteringPanel and resetFilters
Feb 21, 2026
5ab8218
fix createdAt filter test
Feb 21, 2026
4c96d73
change event types to change
Feb 21, 2026
18ce4dc
fix isAnyFilterActive
Feb 21, 2026
685dd38
remove _raw as from authorfilterModel, as it serves no purpose
Feb 21, 2026
4e132fd
chore: removed ParsedInputFilterModel
Mar 2, 2026
caf9812
chore: add toLowerCase to filterQueryParam computation
Mar 2, 2026
41c5a72
[O2B-1530] Lhc fills add sb duration filter (#2080)
NarrowsProjects Feb 24, 2026
f38f597
[O2B-1544] Fix pagination for filtered envs and add a test (#2096)
isaachilly Mar 5, 2026
3efdf1d
remove the combination operator from runs
Mar 5, 2026
fc61bea
remove the combination operator from envirionments
Mar 5, 2026
9c4df68
remove the combination operator from lhcFills
Mar 5, 2026
b860320
make filter computation much more compact using filteringmodel.normalize
Mar 5, 2026
7a00043
add happy-flow tests for logs api
Mar 5, 2026
ada3eb3
fix usecase unit tests
Mar 5, 2026
d290be7
Merge branch 'main' into improv/O2B-1534/Migrate-Log-Overview-to-use-…
NarrowsProjects Mar 5, 2026
0d8d3d4
Merge branch 'main' into improv/O2B-1534/Migrate-Log-Overview-to-use-…
NarrowsProjects Mar 5, 2026
237683a
Merge branch 'main' into improv/O2B-1534/Migrate-Log-Overview-to-use-…
NarrowsProjects Mar 9, 2026
25244f4
chore: add filteringmodel to QcFlagTypesOverviewModel
Mar 9, 2026
6970a74
feat: move namesFilterModelFilter to fileringmodel
Mar 9, 2026
cdaaf0e
feat: move methodsFilterModelFilter to filteringModel
Mar 9, 2026
27a8bbc
feat: move methodsFilterModelFilter to filteringModel
Mar 9, 2026
c24d302
chore: add filteringModel to AnchoredSimulationPassesOverviewModel
Mar 10, 2026
2f6fcf1
chore: add namesFilterModel to the filteringModel instance
Mar 10, 2026
790d76b
chore: add filteringModel to SimulationPassesPerLhcPeriodOverviewModel
Mar 10, 2026
6fe055b
chore: add namesFilterModel to the filteringModel instance of Simulat…
Mar 10, 2026
0e5d567
chore: add filteringModel to overviewmodel class
Mar 10, 2026
05461dd
feat: move namesFilterModel to the filteringModel
Mar 10, 2026
102c1b6
feat: move yearsFilterModel to the filteringModel
Mar 10, 2026
e2ab763
feat: move pdpBeamTypes to the filteringModel
Mar 10, 2026
30d7b39
rename te bad filter to be a generic component
Mar 10, 2026
bdba964
feat: replace qcFlagType bad filter with radioButtonFilterModel
Mar 10, 2026
4790d30
feat: replace ddflp's filter component with the common radiButton com…
Mar 10, 2026
3cf6c1b
feat: replace ddflp's filter component with the common radioButton co…
Mar 10, 2026
17a4ce8
feat: replace epn's filter component with the common radioButton comp…
Mar 10, 2026
1cd5603
feat: replace triggerValue's filter component with the standard selec…
Mar 10, 2026
4cea58d
chore: remove unused components
Mar 11, 2026
a9a1cd9
fix: fix Selectionmodel.normalized to use selected rather than select…
Mar 12, 2026
f9c1adb
Merge branch 'improv/O2B-1548/Migrate-qcFlagTypesOverviewModel-to-use…
Mar 12, 2026
172b28c
Merge branch 'improv/O2B-1549/Migrate-AnchoredSimulationPassesOvervie…
Mar 12, 2026
cf342ea
Merge branch 'improv/O2B-1547/Migrate-LhcPeriodOverviewModel-to-use-F…
Mar 12, 2026
aded3af
rename triggerValue checkboxes to include the triggerValue name
Apr 2, 2026
fa199de
feat: create ToggleFilterModel
Apr 9, 2026
47c0105
revamp the stableBeamFilter to be more general for toggles
Apr 9, 2026
0c3f701
rename stableBeamFilter to toggleFilter
Apr 9, 2026
1333c45
feat: turn mcReproducibleNotAsBad into a toggleFilter
Apr 15, 2026
1365033
chore: remove mcreprodicebleAsNotBadToggle.js
Apr 15, 2026
39d282a
add optional ID to togglefilter.js
Apr 15, 2026
306d3d0
feat: create gaqFilterModel
Apr 15, 2026
7d7f6c9
feat: replace 'gaq[notBadFraction]' with a gaqFilterModel
Apr 15, 2026
accd756
feat: create MultiCompositionFilterModel
Apr 15, 2026
d7d6177
improve MultiCompositionFiltermodel
Apr 15, 2026
6df07ff
change tests to be compatible with the mc filter now being clearable
Apr 15, 2026
95773bd
feat: flatten the detectorsQc[id][NotBadFraction] to detectorsQcNotBa…
Apr 16, 2026
2ca9a26
test: update api tests for the new flat detectorsQcNotBadFraction name
Apr 16, 2026
6f3de22
chore: turn hasStableBeams back into a radiobutton
Apr 17, 2026
de86292
chore: update jsdoc for gaqfilterModel and MultiCompositionFilterModel
Apr 17, 2026
83fb6f7
chore improve comment explanation of mcReproducibleNotbad
Apr 17, 2026
aa550f8
chore: update ToggleFilterModel jsdoc
Apr 17, 2026
4e8ca69
Merge branch 'main' into improv/O2B-1552/Move-ad-hoc-filters-inside-r…
Apr 17, 2026
c5820a6
remove unused import
Apr 17, 2026
9c32b2e
fix linting issues
Apr 17, 2026
309e3df
Merge branch 'main' into improv/O2B-1552/Move-ad-hoc-filters-inside-r…
Apr 17, 2026
75fe876
feat: update parameters of togglefilterModel to include falseIsEmpty
Apr 17, 2026
6c61766
test: update GetAllRunsUsecase.test.js to use the new flat detectorsQ…
Apr 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/domain/dtos/filters/RunFilterDto.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ exports.RunFilterDto = Joi.object({
mcReproducibleAsNotBad: Joi.boolean().optional(),
}),

detectorsQc: Joi.object()
detectorsQcNotBadFraction: Joi.object()
.pattern(
Joi.string().regex(/^_\d+$/), // Detector id with '_' prefix
Joi.object({ notBadFraction: FloatComparisonDto }),
FloatComparisonDto,
)
.keys({
mcReproducibleAsNotBad: Joi.boolean().optional(),
Expand Down

This file was deleted.

This file was deleted.

79 changes: 79 additions & 0 deletions lib/public/components/Filters/RunsFilter/GaqFilterModel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/**
* @license
* Copyright CERN and copyright holders of ALICE Trg. This software is
* distributed under the terms of the GNU General Public License v3 (GPL
* Version 3), copied verbatim in the file "COPYING".
*
* See http://alice-Trg.web.cern.ch/license for full licensing information.
*
* In applying this license CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/

import { FilterModel } from '../common/FilterModel.js';
import { NumericalComparisonFilterModel } from '../common/filters/NumericalComparisonFilterModel.js';

/**
* FilterModel that filters by the fraction of gaq that was not bad
*/
export class GaqFilterModel extends FilterModel {
/**
* Constructor
* @param {ToggleFilterModel} mcReproducibleAsNotBad model that determines if a 'not bad' status was reproduceable for a Monte Carlo.
* This param is required as multiple other filters models need to make use of the same ToggleFilterModel instance
*/
constructor(mcReproducibleAsNotBad) {
super();

this._notBadFraction = new NumericalComparisonFilterModel({ scale: 0.01, integer: false });
this._addSubmodel(this._notBadFraction);
this._mcReproducibleAsNotBad = mcReproducibleAsNotBad;
this._addSubmodel(this._mcReproducibleAsNotBad);
}

/**
* @inheritDoc
*/
reset() {
this._notBadFraction.reset();
}

/**
* @inheritDoc
*/
get isEmpty() {
return this._notBadFraction.isEmpty;
}

/**
* @inheritDoc
*/
get normalized() {
const normalized = { notBadFraction: this._notBadFraction.normalized };

if (!this.isEmpty) {
normalized.mcReproducibleAsNotBad = this._mcReproducibleAsNotBad.isToggled();
}

return normalized;
}

/**
* Return the underlying notBadFraction model
*
* @return {NumericalComparisonFilterModel} the filter model
*/
get notBadFraction() {
return this._notBadFraction;
}

/**
* Return the underlying mcReproducibleAsNotBad model
*
* @return {ToggleFilterModel} the filter model
*/
get mcReproducibleAsNotBad() {
return this._mcReproducibleAsNotBad;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/**
* @license
* Copyright CERN and copyright holders of ALICE Trg. This software is
* distributed under the terms of the GNU General Public License v3 (GPL
* Version 3), copied verbatim in the file "COPYING".
*
* See http://alice-Trg.web.cern.ch/license for full licensing information.
*
* In applying this license CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/

import { FilterModel } from '../common/FilterModel.js';

/**
* FilterModel that allows devs to create custom filters from multiple other filters during instantiation, or using putFilter
*/
export class MultiCompositionFilterModel extends FilterModel {
/**
* Constructor
* @param {Object<string|number, FilterModel|SelectionModel>} filters the filters that will make up the composite filter
*/
constructor(filters = {}) {
super();

/**
* @type {Object<string|number, FilterModel|SelectionModel>}
*/
this._filters = {};

Object.entries(filters).forEach(([key, filter]) => this.putFilter(key, filter));
}

/**
* Return a subfilter by key
*
* @param {string} key the key of the subfilter
* @return {FilterModel} the subfilter
*/
putFilter(key, filterModel) {
if (key in this._filters) {
return;
}

this._filters[key] = filterModel;
this._addSubmodel(filterModel);
}

/**
* Add new subfilter
*
* @param {string} key key of the subfilter
* @param {FilterModel} filter the the subfilter
*/
getFilter(key) {
if (!(key in this._filters)) {
throw new Error(`No filter found with key ${key}`);
}

return this._filters[key];
}

/**
* @inheritDoc
*/
reset() {
Object.values(this._filters).forEach((filter) => filter.reset());
}

/**
* @inheritDoc
*/
get isEmpty() {
return Object.values(this._filters).every((filter) => filter.isEmpty);
}

/**
* @inheritDoc
*/
get normalized() {
const normalized = {};

for (const [id, detector] of Object.entries(this._filters)) {
if (!detector.isEmpty) {
normalized[id] = detector.normalized;
}
}

return normalized;
}
}
50 changes: 0 additions & 50 deletions lib/public/components/Filters/RunsFilter/dcs.js

This file was deleted.

Loading
Loading