[O2B-1552] Move ad hoc filters inside runs overviews model to filtering model#2106
Conversation
* Filtering by stableBeamsStart and stableBeamsEnd has been added to LHC Fills overview page * lhcFills endpoint & DTO validation modified and testing added for the aforementioned changes --------- Co-authored-by: GuustMetz <guust.metz@cern.ch> Co-authored-by: Guust <metzguust@gmail.com>
* Replaced the two-query pattern with a single queryBuilder in GetAllEnvironmentsUseCase. The previous approach was redundant following Sequelize performance improvements; furthermore, the original implementation's logic was flawed which resulted in the pagination bug.
…unsOverviewModel-to-filteringModel
…y to only notify when notBadFraction is not empty.
| /** | ||
| * @inheritdoc | ||
| */ | ||
| get isEmpty() { |
There was a problem hiding this comment.
I think this could do with at least an explanatory comment as it is quite confusing with the false and true wording of everything.
There was a problem hiding this comment.
Taken care of
There was a problem hiding this comment.
Could this be made clearer with a different choice of words? I think people could get confused with all the falses and trues.
There was a problem hiding this comment.
I have now renamed the parameter to untoggledIsEmpty with the adjustments to the isEmpty getter and it's jsdoc
There was a problem hiding this comment.
@graduta Me and Guust aggreed it would be good for you to give your opinion on this specifically. I am not convinced a property like _emptyValue set to True/False from constructor and compare to this in the isEmpty() function is not the more clear solution.
There was a problem hiding this comment.
Hi, to me isEmpty refers and extends the selection model. Thus:
- false - not selected and so empty
- true - selected and thus not empty as it contain a value of
1/true
9f42ad5 to
8f11704
Compare
73cf828 to
660a412
Compare
I have a JIRA ticket
Notable changes for users:
Notable changes for developers:
Filter restructuring
ddflpFilter,dcsFilter, andepnFilterhave been moved to thefilteringModel.detectorsQc[_id][notBadFraction]filters have been moved to a new model:MultiCompositeFilterModel.gaq[notBadFraction]now uses its own filter model with unique normalization logic:GaqFilterModel.New filter models
GaqFilterModelgaq[notBadFraction].ToggleFilterModelmcReproducibleAsNotBadhas been converted to use this model.MultiCompositeFilterModelShared filter behavior
mcReproducibleAsNotBad:ToggleFilterModel.GaqFilterModelMultiCompositeFilterModelNew components
RadioButtonFilterToggleFilter(component + model)ToggleFilterModel.Renaming
detectorsQc[_id][notBadFraction]→detectorsQcNotBadFraction[_id]filterModel.Implementation note
This approach avoids:
NumericalComparisonFilterModelsolely for normalization, orMultiCompositeFilterModelwithin anotherMultiCompositeFilterModelto achieve automatic normalization.Changes made to the database: