-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
ML locator #103652
ML locator #103652
Conversation
Pinging @elastic/kibana-app-services (Team:AppServices) |
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.
code LGTM
.../application/components/anomaly_results_view_selector/anomaly_results_view_selector.test.tsx
Outdated
Show resolved
Hide resolved
Thanks for updating our url generator! Made some small changes, mainly to address a regression caused by the new locator already including the base path. Tested ML changes and can confirm the following work correctly after the latest changes:
|
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.
Security Solution LGTM 👍
I left a small optional suggestion.
...ck/plugins/security_solution/public/common/components/ml/links/create_explorer_link.test.tsx
Outdated
Show resolved
Hide resolved
Latest changes LGTM 🎉 |
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
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.
infra
plugin changes LGTM, thank you!
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* fix: 🐛 cast type * chore: 🤖 remove unused parameter * feat: 🎸 implement ML locator * test: 💍 add locator tests * feat: 🎸 expose ML locator form plugin contract * feat: 🎸 deprecate ml url generator * feat: 🎸 use locator in useMlHref() React hook * fix: 🐛 remove non-existing property * fix: 🐛 remove unused parameter * feat: 🎸 replace url generator by locator * refactor: 💡 remove ML url generator and replace by locator * fix: 🐛 correct type check error * test: 💍 add share plugin mock and use it * test: 💍 update mock * Remove usage of excludeBasePath * Fix recently accessed url for create job to data visualizer * refactor: 💡 rename interface * test: 💍 move locator mock into the share plugin * test: 💍 update Jest snapshot * test: 💍 use shared URL service mock * refactor: 💡 update usage after merging latest * refactor: 💡 use locator instead of generator * chore: 🤖 remove unused import Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
* fix: 🐛 cast type * chore: 🤖 remove unused parameter * feat: 🎸 implement ML locator * test: 💍 add locator tests * feat: 🎸 expose ML locator form plugin contract * feat: 🎸 deprecate ml url generator * feat: 🎸 use locator in useMlHref() React hook * fix: 🐛 remove non-existing property * fix: 🐛 remove unused parameter * feat: 🎸 replace url generator by locator * refactor: 💡 remove ML url generator and replace by locator * fix: 🐛 correct type check error * test: 💍 add share plugin mock and use it * test: 💍 update mock * Remove usage of excludeBasePath * Fix recently accessed url for create job to data visualizer * refactor: 💡 rename interface * test: 💍 move locator mock into the share plugin * test: 💍 update Jest snapshot * test: 💍 use shared URL service mock * refactor: 💡 update usage after merging latest * refactor: 💡 use locator instead of generator * chore: 🤖 remove unused import Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co> Co-authored-by: Vadim Dalecky <streamich@gmail.com> Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
Summary
Closes #98107
Checklist
Delete any items that are not applicable to this PR.
For maintainers
Testing
ML URL generator that is now replaced by locator was used in many places throughout ML, APM, Logs, Security apps. For reviewers: please test the links that are generated by the locator still work in your app!
Below are a couple of example usages.
In logs anomaly detection:
x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx
Link in ML setup flyout cards.
x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx