Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 5, 2025

What do these changes do?

reported by @Konohana0608

Fixed:
fixed

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Bazinga! milestone Jun 5, 2025
@odeimaiz odeimaiz self-assigned this Jun 5, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Jun 5, 2025
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 addresses a frontend bug where editing slides was incorrectly enabled/disabled based on the study mode.

  • In Services.js, additional truthiness checks were added to prevent overwriting complete cached entries.
  • In StudyEditor.js, the conditional for editing slides was modified to correctly restrict editing in "app" and "guided" modes.

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/Services.js Added explicit truthiness checks to safeguard against overwriting complete cache entries.
services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js Adjusted the condition to restrict editing slides when the mode is "app" or "guided".
Comments suppressed due to low confidence (2)

services/static-webserver/client/source/class/osparc/store/Services.js:392

  • Consider adding a comment to clarify why an explicit truthiness check for this.__servicesCached[key][version] is necessary, even though __isInCache() verifies key and version exist.
this.__servicesCached[key][version] &&

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js:539

  • The inline comment should be updated to accurately reflect that the condition checks for both 'app' and 'guided' modes, not just 'app'.
if (["app", "guided"].includes(this.getStudy().getUi().getMode())) {

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 5, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jun 5, 2025

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Jun 5, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at b43e721

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 5, 2025

@mergify mergify bot merged commit b43e721 into ITISFoundation:master Jun 5, 2025
59 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify 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.

4 participants