-
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
[Discover] Centralize dependencies in kibana_services.ts #48072
[Discover] Centralize dependencies in kibana_services.ts #48072
Conversation
…-07-np-move-doc-to-discover
💚 Build Succeeded |
💔 Build Failed |
💔 Build Failed |
import { VISUALIZE_EMBEDDABLE_TYPE } from '../../../../../../src/legacy/core_plugins/kibana/public/visualize/embeddable'; | ||
import { SEARCH_EMBEDDABLE_TYPE } from '../../../../../../src/legacy/core_plugins/kibana/public/discover/embeddable/constants'; |
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.
dear @elastic/kibana-canvas had to change this import, to ensure, that just this const is imported, and not all of our centralized dependencies of our Discover's NP refactoring
FYI: @flash1293 that's what caused the jest test to fail
@@ -23,4 +23,4 @@ | |||
@import 'doc_viewer/index'; | |||
|
|||
// Context styles | |||
@import 'context/index'; | |||
@import 'angular/context/index'; |
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.
Dear @elastic/kibana-design , valued owner and ruler of the 7 SCSS code kingdoms
There were just path changes in this PR.
Your humble servant
@kertal
💚 Build Succeeded |
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 good to me, just once place in the embeddable where we can remove a reference to the new platform.
import { TExecuteTriggerActions } from 'src/plugins/ui_actions/public'; | ||
import { npStart, npSetup } from 'ui/new_platform'; |
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 like kibana_services
can provide those.
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.
@flash1293 thx, yes, I've applied the changes, and tests look now good again 🎉
💔 Build Failed |
@elasticmachine merge upstream |
…kertal/kibana into kertal-pr-2019-10-10-np-basic-structure
💚 Build Succeeded |
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.
Canvas changes are good 👍
Pinging @elastic/kibana-app (Team:KibanaApp) |
Summary
This PR moves most angular code / dependencies into the
angular
subfolder, centralizes dependencies inkibana_services.ts
and implements a basic new platform plugin structureChecklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately