shim visualizations plugin#50624
Conversation
💔 Build Failed
|
💔 Build Failed
|
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
💔 Build Failed
|
...re_plugins/visualizations/public/np_ready/public/legacy/__tests__/vis_types/base_vis_type.js
Outdated
Show resolved
Hide resolved
💔 Build Failed
|
💔 Build Failed
|
|
@elasticmachine merge upstream |
💔 Build Failed
|
79ff296 to
a6f4f03
Compare
💔 Build Failed
|
💔 Build Failed
|
💔 Build Failed
|
💔 Build Failed
|
cchaos
left a comment
There was a problem hiding this comment.
SASS files were just moved
💔 Build Failed
|
💚 Build Succeeded |
| createFormat, | ||
| } from '../../../legacy_imports'; | ||
| // eslint-disable-next-line | ||
| import { SearchSourceContract } from '../../../../../../ui/public/courier/search_source/search_source'; |
There was a problem hiding this comment.
Why not import from ui/public?
There was a problem hiding this comment.
to limit it to only this type ... else i was getting weird tests failiures
| return { | ||
| createBaseVisualization: (config: any) => { | ||
| const vis = new BaseVisType(config); | ||
| registerVisualization(() => vis); |
There was a problem hiding this comment.
Why does the interface require a function?
There was a problem hiding this comment.
its the leftover from VisType registry, needs to be cleaned up in followup
| }); | ||
|
|
||
| it('can navigate from NP apps to legacy apps', async () => { | ||
| it.skip('can navigate from NP apps to legacy apps', async () => { |
There was a problem hiding this comment.
What happened to the tests?
There was a problem hiding this comment.
for some reason this tests are still breaking, skipping them for now and will try to address in a follow up
lizozom
left a comment
There was a problem hiding this comment.
Reviewed and tested
Changes include:
- Changing
VisProviderstoVisDefinitions - Changing
registerVisualizationtocreateBaseVisualization - Removal of remaining pushfilters code
- Import updates and removing old dependencies
- Introducing services (ui settings, types etc)
- Skipping two functional tests
LGTM
kertal
left a comment
There was a problem hiding this comment.
Code LGTM, from Kibana app perspective, tested locally in Chrome
* upstream/7.x: Move saved queries service + language switcher ⇒ NP (elastic#51812) (elastic#51863) [Dependencies]: upgrade react to latest v16.12.0 (elastic#51145) (elastic#51868) Allow routes to define some payload config values (elastic#50783) (elastic#51864) [ML] Re-activate after method in transform test (elastic#51815) (elastic#51858) fixes pagination tests (elastic#51822) (elastic#51830) shim visualizations plugin (elastic#50624) (elastic#51801) [SIEM][Detection Engine] Change security model to use SIEM permissions (elastic#51848)
…ra/kibana into IS-46410_remove-@kbn/ui-framework * 'IS-46410_remove-@kbn/ui-framework' of github.com:mbondyra/kibana: (49 commits) [ML] Re-activate after method in transform test (elastic#51815) [SIEM] [Detection Engine] Add edit on rule creation (elastic#51670) De-angularize visLegend (elastic#50613) [SIEM][Detection Engine] Change security model to use SIEM permissions [Monitoring] Sass cleanup (elastic#51100) Move errors and validate index pattern ⇒ NP (elastic#51805) fixes pagination tests (elastic#51822) Split legacy plugin discovery, expose SavedObjects scopedClient, wrappers, repository (elastic#48882) [SIEM][Detection Engine] Adds ecs threat properties to rules (elastic#51782) [Lens] Remove client-side reference to server source code (elastic#51763) Fix infinite redirect loop when multiple cookies are sent (elastic#50452) fixes drag and drop in tests (elastic#51806) [Console] Proxy fallback (elastic#50185) Query String(Bar) Input - cleanup (elastic#51598) shim visualizations plugin (elastic#50624) Expressions service fixes: better error and loading states handling (elastic#51183) fixes url state tests (elastic#51746) fixes browser field tests (elastic#51738) [ML] Fix anomaly detection test suite (elastic#51712) [SIEM] Fix Timeline drag and drop behavior (elastic#51558) ...
Summary
updates
visualizationsplugin shim and moves most of relevant code inside itcloses #46707
Checklist
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[ ] Documentation was added for features that require explanation or tutorials[ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriatelyDev Docs
most of the relevant code has been moved to
visualizationsplugin.before:
after: