@@ -52,7 +52,7 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
5252 this . _lhcPeriodStatistics$ = new ObservableData ( RemoteData . notAsked ( ) ) ;
5353 this . _lhcPeriodStatistics$ . bubbleTo ( this ) ;
5454
55- this . _tabbedPanelModel = new RunsPerLhcPeriodTabbedPanelModel ( ) ;
55+ this . _tabbedPanelModel = new RunsPerLhcPeriodTabbedPanelModel ( this . _qcSummary$ ) ;
5656 this . _tabbedPanelModel . bubbleTo ( this ) ;
5757 }
5858
@@ -78,7 +78,7 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
7878 return ;
7979 }
8080
81- await this . _fetchLhcPeriod ( ) ;
81+ this . _fetchLhcPeriod ( ) ;
8282 super . load ( ) ;
8383 }
8484
@@ -102,26 +102,6 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
102102 return this . _lhcPeriodStatistics$ . getCurrent ( ) ;
103103 }
104104
105- /**
106- * Set id of current LHC period which runs are fetched
107- *
108- * @param {string } lhcPeriodId id of a LHC period
109- */
110- set lhcPeriodId ( lhcPeriodId ) {
111- this . _lhcPeriodId = lhcPeriodId ;
112- this . _tabbedPanelModel . lhcPeriodId = lhcPeriodId ;
113- }
114-
115- /**
116- * Set mcReproducibleAsNotBad flag
117- *
118- * @param {boolean } mcReproducibleAsNotBad new value
119- */
120- setMcReproducibleAsNotBad ( mcReproducibleAsNotBad ) {
121- super . setMcReproducibleAsNotBad ( mcReproducibleAsNotBad ) ;
122- this . _tabbedPanelModel . mcReproducibleAsNotBad = mcReproducibleAsNotBad ;
123- }
124-
125105 /**
126106 * Get all detectors
127107 *
@@ -140,6 +120,13 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
140120 return this . _syncDetectors$ . getCurrent ( ) ;
141121 }
142122
123+ /**
124+ * @inheritdoc
125+ */
126+ get detectors ( ) {
127+ return this . _syncDetectors$ . getCurrent ( ) ;
128+ }
129+
143130 /**
144131 * Returns the model for the tabbed component
145132 *
@@ -148,6 +135,22 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
148135 get tabbedPanelModel ( ) {
149136 return this . _tabbedPanelModel ;
150137 }
138+
139+ /**
140+ * Set id of current LHC period which runs are fetched
141+ *
142+ * @param {string } lhcPeriodId id of a LHC period
143+ */
144+ set lhcPeriodId ( lhcPeriodId ) {
145+ this . _lhcPeriodId = lhcPeriodId ;
146+ }
147+
148+ /**
149+ * @inheritdoc
150+ */
151+ qcSummaryScope ( ) {
152+ return { lhcPeriodId : this . _lhcPeriodId } ;
153+ }
151154}
152155
153156/**
@@ -156,9 +159,11 @@ export class RunsPerLhcPeriodOverviewModel extends RunsWithQcModel {
156159class RunsPerLhcPeriodTabbedPanelModel extends TabbedPanelModel {
157160 /**
158161 * Constructor
162+ * @param {ObservableData<RemoteData<QcSummary>> } qcSummary$ obervalbe data of remote data of QC summary
159163 */
160- constructor ( ) {
164+ constructor ( qcSummary$ ) {
161165 super ( Object . values ( RUNS_PER_LHC_PERIOD_PANELS_KEYS ) ) ;
166+ this . _qcSummary$ = qcSummary$ ;
162167 }
163168
164169 /**
@@ -170,28 +175,8 @@ class RunsPerLhcPeriodTabbedPanelModel extends TabbedPanelModel {
170175 this . currentPanelData = null ;
171176 break ;
172177 case RUNS_PER_LHC_PERIOD_PANELS_KEYS . SYNCHRONOUS_FLAGS :
173- // this._fetchSynchronousQcSummary ();
178+ this . currentPanelData = this . _qcSummary$ . getCurrent ( ) ;
174179 break ;
175180 }
176181 }
177-
178- /**
179- * Set LHC period id
180- *
181- * @param {id } lhcPeriodId id of LHC period
182- */
183- set lhcPeriodId ( lhcPeriodId ) {
184- this . _lhcPeriodId = lhcPeriodId ;
185- // this._fetchCurrentPanelData();
186- }
187-
188- /**
189- * Set mcReproducibleAsNotBad flag
190- *
191- * @param {boolean } mcReproducibleAsNotBad new value
192- */
193- set mcReproducibleAsNotBad ( mcReproducibleAsNotBad ) {
194- this . _mcReproducibleAsNotBad = mcReproducibleAsNotBad ;
195- // this._fetchCurrentPanelData();
196- }
197182}
0 commit comments