-
Notifications
You must be signed in to change notification settings - Fork 14
[OGUI-1842] Add panel with run information in QCG under filters #3232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
…`retrieveRunInformation`
…be set. Clear runInformation on clearFilters()
…he correct data on success
…e run information
…bject-of-retrieveRunStatus
…etrieveRunStatus' into feature/QCG/OGUI-1842/panel-with-run-information
graduta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job on the initial push! I left a few comments but nothing major
| cleanRunInformation && Object.keys(cleanRunInformation).length > 0 && h( | ||
| '.flex-row.g4.items-center.f7.gray-darker.text-center.ph4', | ||
| { | ||
| id: 'header-run-information', | ||
| style: 'overflow-x: auto; margin: 0 auto;', | ||
| }, | ||
| Object.entries(cleanRunInformation).map(([key, value]) => | ||
| h('.flex-row.g1', { | ||
| key: `${key}-${value}`, | ||
| style: 'flex: 0 0 auto;', | ||
| }, [ | ||
| h('strong', `${camelToTitleCase(key)}:`), | ||
| h('span', `${value}`), | ||
| ])), | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be extracted in an independent component to make the code easier to read.
Similar to the line above with lastUpdatePanel
| ])), | ||
| ), | ||
| Array.isArray(detectorsQualities) && detectorsQualities.length > 0 && h( | ||
| '.flex-row.g3.items-center.f7.gray-darker.text-center.ph3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above, please extract this in a component
| * If `this.runNumber` is defined, it asynchronously retrieves the run information | ||
| * via `filterService.getRunInformation(runNumber)` and sets it to `runInformation`, | ||
| * automatically applying any filtering and transformations defined in the setter. | ||
| * If `this.runNumber` is not defined, `runInformation` is reset to an empty object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing @return param doc
| * Sets the run information after filtering and transforming values. | ||
| * - Filters out properties that are `null` or `undefined`. | ||
| * - Applies a transformation function from `RUN_INFORMATION_MAP` for any matching keys. | ||
| * @param {object} value - The new run information object to set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe in the previous PR you have added a typedef to better describe what object we receive Can you please make use of it here rather than the object?
I have JIRA issue created
retrieveRunStatus#3229retrieveRunStatus#3229 that is fetched from Bookkeeping.