Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 11, 2025

What do these changes do?

ShowSupportId

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 11, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 11, 2025 13:43
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Jun 11, 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 pull request refines the error logging behavior on the frontend when starting a pipeline fails, ensuring that a support ID is displayed to aid in debugging. Key updates include:

  • Unifying error logging in StudyEditor.js by replacing conditional branches with a single logError call.
  • Refactoring FlashMessenger.js to improve clarity by extracting the current study before assembling clipboard data.

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/desktop/StudyEditor.js Replaces conditional logging for error status "402" with a unified error logging approach using logError.
services/static-webserver/client/source/class/osparc/FlashMessenger.js Introduces a local currentStudy variable to retrieve study UUID, making the clipboard data assembly more explicit.
Comments suppressed due to low confidence (2)

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

  • The change to unified error logging simplifies the logic, but please verify that removing the explicit handling for error status '402' does not affect any specialized behavior expected for payment-related errors.
osparc.FlashMessenger.logError(err);

services/static-webserver/client/source/class/osparc/FlashMessenger.js:115

  • [nitpick] The refactoring to use the currentStudy variable improves clarity; however, please confirm that using currentStudy.getUuid() uniformly returns the correct and expected UUID format across all usage scenarios.
studyId: currentStudy ? currentStudy.getUuid() : "",

@sonarqubecloud
Copy link

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

nice! Thx

@odeimaiz odeimaiz merged commit 90703ba into ITISFoundation:master Jun 11, 2025
58 checks passed
@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

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.

Error responses with supportID must always be shown in the error dialog

3 participants