-
Notifications
You must be signed in to change notification settings - Fork 14
[OGUI-1852] Open Bookkeeping from RunNumber ObjectInfoPanel #3272
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?
[OGUI-1852] Open Bookkeeping from RunNumber ObjectInfoPanel #3272
Conversation
…kkeeping is configured
| strictEqual(baseUrl, `${config.bookkeeping.url}/`); | ||
| strictEqual(runNumber, url.searchParams.get('runNumber')) | ||
| } | ||
| ) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note test
the enclosing function
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 18 hours ago
To fix this, we should explicitly terminate the await testParent.test(...) statement that ends around line 241 with a semicolon. This means adding a ; immediately after the closing ) line so that the call is clearly a complete statement before the next await testParent.test(...) call begins. No imports, methods, or additional definitions are needed—this is a simple syntactic/style correction.
Concretely, in QualityControl/test/public/pages/object-tree.test.js, locate the await testParent.test( block starting at line 225 ('should have an external link to bookkeeping inline with the run number row') and ending at line 241. Change the final line of that call from ) to );. This preserves all existing functionality while eliminating reliance on automatic semicolon insertion.
-
Copy modified line R241
| @@ -238,7 +238,7 @@ | ||
| strictEqual(baseUrl, `${config.bookkeeping.url}/`); | ||
| strictEqual(runNumber, url.searchParams.get('runNumber')); | ||
| } | ||
| ) | ||
| ); | ||
|
|
||
| await testParent.test( | ||
| 'should close the object plot upon clicking the close button', |
I have JIRA issue created
The user should be able to press on an icon that is to be displayed in the object info panel and navigate in a NEW tab to bookkeeipng run-details page of that run number.
For example, at start we load
filter/configurationwhere we send data loaded on server start.We should add a new endpoint:
serviceswhich returns an object of services and their connection links. For start, we will only provide in this object the configuraiton of bookkeeping service:Please add:
Then on front-end side use this data to build the URL needed to access bookkeeping on the run-details page
e.g. of URL
https://ali-bookkeeping.cern.ch/?page=run-detail&runNumber=568864The button should be an icon next to the runNumber and should not be copied when cliking on runNumber
Moreover, if Bookkeeping is not present in the config.js file, this button should not be displayed