-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[NP] Move ui/saved_objects to NP #57452
[NP] Move ui/saved_objects to NP #57452
Conversation
# Conflicts: # src/legacy/core_plugins/kibana/public/dashboard/legacy_imports.ts
# Conflicts: # src/legacy/core_plugins/visualizations/public/saved_visualizations/_saved_vis.ts
Pinging @elastic/kibana-app (Team:KibanaApp) |
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.
Looks mostly good to me, great work! Left one comment I'm not sure about.
I know it's already like this in master, but the plugin should contain a kibana.json
descriptor file on the top level. Check out the other plugins in src/plugins
. I would have thought this would fail the build somehow, interesting.
This is only required if the plugin is a real "runtime" plugin, not just static exports. I don't think this is necessary until we migrate the management UI into this plugin as well, but doesn't hurt to add it now. 🤷♂ |
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.
I know this is just a move to unblock other teams, but I am a bit concerned about the lack of test coverage, especially on the SavedObjectsLoader class. I think it's fine if we merge without additional coverage, but I'd like to see a follow-up issue/PR for getting at least some more coverage on this.
# Conflicts: # src/plugins/data/public/mocks.ts # src/plugins/data/public/ui/query_string_input/__snapshots__/query_string_input.test.tsx.snap
@flash1293 , @joshdover I added |
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.
I am working on finishing shim for src/legacy/core_plugins/visualizations/
and this was one of the biggest dependencies there. Thanks 👍
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.
Changes LGTM, thanks a lot for this! This is another major blocker gone for multiple teams. I will create a follow-up issue to subsequently clean up the implementation and increase test coverage.
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.
maps changes lgtm
code review
# Conflicts: # src/legacy/core_plugins/visualizations/public/embeddable/visualize_embeddable.ts
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
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 👍
PR elastic#57452 added an empty savedObjects plugin with the same name as the core plugin. Due to the way we were spreading into our context coupled with the fact that we don't get NP's whitelisting of plugins on legacy, we were overriding the core plugin here. If this happens again, we should perhaps whitelist our plugins here.
PR #57452 added an empty savedObjects plugin with the same name as the core plugin. Due to the way we were spreading into our context coupled with the fact that we don't get NP's whitelisting of plugins on legacy, we were overriding the core plugin here. If this happens again, we should perhaps whitelist our plugins here.
…-out-of-legacy * 'master' of github.com:elastic/kibana: (109 commits) document difference between log record formats (elastic#57798) Expose elasticsearch config schema (elastic#57655) [ui/agg_response/tabify] update types for search/expressions/build_tabular_inspector_data.ts (elastic#58130) [SIEM] Cleans Cypress tests code (elastic#58134) fix: 🐛 make dev server Storybook builds work again (elastic#58188) Prevent core savedObjects plugin from being overridden (elastic#58193) Expose serverBasePath on client-side (elastic#58070) Fix legend sizing on area charts (elastic#58083) Drilldown plugin (elastic#58097) [skip-ci] Fix broken links to saved objects APIs in MIGRATION.md (elastic#58033) [ML] New Platform server shim: update datafeed routes (elastic#57739) Add flag for building static storybook site (elastic#58050) add monaco to kbn/ui-shared-deps and load required features for all uses (elastic#58075) [SIEM] Let us try out code owners for a little while and see what happens Add throttle param to Alerting readme (elastic#57609) [NP] Move ui/saved_objects to NP (elastic#57452) [Logs UI] Fix column reordering in settings page (elastic#58104) Fix browser date format (elastic#57714) Add filter for ILM phase to Index Management (revert elastic#45486) (elastic#57402) Clarify Precision function in Timelion Kibana (elastic#58031) ... # Conflicts: # x-pack/.i18nrc.json
* Move saved_objects to NP * Update path for imports * Remove ui/saved_objects * Update i18n IDs * Convert test * Replace Bluebird to Promise; fix unit tests * Mock openConfirm in test * Add kibana.json * Check unit test * Update unit tests Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
PR #57452 added an empty savedObjects plugin with the same name as the core plugin. Due to the way we were spreading into our context coupled with the fact that we don't get NP's whitelisting of plugins on legacy, we were overriding the core plugin here. If this happens again, we should perhaps whitelist our plugins here. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes: #56954.
This PR contains movement of
src/legacy/ui/public/saved_objects
tosrc/plugins/saved_objects/public
. All consumers were switched to the new location directly. The old unit tests were converted to Jest.