-
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
Vis default editor plugin #55612
Vis default editor plugin #55612
Conversation
…editor # Conflicts: # src/legacy/ui/public/vis/_index.scss
@@ -59,15 +59,6 @@ | |||
+ .visEditorSidebar__section { | |||
margin-top: $euiSizeS; | |||
} | |||
|
|||
label:not([class^='eui']) { | |||
@include __legacyLabelStyles__bad; |
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.
This is removed due to no necessity anymore. All the label were removed during EUIfication
…editor # Conflicts: # src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js # src/legacy/core_plugins/vis_default_editor/public/default_editor.tsx
@@ -88,6 +88,14 @@ module.exports = { | |||
'react-hooks/exhaustive-deps': 'off', | |||
}, | |||
}, | |||
{ | |||
files: [ | |||
'src/legacy/core_plugins/vis_default_editor/public/components/controls/**/*.{ts,tsx}', |
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.
All of the controls ignored as a temporary solution, I'll create an additional task to update it and exclude any possible regression and circular re-renders.
…editor # Conflicts: # src/legacy/core_plugins/visualizations/public/embeddable/query_geohash_bounds.ts # src/legacy/core_plugins/visualizations/public/saved_visualizations/_saved_vis.ts # src/legacy/ui/public/agg_types/agg_config.ts # src/legacy/ui/public/agg_types/agg_configs.ts # src/legacy/ui/public/agg_types/param_types/base.ts # src/legacy/ui/public/visualize/loader/pipeline_helpers/utilities.ts # src/legacy/utils/index.d.ts
Hey @ppisljar @flash1293 |
moving of schemas back: if it doesn't cause any headaches please do, but i think its not a blocker for this pr, we can move it later. |
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.
SCSS files look good. Several relocated, one removed along with its related import reference.
…editor # Conflicts: # src/legacy/core_plugins/region_map/public/region_map_type.js # src/legacy/core_plugins/tile_map/public/tile_map_type.js # src/legacy/core_plugins/vis_type_metric/public/components/metric_vis_component.test.tsx # src/legacy/core_plugins/vis_type_metric/public/components/metric_vis_component.tsx # src/legacy/core_plugins/vis_type_metric/public/legacy_imports.ts # src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.ts # src/legacy/core_plugins/vis_type_vislib/public/components/common/color_schema.tsx # src/legacy/core_plugins/vis_type_vislib/public/gauge.ts # src/legacy/core_plugins/vis_type_vislib/public/goal.ts # src/legacy/core_plugins/vis_type_vislib/public/heatmap.ts # src/legacy/core_plugins/vis_type_vislib/public/legacy_imports.ts # x-pack/legacy/plugins/maps/public/layers/joins/inner_join.test.js # x-pack/legacy/plugins/maps/public/layers/sources/es_term_source.test.js # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
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
💚 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.
LGTM, good work!
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. Thanks, this will unblock some things for us!
* Vis default editor plugin (#55612) * Shim the default_editor * Update paths in vis_default_editor * Update paths in dependent plugins * Update the dependent plugins * Create an entry point * Wrap the editor with kibana context * Fix circular re-renders * Update sub aggs mapping * Move schemas and agg_groups to agg_types, update jest tests * Use services from kibana context, other fixes * Fix useEffect maximum update depth * Create i18n namesapce for visDefaultEditor, rename translations * Fix tests * Resolve paths * Remove ui/vis/vis_types * Fix vis import * Move editor_config_provider to ui/vis * Remove agg_select.html
Summary
Resolves #55287.
This PR create the
vis_default_editor
plugin.It provides the main component
DefaultEditorController
for consuming invisualizations
plugin and accepts necessary kibana services, then shares it through theKibanaContextProvider
.The PR contains the next changes:
ui/vis
through the kibana;schemas.ts
to theagg_types
;agg_params_map.ts
to specify components for an aggregation and exclude dependencies inagg_types
onvis_default_editor
;visDefaultEditor
for translations;Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers