Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Sep 4, 2025

What do these changes do?

There were a few nasty bugs found during the testing of adding parameters and probes to a node.

These bugs were introduced in this PR, while this PR fixes several bugs related to adding parameters and probes to nodes in the frontend. The primary focus is on handling cases where node metadata is not immediately available when creating new nodes.

AddNodes

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Sep 4, 2025
@odeimaiz odeimaiz added this to the Cheops milestone Sep 4, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Sep 4, 2025
@odeimaiz odeimaiz changed the title 🐛 [Frontend] FIX: Add nodes 🐛 [Frontend] FIXES: Add nodes Sep 4, 2025
@mergify
Copy link
Contributor

mergify bot commented Sep 4, 2025

🧪 CI Insights

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

🟢 All jobs passed!

But CI Insights is watching 👀

@odeimaiz odeimaiz marked this pull request as ready for review September 5, 2025 08:53
@odeimaiz odeimaiz requested a review from Copilot September 5, 2025 08:55
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 fixes several bugs related to adding parameters and probes to nodes in the frontend. The primary focus is on handling cases where node metadata is not immediately available when creating new nodes.

Key changes:

  • Added proper metadata availability checks before accessing node properties
  • Moved event listener registration to ensure proper initialization order
  • Fixed width settings for parameter nodes
  • Added return statements to ensure error propagation in study loading

Reviewed Changes

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

Show a summary per file
File Description
WorkbenchUI.js Moved edge highlighting event listener registration outside metadata check
NodeUI.js Added metadata checks and deferred initialization for node layout population
PropForm.js Added metadata availability checks before accessing node outputs
MainPageHandler.js Added return statements to ensure proper error propagation
Workbench.js Added deferred initialization pattern for parameter/probe node creation
NodeStatus.js Moved lock state initialization to constructor to avoid timing issues

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2025

@odeimaiz odeimaiz enabled auto-merge (squash) September 5, 2025 09:01
@odeimaiz odeimaiz merged commit 3fb8edd into ITISFoundation:master Sep 5, 2025
58 checks passed
GitHK pushed a commit that referenced this pull request Sep 5, 2025
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