Skip to content

[Explore] Update dataset interface in fields selector component#10483

Merged
Maosaic merged 3 commits intoopensearch-project:mainfrom
Maosaic:lds
Sep 5, 2025
Merged

[Explore] Update dataset interface in fields selector component#10483
Maosaic merged 3 commits intoopensearch-project:mainfrom
Maosaic:lds

Conversation

@Maosaic
Copy link
Collaborator

@Maosaic Maosaic commented Sep 4, 2025

Description

Update fields selector component interface to consume DataView/DataSet instead of IndexPattern.

Issues Resolved

Screenshot

Testing the changes

Changelog

  • chore: Update dataset interface in fields selector component

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: Joey Liu <jiyili@amazon.com>
@codecov
Copy link

codecov bot commented Sep 4, 2025

Codecov Report

❌ Patch coverage is 58.33333% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.96%. Comparing base (899c638) to head (6da3814).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ields_selector/lib/get_index_pattern_field_list.ts 0.00% 4 Missing ⚠️
...ic/components/fields_selector/discover_sidebar.tsx 40.00% 1 Missing and 2 partials ⚠️
...blic/components/fields_selector/lib/get_details.ts 0.00% 2 Missing ⚠️
...ponents/fields_selector/discover_field_details.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10483      +/-   ##
==========================================
+ Coverage   61.93%   61.96%   +0.02%     
==========================================
  Files        4271     4272       +1     
  Lines      108978   109011      +33     
  Branches    17921    17922       +1     
==========================================
+ Hits        67494    67547      +53     
+ Misses      36912    36884      -28     
- Partials     4572     4580       +8     
Flag Coverage Δ
Linux_1 27.65% <ø> (+<0.01%) ⬆️
Linux_2 41.37% <ø> (ø)
Linux_3 39.52% <ø> (+<0.01%) ⬆️
Linux_4 33.29% <58.33%> (+0.05%) ⬆️
Windows_1 27.66% <ø> (+<0.01%) ⬆️
Windows_2 41.34% <ø> (ø)
Windows_3 39.52% <ø> (+<0.01%) ⬆️
Windows_4 33.29% <58.33%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Joey Liu <jiyili@amazon.com>
import { uiSettingsServiceMock } from './ui_settings/ui_settings_service.mock';
import { workspacesServiceMock } from './workspace/workspaces_service.mock';

import { keyboardShortcutServiceMock } from './keyboard_shortcut/keyboard_shortcut_service.mock';
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this change part of same requirement ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This change is require for the test mock helper getStubDataView due to the recent keyboard shortcut change to CoreSystem

@Maosaic Maosaic merged commit 98a4bbd into opensearch-project:main Sep 5, 2025
102 of 106 checks passed
ashwin-pc pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Sep 17, 2025
…search-project#10483)

* [Explore] Update dataset interface in fields selector component

Signed-off-by: Joey Liu <jiyili@amazon.com>

* Changeset file for PR opensearch-project#10483 created/updated

* update snapshot

Signed-off-by: Joey Liu <jiyili@amazon.com>

---------

Signed-off-by: Joey Liu <jiyili@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants