Commit graph

1067 commits

Author SHA1 Message Date
Sébastien Loix
189196181c
[Table list view] Improve UX (phase 1) (#135892) 2022-09-19 12:29:23 +02:00
Nick Peihl
33ff3538b8
[Maps] Add UI counters for triggers that open a new map (#136991)
* Add UI counters for triggers that open a new map
2022-09-15 09:54:18 -07:00
Dmitry Tomashevich
52131666da
[Discover] Introduce adhoc Data Views (#138283)
* [Discover] add first steps for hoc data views

* [Discover] add confirm prompt when needed

* [Discover] fix types

* [Discover] fix tests

* [Discover] fix remaining tests

* [Discover] fix some comments

* [Discover] refactor, fix some bugs

* [Discover] add functional tests

* [Discover] improve tests

* [Discover] fix test

* [Discover] add saved data view toast

* [Discover] fix unit tests

* [Discover] fix remaining tests

* [Discover] resolve comments

* [Discover] generate new id on saving search copy, add functionals, fix data view picker

* [Discover] fix bug with top nav actions

* [Discover] enable stats for adhocs

* [Discover] fix lint

* [Discover] remove duplications

* [Discover] clean up changes

* [Discover] enable sql view, fix functional test

* [Discover] fix sql view for adHocDataViews, update savedSearch on data view save, apply suggestions

* Update src/plugins/discover/public/hooks/show_confirm_panel.tsx

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* [Discover] fix navigate to lens

* [Discover] add functional to test dashboard

* [Discover] fix types

* [Discover] fix maps visualization

* [Discover] fix checks

* [Discover] fix fields drag and drop

* [Discover] fix checks

* [Discover] remove logs

* [Lens] apply suggestions

* [Discover] add ignoreFetchState flag

* [Discover] improve nav link issue solution

* [Discover] fix type checks

* [Discover] allow multiple adhoc data views

* [Discover] use light spec for vis action payload

* [Discover] fix check types

* Improve URL tracking
- URL are no longer tracked for AdHoc data views

* Fix unit tests

* [Discover] apply suggestions

* [Discover] add unit test

* [Discover] add another test

* [Discover] fix bug with name

* [Discover] add remaining things

* [Discover] fix unit tests

* [Discover] fix error on refresh lens with adhoc created from discover

* [Discover] revert adhoc data views in sql mode

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2022-09-14 16:06:09 +03:00
Rudolf Meijering
191bfbc97e
Saved objects: improve typesafety (#140099)
* Remove SavedObjectAttributes from examples

* Remove SavedObjectAttributes from dev_docs

* Deprecate SavedObjectAttributes type

* Remove SavedObjectAttributes from kibana_usage_collection plugin

* Remove low hanging SavedObjectAttributes in security_solution

* Remove low hanging SavedObjectAttributes in upgrade_assistant

* Remove low hanging SavedObjectAttributes in lens

* Stricter types for SavedObjectsServiceSetup.registerType

* Review feedback

* Some more low hanging fruit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-09-13 09:56:29 +02:00
Nathan Reese
fecb6b30be
[Maps] fix percentile aggregation not working with vector tiles (#140318)
* [Maps] fix percentile aggregation not working with vector tiles

* better test names

* fix jest test

* review feedback

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-09-12 09:52:45 -06:00
Nathan Reese
705a21f259
[Maps] fix cluster layer disappears when switching from resolution 'high' to resolution 'low' (#140333) 2022-09-09 06:49:41 -06:00
Nathan Reese
ddcae9cfcf
[Controls] timeslider control (#139228)
* Timeslider plugin boilerplate

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* Spacetime timeslider dash (#138553)

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* push timeslice to Dashboard input

* Wire up timeslice (#138570)

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* push timeslice to Dashboard input

* cleanup

* Spacetime timeslider dash (#138573)

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* push timeslice to Dashboard input

* cleanup

* play button

* Notify control group when all panels loaded (#138674)

* get play button working

* play button (#138681)

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* push timeslice to Dashboard input

* cleanup

* play button

* get play button working

* cleanup

* clean up

* clean up wrap logic

* Spacetime timeslider dash -clean up wrap logic (#138822)

* wire redux store

* add time range bounds to store

* range control

* set value in store

* previous next buttons

* push timeslice to Dashboard input

* cleanup

* play button

* get play button working

* cleanup

* clean up wrap logic

* Add waitForPanelsToLoad$ observable (#138950)

* fix import

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* sync range slider width on popover panel resize

* fix styling

* update embeddables to support time slice

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* change file structure

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* disable add button when control group contains timeslider

* hide edit button for timeslider control

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* force timeslider width to be large

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* use timeslice to filter other controls

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* skip timeslider control in control chaining

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* cleanup

* fix initial timeRange

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* clear button

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* render prepend

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* remove unused code

* Container.getAnyChildOutputChange$

* play observable

* tslint

* tslint

* clean up

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fix lint

* fix import

* fix plugin size and other clean up

* fix 'unsaved changes' issue

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix Dragging UI Nit

* fix Label position Above Nit

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* support relative time ranges

* fix issue where clear not propogated to panels

* time slider functional test

* clean up functional test

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* tslint

* fix time_slider functional test

* fix time slider not expanding after creating non-expanding control

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-09-07 11:21:53 -06:00
Nick Peihl
a0b506e2dc
[Maps] Add UI counters for custom icons (#139240)
* Add UI counters for custom icons

* Only report events when adding a new custom icon, not when editing an existing icon

* Fix jest test
2022-08-23 06:16:44 -07:00
Nick Peihl
c5de0a9ff9
[Maps] Add ability to disable tooltips for layer (#138275)
* Add ability to disable tooltips for layer

* Disable Show tooltips switch when no tooltip fields are available

* Typo

* Review feedback

* Fix loop termination
2022-08-23 06:08:59 -07:00
Nathan Reese
7be8ae67f9
[Maps] fix legacy tile_map and region_map visualizations do not display title in Map embeddable action modals (#139054)
* [Maps] fix legacy tile_map and region_map visualizations do not display title in Map embeddable action modals

* pass title to embeddable

* eslint

* tslint

* clean up
2022-08-18 15:54:39 -06:00
Nathan Reese
3de69b6b89
[Maps] fix scaling and term join in product help popover width (#139120) 2022-08-18 15:36:25 -06:00
Clint Andrew Hall
0fbd0afdb1
[Shared UX] Complete package migration; delete plugin (#138962)
* [Shared UX] Complete package migration; delete plugin

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* Fix types, fix tests

* Create Storybook config package; organize Storybook

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* Revise Storybook config package; make mock packages compatible with web

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 13:00:03 -05:00
Spencer
9003353729
rename @elastic/* packages to @kbn/* (#138957)
* rename @elastic/* packages to @kbn/*

* update yarn.lock

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* update lint task

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 08:54:42 -07:00
Nathan Reese
477bba2d05
[Maps] support Vector tile runtime geo_point fields (#139047)
* [Maps] support Vector tile runtime geo_point fields

* i18n cleanup
2022-08-18 09:03:41 -06:00
Nathan Reese
f46a6309bd
[Maps] show data view name in UI (#138928)
* [Maps] show data view name in UI

* remove indexPatternTitle from join descriptor

* clean up

* i18n clean-up

* fix jest test

* jest test fix
2022-08-18 07:36:24 -06:00
Alexey Antonov
5f84d8e071
[Lens] Move custom chart icons into lens package (#138413)
* [Lens] Move custom chart icons into lens package (#138101)

* [Lens] Move custom chart icons into lens package

Closes #135230

* add storybook

* fix merge conflicts

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* clenaup

* add region_map icon into package

* fix styles

* Update README.md

* fix ci

* try to fix CI

* fix PR comments

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* RegionMap -> LensIconRegionMap

* lensIcons -> lens_icons

* move to x-pack packages

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* move to x-pack/packages/lens/icons

* fix jest

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>

* fix CI

* use emotion lib

* remove lensAnnotationIconNoFill and lensAnnotationIconFill

* remove duplicated code

* cleanup

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* cleanup

* renaming

* fix jest config

* remove extra icons

* move icons out of main chunk

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-17 13:24:18 +03:00
Nathan Reese
7303ef8991
[Maps] fix Filters applied to map visualization not preserved when added to dashboard (#138188)
* [Maps] fix Tool tip with large field list exceeds browser screen and cannot be accessed or dismissed

* add min-width to mapFeatureTooltip__propertyLabel

* [Maps] fix Filters applied to map visualization not preserved when added to dashboard

* clean up

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* clean-up

* publish query and filter to container

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* fix checks

* tslint and add to bounds filter

* functional test

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-16 14:09:38 -06:00
Constance
7b11420ee9
Upgrade EUI to v62.0.3 (#138351)
* Upgrade to v62.0.3

* Update EUI i18n tokens

* Update html string snapshots

- Emotion CSS hash changed

* [EuiIcon] Update instances of `keyboardShortcut` icons to `keyboard`

* [EuiErrorBoundary] Update snapshots from Emotion conversion

* [EuiImage] Update snapshots, tests, and CSS to account for Emotion conversion

* [EuiImage][RTL] Fix test failures caused by EuiImage changes

* [EuiCommentList] Deprecate EuiCommentProps.type

* [EuiCommentList] Rename `timelineIcon` prop to `timelineAvatar`

- see https://github.com/elastic/eui/pull/6071

* [EuiCommentList] Fix selectors deprecated by Emotion conversion

* [EuiPopover][EuiCommentEvent][Enzyme] Fix mounted test failures caused by Emotion conversions

- Mounting displays the Emotion wrapper with the data-test-subj on them - we need to specify the output div renders in order for text assertions to be correct

* [EuiPopover] Deprecate `initialFocus={false}` as an option

see https://github.com/elastic/eui/pull/6044

* [EuiPopover] Rename `display=inlineBlock` to `inline-block`

- see https://github.com/elastic/eui/pull/5977

* [EuiPopover] Update snapshots from Emotion conversion

* [EuiPopover] Replace deprecated `.euiPopover__panel-isOpen` class with new `[data-popover-open]` attribute

* [EuiPopover][RTL] Fix test failures caused by not waiting for EuiPopover animation/transition

* Skip failing a11y tests

- test w/ similar error already skipped in another test above
- requires closing the popover for next test to pass
- not sure why delete action is no longer available

* Fix failing Security Cypress tests

* Attempt to squash flaky FTR tests around Add Filter popover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-08-12 16:40:58 -07:00
Hannah Mudge
00c8cf9e56
[Dashboard] View panel-level filters and queries (#136655)
* Use panel action to show filters

* Switch over to a modal

* Fix how I'm getting data views

* Deserialize and clean filters for getFilters

* Read only filter items

* Fix render of filter pills

* Fix title for read only filter pills + clean up code

* Add i18n support + fix types

* Provide Kibana uiSettings to modal

* Fix how panel titles are grabbed for functional tests

* Add jest tests for badge

[CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Remove focus trap from modal

* Add edit button to modal that redirects to visualize app

* Add tooltip to filter pills

* Add jest tests for modal

* Clean up badge code and move to modal

* Make filter pills focusable

* Add tooltip to readOnly filter pills only

* Add `getFilters` to saved search embeddable

* Add query to filters modal

* Support by reference embeddables - specifically for visualize

* Fix jest tests for modal

* Add i18n support for new form in modal

* Clean up code

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fix jest tests for badge

* Temporarily disable for maps and add TODO comment

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Fix styling of modal + i18n of aria label

* Fix bundle size

* Address first round of feedback

* Add comments to public APIs

* Export missing API

* Add comments to public dashboard API

* Fix imports, types, and add more comments

* Fix losing of context

* Add more public API comments

* Add comments to each embeddable/dashboard container

* Add more public API comments

* Fix losing of context for real this time

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fix jest test

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Address feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-10 11:36:49 -06:00
Nathan Reese
0f643045cf
[Maps] fix draw icons not displayed in buttons (#138433)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-09 13:59:38 -06:00
Jonathan Budzenski
b3a38c4137 Revert "[Lens] Move custom chart icons into lens package (#138101)"
This reverts commit d89b2cb903.
2022-08-09 09:30:44 -05:00
Alexey Antonov
d89b2cb903
[Lens] Move custom chart icons into lens package (#138101)
* [Lens] Move custom chart icons into lens package

Closes #135230

* add storybook

* fix merge conflicts

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* clenaup

* add region_map icon into package

* fix styles

* Update README.md

* fix ci

* try to fix CI

* fix PR comments

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* RegionMap -> LensIconRegionMap

* lensIcons -> lens_icons

* move to x-pack packages

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* move to x-pack/packages/lens/icons

* fix jest

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-09 17:15:12 +03:00
Nathan Reese
7cd4a860ef
[Maps] fix Tool tip with large field list exceeds browser screen and cannot be accessed or dismissed (#138054)
* [Maps] fix Tool tip with large field list exceeds browser screen and cannot be accessed or dismissed

* add min-width to mapFeatureTooltip__propertyLabel
2022-08-05 08:19:13 -06:00
Nathan Reese
e21f41390e
[Maps] Cancel button when editing by value from dashboard (#137880) 2022-08-03 20:11:24 -06:00
Nathan Reese
71eac22b33
[Maps] set border width to zero for points only document layers (#137758)
* [Maps] set border width to zero for points only document layers

* top hits layer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 09:47:57 -06:00
Liza Katz
af45ef831e
add flexible EBT Performance Metric Schema (#136395) 2022-08-03 15:21:24 +03:00
Nathan Reese
a4394a13c1
[maps] fix type in getMapsVisTypeAlias (#137014) 2022-08-01 12:43:11 -06:00
Nathan Reese
77fa5e7185
[Maps] fallback to GeoJSON with runtime geo_point field (#136675)
* [Maps] fallback to geojson with runtime geo_point field

* convert to TS

* update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-01 10:47:48 -06:00
Stratoula Kalafateli
1d6312b15d
Check types (#137410)
* Check types

* Fix types in discover temporary
2022-07-28 19:52:13 +03:00
Nick Peihl
69dc7e2b77
[Maps] Custom raster source example plugin (#136761) 2022-07-26 14:41:45 -07:00
Nathan Reese
c9df45df56
[maps] fix "other" is always shown in legend for category styling rules (#137008)
* others

* other color picker

* custom color ramp other color

* ts lint

* always show others category with custom ramp

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* migration

* make custom color ramp value input larger

* fix failing tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* see mbExpression to other color when stops not available

* fix jest test

* fix bug where deleting row causes colors to not display in correct order

* prevent state continously changing

* fix with key instead of getDerivedStateFromProps

* add tooltip

* remove unused code

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-26 12:47:08 -06:00
Pierre Gayvallet
0645a3ba38
Create common and api types packages for the savedObjects domain (#136722)
* Creating empty @kbn/core-saved-objects-common package

* start moving types around

* start fixing imports

* fix entrypoint exports

* fix external import

* create explicit ISavedObjectsRepository interface

* fix another external usage

* rewrite browser exports

* create explicit SavedObjectsClientContract interface

* move client/repository types to @kbn/core-saved-objects-api-server

* start fixing imports

* one more

* fix global re-exports

* fix some browser-side imports

* fix more violations

* prepare the browser-side client

* fix one more usage

* fix external usage

* fix more external usages

* one more

* Create @kbn/core-saved-objects-api-browser package

* fix more usages of error helper

* fix more internal imports

* use interface for SSO

* adapt more imports

* damn those types were a mess

* fix more usages of SSO

* Revert "fix more usages of SSO"

This reverts commit 07a12e5353.

* Revert "use interface for SSO"

This reverts commit 6240fc86c5.

* export the interface with the old name instead.

* adapt tests concrete usages of SSO

* export reference type, more fixes

* this gonna be long

* one more

* other resolve type change

* more usages

* Am I getting close?

* yet more fixes

* back to client impl

* fix bulkGetting undefined

* fix SS mock

* some cleanup

* self-review

* fix new usages
2022-07-26 04:01:33 -07:00
Stratoula Kalafateli
a296e4cc97
[Discover] Supports SQL query language (#134429) (#136702)
* [Discover] Supports SQL query language (#134429)

* Move the add dataview action above the dataview selection panel

* Implements a new selectable on the dataview picker for the text based languages

* Implementation of the transition modal when on SQL mode and select a dataview

* Fix es lint

* Change switch modal button modal icon

* Lazy load components

* Small changes on the styling of the switch without saving button

* Initialization of mocaco editor

* Change to the type

* Fixes types checks

* New submit button for query mode

* Implememtation of the expanded mode of the editor

* Implement documentation

* Implementation of the oneliner mode with ellipsis

* Some  fixes on the resizer

* Implementation of the errors layout, WIP

* Fetch SQL data in Discover

* Fix expression test

* Fix editor zIndex

* Fix types error

* Fix type check in Discover

* Fix more types

* some CI fixes

* Fixes

* Cleanup after merge

* Remove from state

* Connect search errors with the unified search editor

* Add error mrkers in unified search editor

* Save and open saved searches

* Filter out saved searches from text based languages

* Some fixes

* Fix unit tests

* Fix checks

* On save and exit modal implementation

* Add shortcut on the editor for submit query

* Fix wrong condition

* Initial types change

* Use regex to find the index pattern string

* Fix some types and cleanup

* Fix types

* Fix some types

* Further fixes

* More fixes

* More fixes

* Fix visualize types

* more

* More fixes

* Fixes more types

* Fix dashboard types

* Fix dashboard types

* Controls plugin types

* Fix Lens types

* Fix data plugin types

* Fix types in Lens 2

* buildEsConfig type fixes

* Fix observability types

* Fix maps types

* data visualizer types

* Fix ml types

* xpack rest types

* Fix jest test

* Fix

* Move helper functions to es config

* fix bug on breadcrumb click

* Fix time field bug

* Add enableSql advanced setting to discover for enabling the sql mode

* Make the documentation component more dynamic

* Add some comments, improvements

* Enhance storybook with the textbased languages

* Update storybook with the error state of the editor

* Adds a readme for the editor and fixes the modal mobile version

* [Discover] improve test and storybook for new data type

* [Discover] add functional tests

* Add aggregate functions to the documentation

* [Discover] fix tests

* Add some unit tests

* [Discover] fix linting

* [Discover] update linting

* More unti tests

* Dataview picker unit tests

* Fix a bug on the dataview picker

* Add unit tests for the editor

* Fix jest test

* [Discover] apply suggestions

* [Discover] adjust styles

* Fix some bugs and select columns in the sql mode

* [Discover] fix eslint and tests

* [Discover] update unit tests

* Fix bug on transitioning from sql mode to dataview mode

* [Discover] fix tests

* Design fixes on the errors messages

* [Discover] fix ci

* Update the columns only if the query changes

* [Discover] change isPlainRecord retrieval method

* Fix bug on cleanup

* Fix bug on opening a saved search

* [Discover] fix comments

* [Discover] fix bug with browser refresh

* [Discover] fix functional

* [Discover] fix another functional

* Fix ordering lost when the user refreshes the browser

* [Discover] revert use_discover_state

* [Discover] revert functional impl

* Fix security solution types

* Casting dashboard plugin

* Revert change

* type param

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Revert types changes

* More reverts

* Types fixes

* Fix Discover jest test

* Fix context app jest test

* Final types changes

* Fixes unit test

Co-authored-by: Dzmitry Tamashevich <diaamnj@mail.ru>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>

* Fix types

* Fix jest test

* More design fixes

* Update advanced setting description

* Further design changes

* [Discover] Remove document explorer header column edit data view field functionality (#136743)

* remove Edit data view field for SQL

* Fix the fix

* [Discover] Implement SQL data fetching for embeddable (#136793)

* remove Edit data view field for SQL

* Fix the fix

* Implement SQL for embeddable

* Fix non-saved-search embeddables

* Fix reporting bundle size

* Allow filters on dashboard level for sql searches

* Fix the radius on the editor

* Add vertical padding on the editor

* Change the theme

* Address PR comments

* Fix types

* Address some of the comments

* Fix bug on transitioning from SQL to dataview mode with the modal dismissed

* More types fixes

* Design review comments

* Discovery team review comments

* Fix jest tests

* Fix bug on navigating from the SQL mode to the dataview mode and back in sql mode by clicking the breadcrumb

* Update src/plugins/discover/public/application/main/hooks/use_discover_state.ts

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>

* Add padding to the top of the editor without creating any bug

* Add some padding to the bottom without creating any bug

* Fixes undo bug

* Fix confusing naming of variable

* Fix nested selects

* Update texts for transition modal and warning

* Make it work with dashboard Query

* Address some of the comments

Co-authored-by: Dzmitry Tamashevich <diaamnj@mail.ru>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2022-07-26 10:51:31 +03:00
Nathan Reese
8bedc3c980
[Maps] label zoom range style property (#136690)
* [Maps] label visibility style property

* add slider

* set label zoom range

* rename

* fix jest test

* tslint

* fix jest tests

* update jest expects

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* doc updates and change 'Label zoom range' to 'Label visibility'

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 10:04:11 -06:00
Spencer
36260fb358
[expressions] remove root-level redirect, import from common (#136997)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 08:07:43 -07:00
Alexey Antonov
d4bb959bea
[Step 3] VisEditors Telemetry enhancements (add new agg-based and lens telemetries) (#135615)
* initial comit

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* push chart_expressions logic

* update tests

* fix JEST

* push some telemetries

* fix some cases

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* update tests

* add some lens part

* add handlers.logRenderTelemetry method

* visGroup -> originatingApp

* remove visTpe, extra, onlyExtra

* remove handlers.logRenderTelemetry from handlers

* remove context from snapshots

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* add lens operations telemetry

* fix heaatmap, vislib

* push some telemetries

* cleanup

* push some logic

* fix merge conflicts

* push some logic

* add lens map telemetry

* add render_lens_vis_cases

* add render_lens_vis_observability_exploratory_view

* cleanup

* cleanup

* make getRenderEventCounters optional

* add summary_row and color_by_value telemetries

* try to fix double rendering

* update xy telemetries

* fix TSVB

* fix lens

* fix Timelion

* add mixed_xy telemetry

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update expression_renderer.tsx

* update originatingApp

* Update expression_renderer.tsx

* add JEST for core changes

* Update plugin.ts

* Update src/plugins/expressions/common/expression_renderers/types.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* fix PR comments

* add renderComplete param to VisualizationContainer

* fix mixed_xy issue

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
2022-07-25 15:33:10 +03:00
Nick Peihl
db7fd9c322
[Maps] Collect custom icons snapshot telemetry (#136952) 2022-07-25 14:09:07 +02:00
Nathan Reese
72627fd771
[maps] Automatically display the maps legend (#136872)
* [maps] Automatically display the maps legend

* clean-up

* merge import statements
2022-07-22 12:00:52 -06:00
Nathan Reese
0d237ea1c0
[maps] adjust icon size when cluster resolution changes (#136573)
* [maps] adjust cluster icon size when resolution changes

* fix jest test

* change icon size

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-21 07:29:15 -06:00
Nick Peihl
a0df571b2c
[Maps] Add Layer types and settings UI counters (#136306)
* Layer views telemetry with ui counters

* Add telemetry for layers when opening map
2022-07-20 07:08:20 -07:00
Tim Sullivan
a2c3323162
[Data Views] Remove remaining "any" usage (#136343)
* fix some any

* remove some any

* fix some any in saved_objects_client_wrapper

* fix some any in common/types

* remove some any from flattenHit and getFields*

* fix more any

* remove "any" in code comments

* fix types

* test commit

* fix ts

* fix types

* remove more any

* simplify / comment

* more simplification

* fix test

* export public APIs

* add fixme comment

* cleanup

* improve documentation and types for RollupIndexCapability

* simplify shortenDottedString

* fix jest test

* use AggregationRestrictions

* fix downstream types

* simplify

* add comments for public api items

* add ts-expect-error in lens integration toJSON

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-07-19 13:28:21 -07:00
Nick Peihl
40165b7c20
[Maps] Add ML Anomalies layer to telemetry (#136345)
* Add ML Anomalies layer to telemetry

* Fix telemetry
2022-07-18 08:20:34 -07:00
Nathan Reese
d351c92b1a
[Maps] change EMS tile layer display name to 'Basemap' (#136393)
* [Maps] change EMS basemap display name to 'Basemap'

* add tooltip content

* revert getLayerTypeIconName deletion

* change i18n tag

* rename

* eslint

* fix functional tests

* Update x-pack/plugins/maps/public/classes/layers/ems_vector_tile_layer/ems_vector_tile_layer.tsx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-07-14 12:57:58 -06:00
Nathan Reese
63335d8e37
[maps] clean-up filter by map bounds action (#136045)
* [maps] clean-up filter by map bounds action

* modal

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* update docs

* fix warning in generated filter pill

* fix functional test

* fix jest test

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-13 07:51:23 -06:00
Nick Peihl
cd1e67cd2c
[Maps] Move layer stats collector logic to common (#135754) 2022-07-12 06:57:26 -07:00
Liza Katz
142661cffb
[EBT] Dashboard data loaded event (#134243)
* timing dashboard data loading

* reporting loading \ error from all embeddables

* report event

* lint

* comment out console

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Update embeddable_child_panel.tsx

* Make analytics optional

* Telemetry report to include both time to load data and time to render

* Measure load time from beginning of mount

* lint

* fix onDataLoadEnd and onDataLoadError event handler callbacks only called for source data requests

* dataLoadEnd

* code review

* imports

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* comment

* Fix dedupe of events!

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Rendered discover
Fix refresh not firing event

* oops

* Code review + DashboardLoadedEvent

* reportsEmbeddableLoad

* type

* isNil

* fix sync unsubscribe

* use store state instead of eventHandlers

* [EBT] Better FTR helper APIs

* dashboard loaded telemetry test

* timestamp

* tests

* tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* test

* docs + longer timeout

* fix

* Fix property inheritance and map events

* type error

* reportsEmbeddableLoad

* tests

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: nreese <reese.nathan@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2022-07-12 15:17:17 +03:00
Nathan Reese
6b018f797b
[maps] fix Tooltip loses pages on refresh (#135593)
* [maps] fix Tooltip loses pages on refresh

* increase debounce

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-08 13:34:56 -06:00
Nathan Reese
a349512b1e
[maps] convert TileStatusTracker to redux connected react component (#135943)
* [maps] convert TileStatusTracker to redux connected react component

* eslint

* Update x-pack/plugins/maps/public/connected_components/mb_map/tile_status_tracker/tile_status_tracker.tsx

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
2022-07-08 11:15:53 -06:00
Nathan Reese
5fb8d949f6
[maps] do not show layer error for regionmap when terms aggregation does not return data (#135564)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-30 13:02:05 -06:00
Nathan Reese
4a82f9815f
[maps] keydown+scroll to zoom (#135330)
* [maps] shift+scroll to zoom

* content

* only enable keydown scroll zoom in embeddable

* scss lint fix

* one more scss lint fix

* replace shift with control

* lint

* use smaller css transition so message hides faster when keydown+scrolling

* h3 and small text

* Update x-pack/plugins/maps/public/connected_components/mb_map/keydown_scroll_zoom/_index.scss

Co-authored-by: Michael Marcialis <michael@marcial.is>

* Update x-pack/plugins/maps/public/connected_components/mb_map/keydown_scroll_zoom/_index.scss

Co-authored-by: Michael Marcialis <michael@marcial.is>

* Update x-pack/plugins/maps/public/connected_components/mb_map/keydown_scroll_zoom/keydown_scroll_zoom.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

* Update x-pack/plugins/maps/public/connected_components/mb_map/keydown_scroll_zoom/keydown_scroll_zoom.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

* clean-up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2022-06-30 12:23:20 -06:00