Skip to content

Commit bab2c91

Browse files
saifrashedSaif Rashed
andauthored
[O2B-1020] Bug fix for LHC Fill info disappearing (#1344)
* fix: subsequently fetch the new run info after saving run update. * fix: cleaned up code for linter --------- Co-authored-by: Saif Rashed <saifrashed@mbp-van-saif.kpn>
1 parent 1e3ddb0 commit bab2c91

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

lib/public/views/Runs/Details/RunDetailsModel.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ export class RunDetailsModel extends Observable {
143143
body: JSON.stringify(this.runPatch.toPojo()),
144144
};
145145

146-
await this._handleFetchRemoteRun(() => jsonFetch(`/api/runs/${runNumber}`, options));
146+
await jsonFetch(`/api/runs/${runNumber}`, options);
147+
await this._fetchOneRun();
147148
}
148149

149150
/**
@@ -433,10 +434,10 @@ export class HostTreeNodeModel extends CollapsibleTreeNodeModel {
433434
try {
434435
const { data: processesExecutions } =
435436
await getRemoteData('/api/dpl-process/executions?'
436-
+ `runNumber=${this._runNumber}`
437-
+ `&detectorId=${this._detectorId}`
438-
+ `&processId=${this._processId}`
439-
+ `&hostId=${hostId}`);
437+
+ `runNumber=${this._runNumber}`
438+
+ `&detectorId=${this._detectorId}`
439+
+ `&processId=${this._processId}`
440+
+ `&hostId=${hostId}`);
440441
this.children = RemoteData.success(processesExecutions);
441442
} catch (error) {
442443
this.children = RemoteData.failure(error);
@@ -472,9 +473,9 @@ export class DplProcessTreeNodeModel extends CollapsibleTreeNodeModel {
472473
try {
473474
const { data: hosts } =
474475
await getRemoteData('/api/dpl-process/hosts?'
475-
+ `runNumber=${this._runNumber}`
476-
+ `&detectorId=${this._detectorId}`
477-
+ `&processId=${processId}`);
476+
+ `runNumber=${this._runNumber}`
477+
+ `&detectorId=${this._detectorId}`
478+
+ `&processId=${processId}`);
478479
this.children = RemoteData.success(hosts.map((host) => {
479480
const nodeModel = new HostTreeNodeModel(host, this._runNumber, this._detectorId, processId);
480481
nodeModel.bubbleTo(this);

0 commit comments

Comments
 (0)