Skip to content

UIEXT-3484: WebUI-Migration Find MIME-Type#42

Open
tcrundall-tng wants to merge 5 commits intomasterfrom
enh/UIEXT-3484-webui-migration-find-mime-type
Open

UIEXT-3484: WebUI-Migration Find MIME-Type#42
tcrundall-tng wants to merge 5 commits intomasterfrom
enh/UIEXT-3484-webui-migration-find-mime-type

Conversation

@tcrundall-tng
Copy link

UIEXT-3484 (WebUI-Migration Find MIME-Type)

@tcrundall-tng tcrundall-tng requested a review from a team as a code owner March 24, 2026 14:41
@tcrundall-tng tcrundall-tng requested review from a team, Copilot and knime-ghub-bot and removed request for a team March 24, 2026 14:41
Copy link

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

Migrates the Find MIME-Type node to the WebUI parameters/dialog framework and replaces the legacy XML-based node description with a programmatic description, including snapshot-based tests for the new parameter model.

Changes:

  • Replaced the legacy Swing dialog with NodeParameters (WebUI) for column selection, including an auto-guess value provider.
  • Updated the node factory to provide a WebUI dialog (DefaultNodeDialog), KAI interface, and programmatic node description; removed the old NodeFactory.xml.
  • Added snapshot-based tests and snapshots for the new parameters, plus a small auto-guess fallback in NodeModel.configure.

Reviewed changes

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

Show a summary per file
File Description
.../FindMIMETypeNodeParameters.java Introduces WebUI NodeParameters for the node dialog/settings.
.../FindMIMETypeNodeModel.java Adds auto-guessing of the URI column during configure if unset.
.../FindMIMETypeNodeFactory.xml Removes legacy XML node description.
.../FindMIMETypeNodeFactory.java Adds WebUI dialog/description/KAI integration via factory utilities.
.../FindMIMETypeNodeParametersTest.java Adds snapshot test coverage for the new parameters.
...FindMIMETypeNodeParametersTest*.snap Adds expected JSON forms/settings snapshots for the test.
.../files/node_settings/FindMIMETypeNodeParameters.xml Adds legacy settings XML used as snapshot test input.
Comments suppressed due to low confidence (1)

org.knime.base.filehandling/src/org/knime/base/filehandling/findmimetype/FindMIMETypeNodeParameters.java:82

  • m_columnSelection is left uninitialized, so it can be null (and the generated JSON schema won’t have a default). Other migrated NodeParameters in this module initialize string settings to "" to avoid nulls and keep defaults consistent with the legacy SettingsModel default.

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

@tcrundall-tng tcrundall-tng force-pushed the enh/UIEXT-3484-webui-migration-find-mime-type branch from e0d4066 to ead32fb Compare March 24, 2026 14:46
…oicesProvider

AP-23709 (Support username and password fields instead of flow variables in OAuth2 Authenticator nodes)
@tcrundall-tng tcrundall-tng force-pushed the enh/UIEXT-3484-webui-migration-find-mime-type branch from ead32fb to 1070d4f Compare March 25, 2026 08:11
@tcrundall-tng tcrundall-tng force-pushed the enh/UIEXT-3484-webui-migration-find-mime-type branch from 1070d4f to ed9bc04 Compare March 25, 2026 10:04
UIEXT-3484 (WebUI-Migration Find MIME-Type)
@tcrundall-tng
Copy link
Author

tcrundall-tng commented Mar 25, 2026

⚠️ Should only be merged once #43 is merged ⚠️

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
78.7% Coverage on New Code (required ≥ 85%)

See analysis details on SonarQube Cloud

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.

4 participants