Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Oct 23, 2025

What do these changes do?

This PR fixes the initialization of the chatbot "group" by defaulting its accessRights to no-read

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Oct 23, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Oct 23, 2025
@odeimaiz odeimaiz added this to the Imparable milestone Oct 23, 2025
@odeimaiz odeimaiz requested a review from Copilot October 23, 2025 13:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the handling of default access rights for groups by moving the default access rights logic from the caller to the Group model constructor. The change simplifies group initialization and makes the code more maintainable by centralizing the default access rights logic.

Key changes:

  • Default access rights are now set in the Group model constructor when accessRights are not provided
  • Chatbot group handling is unified to use the same __addToGroupsCache method as other groups
  • Added "chatbot" as a valid groupType in the Group model

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
services/static-webserver/client/source/class/osparc/store/Groups.js Removed manual setting of default accessRights for support group; unified chatbot group initialization to use __addToGroupsCache
services/static-webserver/client/source/class/osparc/data/model/Group.js Added default accessRights in constructor and "chatbot" to valid groupType values

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@odeimaiz odeimaiz changed the title default access rights [Frontend] Fix: no-read default accessRights for the chatbot user Oct 23, 2025
@odeimaiz odeimaiz changed the title [Frontend] Fix: no-read default accessRights for the chatbot user 🐛 [Frontend] Fix: no-read default accessRights for the chatbot user Oct 23, 2025
@sonarqubecloud
Copy link

@odeimaiz odeimaiz enabled auto-merge (squash) October 23, 2025 13:57
@odeimaiz odeimaiz merged commit e539d3f into ITISFoundation:master Oct 23, 2025
58 checks passed
@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2025

🧪 CI Insights

Here's what we observed from your CI run for c44342b.

✅ Passed Jobs With Interesting Signals

Pipeline Job Signal Health on master Retries 🔍 CI Insights 📄 Logs
CI unit-tests You had a 25% chance of failing… lucky you! 🎲 Flaky Configure an automatic retry View View

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants