Skip to content

Fix MongoDB transform dialog layout, update-option enablement, and Input preview when not outputting JSON#7165

Merged
hansva merged 1 commit into
apache:mainfrom
leehaut:hotfix/lance-common-69
May 25, 2026
Merged

Fix MongoDB transform dialog layout, update-option enablement, and Input preview when not outputting JSON#7165
hansva merged 1 commit into
apache:mainfrom
leehaut:hotfix/lance-common-69

Conversation

@leehaut
Copy link
Copy Markdown
Contributor

@leehaut leehaut commented May 23, 2026

UI layout and enablement

  • MongoDB Input (MongoDbInputDialog): Vertically align the Collection label, combo, and Get collections button on one row (FormAttachment + SWT.CENTER, matching MongoDB Output).
  • MongoDB Delete (MongoDbDeleteDialog): Same Collection row alignment; align Use JSON query label and checkbox on one row (checkbox was offset with margin * 3).
  • MongoDB Output (MongoDbOutputDialog): When Update / Modifier update toggles enable or disable Upsert, Multi-update, and Modifier options, apply the same state to their labels via setUpdateOptionControlsEnabled() (on load, on selection, and after dialog build).

MongoDB Input preview / init fix

When Output a single JSON field is unchecked and no fields are defined on the Fields tab, preview failed with:
NullPointerException: Cannot invoke "java.util.List.iterator()" because "fields" is null
at MongoDbInputData.setMongoFields.

…put preview when not outputting JSON

Signed-off-by: lance <leehaut@gmail.com>
@hansva hansva merged commit 2c25281 into apache:main May 25, 2026
2 checks passed
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