* ⚗️ Initial code for query based annotations
* 🐛 Solved more conflicts
* ⚗️ More scaffolding layout
* ⚗️ Initial indexpatetrn move into frame
* ⚗️ Make field selection work
* 🚧 Fixed almost all dataViews occurrencies, but changeIndexPattern
* 🚧 More work on change index pattern
* Move lens dataViews state into main state
* 🔥 Remove some old cruft from the code
* 🐛 Fix dataViews layer change
* 🐛 Fix datasourceLayers refs
* 🔥 Remove more old cruft
* 🐛 Fix bug when loading SO
* 🐛 Fix initial existence flag
* 🏷️ Fix type issues
* 🏷️ Fix types and tests
* 🏷️ Fix types issues
* ✅ Fix more tests
* ✅ Fix with new dataViews structure
* ✅ Fix more test mocks
* ✅ More tests fixed
* 🔥 Removed unused prop
* ✅ Down to single broken test suite
* 🏷️ Fix type issue
* 👌 Integrate selector feedback
* ✅ Fix remaining unit tests
* 🏷️ fix type issues
* 🐛 Fix bug when creating dataview in place
* ✨ Update with latest dataview state + fix dataviews picker for annotations
* 🐛 Fix edit + remove field flow
* Update x-pack/plugins/lens/public/visualizations/xy/types.ts
* 📸 Fix snapshot
* 🐛 Fix the dataViews switch bug
* 🔥 remove old cruft
* ♻️ Revert removal from dataviews state branch
* ♻️ Load all at once
* 🔧 working on persistent state + fix new layer bug
* 🔥 remove unused stuff
* 🏷️ Fix some typings
* 🔧 Fix expression issue
* ✅ Add service unit tests
* 👌 Integrated feedback
* ✨ Add migration code for manual annotations
* 🏷️ Fix type issue
* ✅ Add some other unit test
* 🏷️ Fix more type issues
* 🐛 Fix importing issue
* ♻️ Make range default color dependant on opint one
* 🐛 Fix duplicate fields selection in tooltip section
* ✅ Add more unit tests
* ✅ Fix broken test
* 🏷️ Mute ts error for now
* ✅ Fix tests
* 🔥 Reduce plugin weight
* 🐛 prevent layout shift on panel open
* 🐛 Fix extract + inject visualization references
* 🏷️ fix type issues
* ✨ Add dataview reference migration for annotations
* 🔧 Add migration to embedadble
* 🏷️ Fix type export
* 🐛 Fix more conflicts with main
* ✅ Fix tests
* 🏷️ Make textField optional
* ♻️ Refactor query input to be a shared component
* 🐛 Fix missing import
* 🐛 fix more import issues
* 🔥 remove duplicate code
* 🐛 Fix dataView switch bug
* 🏷️ Fix type issue
* annotations with fetching_event_annotations
* portal for kql input fix
* timeField goes for default if not filled
* limit changes
* handle ad-hoc data view references correctly
* fix types
* adjust tests to datatable format (remove isHidden tests as it's filtered before)
* small refactors
* fix loading on dashboard
* empty is invalid (?) tbd
* new tooltip
* emptyDatatable
* ♻️ Flip field + query inputs
* 🏷️ Fix type issue
* ✨ Add field validation for text and tooltip fields
* tooltip for single annotation
* fix tests
* fix for non--timefilter dataview
* fix annotations test - the cause was that we now don't display label for aggregated annotations ever
* use eui elements
* newline problem solved
* ✅ Add more error tests
* 👌 Rename migration state version type
* fix types for expression chart
* 🐛 Fix i18n id
* 🏷️ Fix type issue
* fix hidden all annotations
* ✅ Fix tests after ishidden removal
* 🐛 Revert references migration to an in app solution
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
* [Lens] Introduce separate dimension groups for mosaic rows and columns
* swap labels
* fix nits
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
* [Lens] Enables ad-hoc dataviews
* Fix bug in legacy field existence logic
* lift ad hoc state to frame level and rename data view on incompatible change
* fix some tests
* migrate embedded ad hoc data views
* fix tests and inject/extract ad hoc data view references
* fix bugs and add functional tests
* fix unit tests
* do not show geo fields for ad hoc data views
* Fix functional test
* Refactor to use the new metric viz on the functional tests
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
* Move date histogram column meta utility function to the datatable utilities service
* Move number histogram interval utility function to the datatable utilities service
* Move precision error check to the datatable utility service
* reduce data plugin reexporting of data view exports
* reduce data plugin reexporting of data view exports
* cleanup
* Apply suggestions from code review
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
* Removed lens_multitable from lens_datatable
* Removed lens_multitable from heatmap.
* Added datasource to the metric.
* Added datasource expression to pie.
* Added datasource expression to gauge.
* Fixed tests.
* Removed LensMultiTable.
* Removed additional `kibana` expression from the xy to_expression.
* Removed lens_multitable from x-pack/maps.
* Removed unused translation.
* Added `handlers.inspectorAdapters.tables.reset` to all the expressions from lens.
* Fixed choropleth chart.
* Fixed gauge tests.
* Fixed jest tests with inspector.tables.reset.
* Added tests for the new behavior.
* Added extended layers expressions.
* Added support of tables at layers.
* Added annotations to layeredXyVIs.
* Refactored the implementation to be reusable.
* Fixed undefined layers.
* Fixed empty arrays problems.
* Fixed input translations and removed not used arguments.
* Fixed missing required args error, and added required to arguments.
* Simplified expression configuration.
* Added strict to all the expressions.
* Moved dataLayer to the separate component.
* Refactored dataLayers helpers and xy_chart.
* fillOpacity usage validation is added.
* Fixed valueLabels argument options. Removed not used. Added validation for usage.
* Added validation to the layeredXyVis.
* Fixed extent validation.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
* Fix imports from restricted paths
* Re-export EmbeddableRegistryDefinition from embedabble server and fix some imports
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* chore(NA): upgrade bazel into v5
* chore(NA): initial work to upgrade to rules v5
* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports
* chore(NA): removed packager tsc_wrapped added my mistake
* Add event annotation service structure
* adding annotation layer to lens. passing event annotation service
* simplify initial Dimensions
* add annotations to lens
* no datasource layer
* group the annotations into numerical icons
* color icons in tooltip, add the annotation icon, fix date interval bug
* display old time axis for annotations
* error in annotation dimension when date histogram is removed
* refactor: use the same methods for annotations and reference lines
* wip
* only check activeData for dataLayers
* added new icons for annotations
* refactor icons
* uniqueLabels
* unique Labels
* diff config from args
* change timestamp format
* added expression event_annotation_group
* names refactor
* ea service adding help descriptions
* rotate icon
* added tests
* fix button problem
* dnd problem
* dnd fix
* tests for dimension trigger
* tests for unique labels
* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'
* type
* add new button test
* remove noDatasource from config (only needed when initializing a layer or dimension in getSupportedLayers)
* addressing Joe's and Michael comments
* remove hexagon and square, address Stratoula's feedback
* stroke for icons & icon fill
* fix tests
* fix small things
* align the set with tsvb
* align IconSelect
* fix i18nrc
* Update src/plugins/event_annotation/public/event_annotation_service/index.tsx
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
* refactor empty button
* CR
* date cr
* remove DimensionEditorSection
* change to emptyShade for traingle fill
* Update x-pack/plugins/lens/public/app_plugin/app.scss
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
* ✨ Add new rowHeight feature
* ✅ Add unit tests for new feature
* 🗃️ Update migration logic
* 🏷️ Fix type issue
* ✅ fix usual map migration test
* Update x-pack/plugins/lens/public/datatable_visualization/components/toolbar.tsx
* 🐛 Enable word wrap for multi lines
* ✅ Fix unit test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Removed pie/donut/mosaic/treemap expressions from lens
* Replaced pie/donut/mosaic/treemap expressions with expressions from expression_partition_vis
* Fixed bug with __other__ labels.
* Cleaned up not used fields at Lens.
* Added support of empty results for multiple chart types.]
* Refactored visualization_noresults.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* 🐛 Make top values work with custom formatter
* 🐛 Make custom formatter work with multi-terms formatter
* 🐛 simplify parentFormat logic and add more tests
* 👌 Integrate feedback
* ✨ Add migration for top values formatting
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add comments support to the expressions grammar
* Add typings to the interpreter parser
* Add expressions comments highlighting
* Update canvas to preserve original expression formatting
* Update documentation to cover comments