Skip to content

[OGUI-1701] Implement session-service#2928

Merged
graduta merged 85 commits intodevfrom
feature/CNF/OGUI-1701/session-service
Oct 31, 2025
Merged

[OGUI-1701] Implement session-service#2928
graduta merged 85 commits intodevfrom
feature/CNF/OGUI-1701/session-service

Conversation

@Deaponn
Copy link
Copy Markdown
Collaborator

@Deaponn Deaponn commented Jun 11, 2025

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue "Status" is set to "In review"
  • PR labels are selected

Deaponn added 2 commits June 11, 2025 14:30
Configure nginx proxy to communicate with Control backend which is running locally

Configure Prettier (for formatting) and ESLint (for more agressive linting)
@Deaponn Deaponn requested a review from graduta as a code owner June 11, 2025 21:09
@Deaponn Deaponn marked this pull request as draft June 12, 2025 15:08
@Deaponn Deaponn marked this pull request as ready for review June 16, 2025 13:24
@Deaponn Deaponn requested review from piechnikk and sKrzysieK June 30, 2025 10:49
sKrzysieK
sKrzysieK previously approved these changes Jul 7, 2025
Copy link
Copy Markdown
Member

@graduta graduta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While fetching session data in this way, it means that you will have to do this request at the loading of the application and stop any other request from being sent. Thus, delaying the load of the application.

I would recommend you write a fetch wrapper that always check if a token is present in current state (e.g. sessionService.js) and if not, makes the request to server to get it.

If the token is present, then use that one in the query.

You can have a look at the fetchClient.js in the framework which does exactly this for the rest of the GUIs: https://github.com/AliceO2Group/WebUi/blob/dev/Framework/Frontend/js/src/fetchClient.js

Copy link
Copy Markdown
Member

@graduta graduta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another comment that I have is:

  • if the token is to be stored in sessionStorage of the browser, this of course it will help for example when the browser page is refreshed.
  • but this will also create an issue, that is you are not tackling the case in which the token is invalid and you need to refresh the token.

Instead, if you save the token the state of the app, this will be refreshed automatically at each page entire load

This comment is open for discussion

@Deaponn Deaponn requested review from graduta and sKrzysieK September 1, 2025 13:25
mariscalromeroalejandro and others added 20 commits October 6, 2025 13:36
This PR adapts the frontend to use a dropdown with the ongoing runs provided by Kafka in runs mode.
…a layout (#3084)

* get object by name or id, based on a context
* patch qcg to v3.15.1
…#3095)

* bugfix: convert iterator into an array to be supported by safari
* Bump QCG from 3.15.1 to 3.15.2
Bumps the dev-dependencies group in /Control with 1 update: [nock](https://github.com/nock/nock).


Updates `nock` from 14.0.0 to 15.0.0
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v14.0.0...v15.0.0)

---
updated-dependencies:
- dependency-name: nock
  dependency-version: 15.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
...
Bumps [winston](https://github.com/winstonjs/winston) from 3.17.0 to 3.18.0.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.17.0...v3.18.0)

---
updated-dependencies:
- dependency-name: winston
  dependency-version: 3.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George Raduta <george.raduta@cern.ch>
…#3088)

Bumps the dev-dependencies group in /InfoLogger with 1 update: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc).


Updates `eslint-plugin-jsdoc` from 60.2.0 to 60.5.0
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](gajus/eslint-plugin-jsdoc@v60.2.0...v60.5.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 60.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...
)

Bumps the dev-dependencies group with 3 updates in the /Framework directory: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [nock](https://github.com/nock/nock) and [puppeteer](https://github.com/puppeteer/puppeteer).


Updates `eslint-plugin-jsdoc` from 60.2.0 to 60.7.1
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](gajus/eslint-plugin-jsdoc@v60.2.0...v60.7.1)

Updates `nock` from 14.0.0 to 15.0.0
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v14.0.0...v15.0.0)

Updates `puppeteer` from 24.22.1 to 24.23.0
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](puppeteer/puppeteer@puppeteer-v24.22.1...puppeteer-v24.23.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 60.7.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: nock
  dependency-version: 15.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: puppeteer
  dependency-version: 24.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...
)

* Bump the dev-dependencies group across 1 directory with 3 updates

Bumps the dev-dependencies group with 3 updates in the /QualityControl directory: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [nock](https://github.com/nock/nock) and [puppeteer](https://github.com/puppeteer/puppeteer).


Updates `eslint-plugin-jsdoc` from 60.1.1 to 60.7.1
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](gajus/eslint-plugin-jsdoc@v60.1.1...v60.7.1)

Updates `nock` from 14.0.4 to 15.0.0
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](nock/nock@v14.0.4...v15.0.0)

Updates `puppeteer` from 24.22.0 to 24.23.0
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](puppeteer/puppeteer@puppeteer-v24.22.0...puppeteer-v24.23.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 60.7.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: nock
  dependency-version: 15.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-dependencies
- dependency-name: puppeteer
  dependency-version: 24.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update docker deps

* Update jsroot patch

---------

Co-authored-by: George Raduta <george.raduta@cern.ch>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...
* updates the front-end to display lock buttons for 'Force Release ALL'&'Force Take ALL' to admin users only
* updates the API endpoint to restrict those actions via the middleware
* add tests for aforementioned cases

Reason:
* restriction is needed to prevent shifters from force taking all locks and attempting to start a run with detectors that should not be used. 
* in this manner the shifter has to take the locks one by one, confirming which ones are to be used with SL
Configure nginx proxy to communicate with Control backend which is running locally

Configure Prettier (for formatting) and ESLint (for more agressive linting)
Comment thread Configuration/webapp/app/root.tsx Fixed
@Deaponn
Copy link
Copy Markdown
Collaborator Author

Deaponn commented Oct 8, 2025

The wrapper for the fetch utility (and the refactor from sessionService to useSession custom hook) will be developed in another PR. I have already created Jira task for that

@Deaponn Deaponn requested a review from graduta October 8, 2025 12:54
@graduta graduta merged commit b50acbf into dev Oct 31, 2025
4 checks passed
@graduta graduta deleted the feature/CNF/OGUI-1701/session-service branch October 31, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

6 participants