Skip to content

Fixes #35412: Report CoreEnumMultiSelectField focus to the form's doc panel - #35414

Merged
chirag-madlani merged 2 commits into
mainfrom
fix/enum-multiselect-doc-panel-focus
Oct 15, 2026
Merged

chirag-madlani merged 2 commits into
mainfrom
fix/enum-multiselect-doc-panel-focus

Conversation

@chirag-madlani

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #35412

CoreEnumMultiSelectField now reports focus through formContext.handleFocus, as CoreArrayField and CoreBooleanField already do. Forms whose doc panel follows the active field, such as app configuration, now highlight the docs for uiFieldType: "treeSelect" arrays: entities in Search Indexing, Cache Warmup, RDF Index and Data Insights, and Metadata Exporter eventTypes.

Raised in review of open-metadata/openmetadata-collate#7462, which drops a Collate override that used to report this focus. Companion to #35404, which fixes the same field's dropdown position. I couldn't add this to #35404 because it's already in the merge queue.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Focusing a uiFieldType: "treeSelect" array field calls the form's handleFocus with the field's id (root/entities), so the doc panel can follow it.

Unit tests

  • I added unit tests for the new/changed logic.
  • CoreEnumMultiSelectField.test.tsx: new test, "reports focus to the form so its doc panel can follow the field". It fails without the change and passes with it; the file passes 6/6.
  • make ui-checkstyle-changed is clean.
  • Coverage % not measured.

Backend integration tests

  • Not applicable (no backend API changes). make java_affected: no Java tests impacted.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable: no new specs.
  • make playwright_affected selects 35 specs, since every FormBuilderV1 form maps here. I have no OSS server locally (only a Collate one), so I couldn't run them meaningfully; left to the merge queue. The change only adds an onFocus callback that is a no-op unless the form passes handleFocus.

Not run against an OSS server (see above).

Manual testing performed

None beyond the unit test. The doc-panel side was already checked for CoreBooleanField on the Collate app configuration page (open-metadata/openmetadata-collate#7265): toggling Search Indexing's autoTune highlights its doc section.

🤖 Generated with Claude Code

… panel

CoreArrayField and CoreBooleanField report focus through
formContext.handleFocus so a form's doc panel follows the active field;
CoreEnumMultiSelectField did not, so treeSelect arrays never highlighted their
doc section.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 07:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 77%
77.66% (125653/161783) 64.31% (79292/123289) 65.52% (26468/40394)

@chirag-madlani chirag-madlani self-assigned this Oct 14, 2026
Copilot AI balanced review requested due to automatic review settings October 15, 2026 04:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gitar-bot

gitar-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Reporting enum-multiselect focus to the form changes doc-panel navigation; an incorrect field ID could highlight mismatched documentation.

Fixes the doc panel not following CoreEnumMultiSelectField focus by reporting focus through formContext.handleFocus, matching CoreArrayField and CoreBooleanField. Forms like app configuration now highlight docs for treeSelect arrays such as entities and eventTypes. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@chirag-madlani
chirag-madlani added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit 8984fe4 Oct 15, 2026
77 checks passed
@chirag-madlani
chirag-madlani deleted the fix/enum-multiselect-doc-panel-focus branch October 15, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CoreEnumMultiSelectField doesn't report focus, so the doc panel never follows it

3 participants