Skip to content

UIEXT-3492: Wait: Hide local file option in remote context#160

Open
PaulBrnrther wants to merge 1 commit intomasterfrom
enh/UIEXT-3492-hide-file-settings-in-wait-node
Open

UIEXT-3492: Wait: Hide local file option in remote context#160
PaulBrnrther wants to merge 1 commit intomasterfrom
enh/UIEXT-3492-hide-file-settings-in-wait-node

Conversation

@PaulBrnrther
Copy link
Copy Markdown
Contributor

UIEXT-3492 (Hide file settings in Wait node)

@PaulBrnrther PaulBrnrther requested a review from a team as a code owner March 25, 2026 16:22
@PaulBrnrther PaulBrnrther requested review from Copilot and knime-ghub-bot and removed request for a team March 25, 2026 16:22
Copy link
Copy Markdown
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 updates the Sleep/Wait node’s WebUI dialog parameters to prevent offering local-file-based “wait for file change” configuration when the local file system is not available (e.g., in a remote context), while still handling existing workflows that already use that mode.

Changes:

  • Adds a dynamic WaitMode choices provider to hide WAIT_FILE when local FS isn’t supported (unless already selected).
  • Adds a local-FS unavailability warning message and disables file-related controls when local FS isn’t supported.
  • Updates WebUI snapshot expectations to reflect the new schema/UI rules and initial updates.

Reviewed changes

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

File Description
org.knime.base/src/org/knime/base/node/flowcontrol/sleep/SleepNodeParameters.java Adds dynamic wait-mode option filtering plus warning/disable behavior for file-wait settings in non-local FS contexts.
org.knime.base.tests/files/test_snapshots/org.knime.base.node.flowcontrol.sleep.SleepNodeParametersTest1.snap Updates expected JSON forms/schema/UI snapshot for the parameter model (variant 1).
org.knime.base.tests/files/test_snapshots/org.knime.base.node.flowcontrol.sleep.SleepNodeParametersTest.snap Updates expected JSON forms/schema/UI snapshot for the parameter model (variant 2).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PaulBrnrther PaulBrnrther force-pushed the enh/UIEXT-3492-hide-file-settings-in-wait-node branch from fe8a1fd to 036b75d Compare March 27, 2026 08:52
Remove the "Wait for file change" option permanently. The WaitMode enum
no longer contains WAIT_FILE. For backwards compatibility, settings with
the old ordinal (2) are detected on load:

- SleepNodeModel.getWaitMode() throws InvalidSettingsException for ordinal 2,
  causing validateSettings to report a reconfiguration-needed error.
- WaitModePersistor catches that exception and returns null which results in no option being selected visually
- we show a warning in the dialog on how to procede.

Once the user saves the dialog after reconfiguring, wait_option is written
as 0 or 1 and it is no longer possible to see the message.

UIEXT-3492 (Hide file settings in Wait node)
@PaulBrnrther PaulBrnrther force-pushed the enh/UIEXT-3492-hide-file-settings-in-wait-node branch from 036b75d to 33e1059 Compare March 27, 2026 12:16
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.

2 participants