Skip to content

🐛 Fix Argument Inputs not appearing in unsaved / uncompiled Run Dialogues - #379

Merged
MFA-X-AI merged 1 commit into
masterfrom
fahreza/args-run-bugfix
Feb 21, 2025
Merged

MFA-X-AI merged 1 commit into
masterfrom
fahreza/args-run-bugfix

Conversation

@MFA-X-AI

Copy link
Copy Markdown
Member

Description

Fixed an issue where the arguments dialog would show empty arrays when triggering compile-run directly on a dirty (unsaved) model. This was happening because the state variables that feed the args dialog were only being updated when the initialize flag was true.

The fix adds a helper function getArgumentNodes() that recalculates the current argument nodes just before opening the dialog, ensuring the dialog always has up-to-date values regardless of model state. This was implemented in both handleLocalRunDialog and handleRemoteRunDialog.

This PR also removes the alert after compiling.

References

N/A

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

1. Test Compile-Run on Dirty Model

  1. Open a Xircuits workflow
  2. Add some argument nodes
  3. Make changes without saving
  4. Click compile-run
  5. Verify that arguments appear correctly in dialog

2. Test Compile-Run on Saved Model

  1. Open a Xircuits workflow
  2. Add some argument nodes
  3. Save changes
  4. Click compile-run
  5. Verify that arguments appear correctly in dialog

Tested on?

  • Windows
  • Linux
  • Centos
  • Mac
  • Others

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/fahreza/args-run-bugfix

@MFA-X-AI MFA-X-AI changed the title recalculate argument nodes before dialog to handle dirty model state … 🐛 Fix Argument Inputs not appearing in unsaved / uncompiled Run Dialogues Feb 21, 2025
@MFA-X-AI
MFA-X-AI merged commit 2ccce24 into master Feb 21, 2025
@MFA-X-AI
MFA-X-AI deleted the fahreza/args-run-bugfix branch February 21, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant