Skip to content

Conversation

Maosaic
Copy link
Collaborator

@Maosaic Maosaic commented Oct 14, 2025

Description

Fix a problem causing indexPattern link on Asset table failed to load when dataset management plugin is enabled.

Saved object server side compute URL of indexPattern type as /indexPatterns/patterns/* which does not match with dataset management plugin route.
https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/data/server/saved_objects/index_patterns.ts#L45-L56

This PR update dataset management plugin to register a redirection from /indexPatterns route to /datasets

This PR also added unit test to cover some components introduced by #10714

Issues Resolved

Screenshot

Testing the changes

Changelog

  • fix: Fix indexPattern link on Asset table

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

Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.35%. Comparing base (38b67c2) to head (593087f).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/plugins/dataset_management/public/plugin.ts 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10721      +/-   ##
==========================================
+ Coverage   60.29%   60.35%   +0.05%     
==========================================
  Files        4460     4462       +2     
  Lines      119352   119490     +138     
  Branches    19711    19747      +36     
==========================================
+ Hits        71968    72120     +152     
+ Misses      42385    42372      -13     
+ Partials     4999     4998       -1     
Flag Coverage Δ
Linux_1 26.58% <0.00%> (-0.01%) ⬇️
Linux_2 38.82% <ø> (ø)
Linux_3 38.92% <20.00%> (+0.02%) ⬆️
Linux_4 33.00% <100.00%> (+0.10%) ⬆️
Windows_1 26.59% <0.00%> (-0.01%) ⬇️
Windows_2 38.79% <ø> (ø)
Windows_3 38.92% <20.00%> (+0.02%) ⬆️
Windows_4 33.00% <100.00%> (+0.10%) ⬆️

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 <[email protected]>
@Maosaic Maosaic added the OSD Changes being merged by the OSD team label Oct 15, 2025
@TackAdam
Copy link
Collaborator

Working for Trace/Log indexs

Test.mov

Copy link
Collaborator

@TackAdam TackAdam left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fast follow/fix

});

// Forward indexPatterns management page to datasets management page
urlForwarding.forwardApp('indexPatterns', DM_APP_ID, (path) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would we be removing the indexPatterns management page code at some point, if its being deprecated? Is it being deprecated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Eventaully yes, for now they are coexist

@Maosaic Maosaic merged commit 8bc1330 into opensearch-project:main Oct 16, 2025
85 of 87 checks passed
@Maosaic Maosaic deleted the nav branch October 16, 2025 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distinguished-contributor OSD Changes being merged by the OSD team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants