-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix indexPattern link on Asset table #10721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Joey Liu <[email protected]>
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Joey Liu <[email protected]>
Working for Trace/Log indexs Test.mov |
There was a problem hiding this 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) => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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
Check List
yarn test:jest
yarn test:jest_integration