@@ -50,12 +50,10 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
5050 this . _skimmableRuns$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
5151 this . _skimmableRuns$ . bubbleTo ( this ) ;
5252
53- this . _gaqNotBadFractionFilterModel = new NumericalComparisonFilterModel ( {
53+ this . _filteringModel . put ( 'gaq[notBadFraction]' , new NumericalComparisonFilterModel ( {
5454 scale : 0.01 ,
5555 integer : false ,
56- } ) ;
57- this . _gaqNotBadFractionFilterModel . observe ( ( ) => this . _applyFilters ( ) ) ;
58- this . _gaqNotBadFractionFilterModel . visualChange$ . bubbleTo ( this ) ;
56+ } ) ) ;
5957
6058 this . _runDetectorsSelectionModel = new RunDetectorsSelectionModel ( ) ;
6159 this . _runDetectorsSelectionModel . bubbleTo ( this ) ;
@@ -67,13 +65,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
6765 this . _discardAllQcFlagsActionState$ . bubbleTo ( this ) ;
6866 }
6967
70- /**
71- * @inheritDoc
72- */
73- isAnyFilterActive ( ) {
74- return super . isAnyFilterActive ( ) || ! this . _gaqNotBadFractionFilterModel . isEmpty ;
75- }
76-
7768 /**
7869 * Change ready for skimming flag for given run
7970 *
@@ -133,10 +124,10 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
133124 * @inheritdoc
134125 */
135126 getRootEndpoint ( ) {
127+ const gaqNotBadFilter = this . _filteringModel . get ( 'gaq[notBadFraction]' ) ;
136128 const filter = { dataPassIds : [ this . _dataPassId ] } ;
137- if ( ! this . _gaqNotBadFractionFilterModel . isEmpty ) {
129+ if ( ! gaqNotBadFilter . isEmpty ) {
138130 filter . gaq = {
139- notBadFraction : this . _gaqNotBadFractionFilterModel . normalized ,
140131 mcReproducibleAsNotBad : this . _mcReproducibleAsNotBad ,
141132 } ;
142133 }
@@ -149,7 +140,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
149140 */
150141 resetFiltering ( fetch = true ) {
151142 super . resetFiltering ( fetch ) ;
152- this . _gaqNotBadFractionFilterModel ?. reset ( ) ; // Reset is called in super class
153143 }
154144
155145 /**
@@ -227,15 +217,6 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
227217 return this . _discardAllQcFlagsActionState$ . getCurrent ( ) ;
228218 }
229219
230- /**
231- * Get gaqNotBadFraction filter model
232- *
233- * @return {NumericalComparisonFilterModel } filter model
234- */
235- get gaqNotBadFractionFilterModel ( ) {
236- return this . _gaqNotBadFractionFilterModel ;
237- }
238-
239220 /**
240221 * Send request to mark current data pass as skimmable
241222 * @return {Promise<void> } resolved once request is handled
0 commit comments