Commit graph

320 commits

Author SHA1 Message Date
Stratoula Kalafateli
3144c0551b
[Lens] Navigate from discover to lens (#77873) (#79626)
* Create lens action and unregister the visualize one

* remove console

* Implement Discover to Lens, wip, missing tests

* Add unit tests

* fix embed lens to empty dashboard functional tests

* fix suggestions on save

* Fix bug on save button, query and filters should be transferred from discover

* Add functional test for the navigation from Discover to Lens

* PR update after code review

* unregister visualize action only if the action exists

* Change the test to not be flaky

* Move suggestions to editor frame and hide the emptyWorkspace for visualize field

* Update ui actions docs

* Add a retry to remove test flakiness

* Fix bug of infinite loader when removing the y axis dimension

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.actioncontextmapping.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.addtriggeraction.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.getaction.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggeractions.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.gettriggercompatibleactions.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.md
#	docs/development/plugins/ui_actions/public/kibana-plugin-plugins-ui_actions-public.uiactionsservice.registeraction.md
#	src/plugins/ui_actions/public/public.api.md
2020-10-06 13:08:17 +03:00
Wylie Conlon
2ee141508a
[7.x] [Lens] Show runtime fields in field list and improve performance (#79167) (#79340)
* [Lens] Show runtime fields in field list and improve performance (#79167)

* [Lens] Simplify request to determine existing fields

* Remove duplicate values
# Conflicts:
#	x-pack/test/api_integration/apis/lens/existing_fields.ts

* Fix merge issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-05 13:59:32 -04:00
Marta Bondyra
d02e3a9634
[Lens] refactor DimensionContainer and fix flyout bug (#79277) (#79430) 2020-10-05 15:10:15 +02:00
Joe Reuter
a91638c71c
improve lens lazy loading (#79292) (#79416) 2020-10-05 11:36:02 +02:00
Marco Vettorello
cc0034ec86
upgrade @elastic/charts to v23.0.0 (#79226) (#79331)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 22:39:06 +02:00
Ryan Keairns
a39449f4f2
Re-style and re-order top menu buttons (#79206) (#79320)
* Re-style and re-order top menu buttons

* Update snapshot due to removed fill prop

* Fix link order for Maps
2020-10-02 13:21:56 -05:00
Marta Bondyra
0ac5e78024
[Lens] remove test warnings about improper HTML structure (#79251) (#79306)
* [Lens] remove test warnings about improper HTML structure
2020-10-02 20:01:17 +02:00
Joe Reuter
6959555e1a
[Lens]Do not enable histogram mode for multiple un-stacked bar series (#78525) (#79269) 2020-10-02 14:57:32 +02:00
Marco Liberati
27c412bc62
[7.x] [Lens] Fix embeddable title and description for reporting and dashboard tooltip (#78767) (#79164)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 12:22:38 +02:00
Caroline Horn
3b07e1187a
[Lens] Consistent Drag and Drop styles (#78674) (#79153)
* Remove wrapping div of DragDrop and pass props to child
* Using EuiHighlight
* Basic styles in for all DnD states
* Fixing dimension button styles
* Fix FieldButton to accept `…rest` props
* A few other minor fixes
* Fixed horizontal scroll of error message
* Quick fix for invalid link
2020-10-01 14:47:55 -04:00
Marco Liberati
a41739e150
[7.x] [Lens] Histogram/range operation new copy (#78328) (#79118)
* 💬 New copy revision for histogram/range operation in lens

* 👌 Updated panel copy

* 👌 Change copy based on feedback
2020-10-01 18:40:18 +02:00
Joe Reuter
a93a323f4f
[Lens] Handle missing fields gracefully (#78173) (#79102) 2020-10-01 15:42:43 +02:00
Marta Bondyra
827b4a53ab
[Lens] Don't allow values outside of range for number of top values (#78734) (#79094) 2020-10-01 14:40:43 +02:00
Marta Bondyra
90d9334256
fix: add EuiOutsideClickDetector (#78733) (#79095)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 14:40:31 +02:00
Marta Bondyra
c32c84d679
[Lens] fix wrong message in fields accordion (#78924) (#79074) 2020-10-01 12:55:02 +02:00
Alejandro Fernández Haro
dc658d6f4e
[7.x] [Task names in TaskManager] Rename "telemetry" to "usage" (#78129) (#79069)
* [Task names in TaskManager] Rename "telemetry" to "usage"

* Revert task IDs but leaving renamed titles

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 10:54:23 +01:00
Alejandro Fernández Haro
b910b84718
[7.x] [Loggers] Rename "telemetry" to "usage" (#78130) (#79068)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 10:54:12 +01:00
Wylie Conlon
ba9a18b4b8
[Lens] Stop using scripted metric to collect telemetry (#78687) (#78995) 2020-09-30 14:39:05 -04:00
Wylie Conlon
ade7b73f5e
[Lens] Maintain order of operations in dimension panel (#78864) (#78972) 2020-09-30 13:16:58 -04:00
Joe Reuter
dbb9982405
[Lens] Reduce initial bundle size (#78142) (#78823) 2020-09-30 09:45:29 +02:00
Wylie Conlon
8f456babbe
[Lens] Fieldless operations (#78080) (#78620)
* [Lens] Fieldless operations

* Overhaul types

* Fix invalid state and add tests

* Fix types

* Small cleanup

* Add additional error message

* Reset field selector to empty state when invalid

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:57:46 -04:00
Caroline Horn
a6eed6e7dc
[Lens] Add a better drag/drop illustration (#78245) (#78425)
Fixes #76021
2020-09-24 11:25:41 -04:00
Alejandro Fernández Haro
0b62537f2f
[7.x] [Usage Collection] [schema] lens (#77929) (#78401)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 14:05:08 +01:00
Joe Reuter
6a3ba80309
[7.x] [Lens] show meta field data in Lens (#77210) (#78388) 2020-09-24 13:35:33 +02:00
Joe Reuter
d8a56f8547
[Lens] Add search provider for global search (#77448) (#78312) 2020-09-24 08:53:38 +02:00
Devon Thomson
47ed81fa31
[Time to Visualize] Lens By Value With AttributeService (#77561) (#78358)
Used the attribute service to make lens work properly with by value embeddables.
2020-09-23 19:17:50 -04:00
Marco Liberati
b71228cdea
[7.x] [Lens] Combined histogram/range aggregation for numbers (#76121) (#78287)
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-09-23 19:49:21 +02:00
Alejandro Fernández Haro
d02d08a4ba
[7.x] [Lens] Rename "telemetry" to "stats" (#78125) (#78275) 2020-09-23 15:42:18 +01:00
Marta Bondyra
7fe28c5884
[Lens] adding some functional tests (#77863) (#77932) 2020-09-18 21:37:24 +02:00
Marta Bondyra
668316bb95
[Lens] change name of custom query to filters (#77725) (#77845) 2020-09-18 13:23:34 +02:00
Stratoula Kalafateli
1567be984d
Aligns the y axis settings on horizontal mode (#77585) (#77781) 2020-09-18 08:58:04 +03:00
Wylie Conlon
52d580cb06
[Lens] Remove dynamic names in telemetry fields (#76988) (#77558)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 11:07:00 -04:00
Marta Bondyra
cde6be3a11
[Lens] create reusable component for filters and range aggregation (#77453) (#77592) 2020-09-16 13:49:23 +02:00
Stratoula Kalafateli
ab9c23e0fa
[Lens] Settings panel redesign and separate settings per y axis (#76373) (#77580)
* wip, redsign the xy axis general settings

* pie chart settings. fix tests, initial implementation

* Fix Internationalization

* Cleanup

* remove unused translations

* Add test to check that right axis is enabled

* fix test

* remove unecessary translation

* Added icons and cleaned up some of the visuals for grouped buttons

* Fix types

* Axis Settings Popover Reusable Component

* Legend Popover Reusable Component

* Cleanup unused translations

* Fix right axis behavior

* Revert yLeftTitle to yTitle to avoid migration

* PR fixes

* identify which axis is enabled

* Change the logic on enabling the y axes popovers

* Adjust axis popover on horizontal bars

* fix failing test and change the logic of fetching the y axis titles

* Simpify the axis title logic, make the toolbar repsponsive, add TopAxisIcon

* Ui Changes on legends popover

* Cleanup and more unit tests

* use groupId instead of index to take under consideration all possible scenarios

* fix gridlines

* Remove ts-ignore from icons and move toolbar button to shared components

* Workspace toolbar wraps on smaller devices

* Tooltip on Toolbar appears only if the button is disabled

* clean up

* Add missing translations

* fix eslint

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 13:22:04 +03:00
Michail Yasonik
1868e6ba9c
[7.x] Stacked headers and navigational search (#72331) (#77407)
Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-09-15 11:37:16 -05:00
Caroline Horn
2d4cdcfa35
[Lens] Move configuration popover to flyout (#76046) (#77487)
* Moving to a Flyout implementation
* Fix up inner layout of flyout
* Fix up form rows
2020-09-15 11:53:05 -04:00
Joe Reuter
90652421aa
[Lens] Stack as percentage (#70703) (#77455) 2020-09-15 13:32:02 +02:00
Devon Thomson
1cb09d4936
Add Lens to Recently Accessed (#77249) (#77382)
added lens to recently accessed on load and save in app.tsx
2020-09-14 15:38:47 -04:00
Marta Bondyra
4bcb2ba1a4
[Lens] fix performance on pie settings slider (#77181) (#77305) 2020-09-14 13:48:20 +02:00
Joe Reuter
c9b2897953
Separate url forwarding logic and legacy services (#76892) (#77302) 2020-09-14 12:47:02 +02:00
Marta Bondyra
6a91490854
[Lens] Filters aggregation (#75635) (#77242) 2020-09-10 23:15:38 +02:00
Wylie Conlon
78e2ed1ac7
[Lens] Show field stats for IP fields and scripted fields (#76457) (#76987)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 19:14:39 -04:00
Marta Bondyra
93abd2e818
[Lens] Update grouping editor to indicate the expected result of a grouping change (#76904) (#76955) 2020-09-08 19:41:16 +02:00
Wylie Conlon
fc27aee2d3
[Lens] Drag dimension to replace (#75895) (#76776)
* [Lens] Drag to replace

* Add jest tests for drag and drop

* Fix bug in dragging to empty

* Hide dragged dimension when drag starts

* Make table metrics required

* Update class names

* Implement styles on non-droppable items

* Replace drag and drop image in docs

* Remove extra specificity

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 12:15:37 -04:00
Greg Thompson
60c2737155
Upgrade EUI to v28.2.0 (#75700) (#76313)
* eui to v28.0.0

* eui to 28.2.0

* euiselectableoptions type update

* targeted nohoist

* src snapshot updates

* x-pack snapshot updates

* strong -> mark

* upgrade @elastic/charts to v21.0.1

* strong -> mark

* fix charts version merge

* maps -> add_field_tooltip_popover type update

* snapshot update

* Fix gridline visibility

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2020-08-31 13:28:43 -06:00
Wylie Conlon
2ba73acbd7
[Lens] Decouple visualizations from specific operations (#75703) (#76111)
* [Lens] Decouple visualizations from specific operations

* Remove unused mock
2020-08-27 14:08:36 -04:00
Marta Bondyra
c40d295088
[Lens] fix dimension popover design on mobile (#75866) (#75947) 2020-08-26 13:40:21 +02:00
Marta Bondyra
0a1023ce20
[Lens] Fix rollup related bugs (#75314) (#75949)
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2020-08-26 13:40:06 +02:00
Marta Bondyra
1cae7b3cb7
[Lens] Show 'No data for this field' for empty field in accordion (#73772) (#75687)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-25 11:12:14 +02:00
Devon Thomson
f4b5c30b43
Updated and unskipped lens breadcrumb test after #74523 (#75714) (#75792) 2020-08-24 18:04:43 -04:00
Wylie Conlon
0ec0d7e36e
[Lens] Remove beta labels (#75574) (#75776)
* [Lens] Remove beta labels

* Remove translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-24 14:03:06 -04:00
Brian Seeders
4898c7e5f1
Skip failing lens test 2020-08-21 15:10:45 -04:00
Joe Reuter
4dde848aac
[Lens] Register saved object references (#74523) (#75668) 2020-08-21 20:14:53 +02:00
Devon Thomson
9ba8942c2c
[Dashboard First] Lens Originating App Breadcrumb (#75470) (#75657)
Changed lens breadcrumbs to reflect the Originating App
2020-08-21 12:20:31 -04:00
Devon Thomson
d57460d521
[Dashboard First] Use App Title for Display Instead of App Id (#75457) (#75580)
Created app title fetch method in embeddable_state_transfer. Used it instead of the raw app id in a number of places.
2020-08-21 09:55:41 -04:00
Marta Bondyra
060f627179
[Lens] Use index pattern service instead saved object client (#74654) (#75631) 2020-08-21 14:54:43 +02:00
Matthias Wilhelm
4cbf55c67b
[Discover] Create field_button and add popovers to sidebar (#73226) (#75389)
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2020-08-19 09:48:35 +02:00
Marta Bondyra
afec96e2c7
[Lens] Fix crash when two layers xychart switches to pie (#75267) (#75282)
* [Lens] fix crash on two layers and add a functional test with two layers switching to pie chart
2020-08-18 18:23:34 +02:00
Greg Thompson
2e5e06bad6
Upgrade EUI to v27.4.0 (#74004) (#75064)
* eui to 27.1.0

* eui to 27.2.0

* buttoniconside type

* euiselectable type

* update onScroll callback and polyfill size references

* findTestSubject ts

* buttoncontent and collapsiblenav src snapshot updates

* update prop retrieval

* xpack snapshots

* jest updates

* type fixes

* more snapshots

* virtual list changes

* more virtualization changes

* merge

* fix functional tests

* data-test-subj for indexPatter-switcher

* storyshots

* eui to 27.3.1

* Fix unit tests

* Fix broken unit test

* Updated snapshots

* Fixed types

* search for value in euiselectable before selection

* select the correct element

* mock virtualized dep

* ts fix

* reinstate storyshot

* ts fix

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 17:55:16 -06:00
Wylie Conlon
a5124c49a0
[Lens] Fix table sorting bug (#74902) (#75047)
* [Lens] Fix table sorting bug

* Fix types
2020-08-14 13:19:47 -04:00
Luke Elmers
3b60fe1136
Make data.search.aggs available on the server. (#74472) (#74990) 2020-08-13 15:21:25 -06:00
Stratoula Kalafateli
5308ba1201
[Lens] Add styling options for x and y axes on the settings popover (#71829) (#74782)
* [Lens] Add styling options for x axis on the settings popover

* ts related changes

* Changes to the popover's design and y-axis implementatin

* fix types and add unit tests

* Add extra translations

* Fix functional test and change the logic of the yTitle

* fixes

* fix showTitle settings bug

* Fix ticklabels bug on y axes

* fix some tests

* Change the user flow on x and y titles on settings popover and enable the gridlines by default

* disable linter warning

* PR Comments

* Add a comment to callback to explain the decision to listen only to open changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-12 08:55:17 +03:00
Joe Reuter
9a7207f846
[Lens] Clear out all attribute properties before updating (#74483) (#74652) 2020-08-10 16:54:27 +02:00
Anton Dosov
e0efd61e08
Improve state sync error handling (#74264) (#74524)
Fixes #71461 regression since 7.7

New state syncing utils didn't properly handle errors,
Errors happening during URL parsing or writing wasn't handled, so state syncing could stop or in worth case blow out. (see #71461)

There are not much scenarios where missing proper error handling could really impact users, except the one described in #71461:

Kibana users state:storeInSessionStorage
Users often intuitively share hashed dashboard urls directly
When someone opens those urls - there is a blank screen with warning
In 7.6 - dashboard would still load with default state.
Since 7.7 these still could be achieved by removing query params for URL, but it is not obvious for regular users.

This PR makes sure that behaviour is similar to one we had before 7.7.


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 10:56:03 +02:00
Marta Bondyra
7dd1ee6667
[Lens] Add functional tests on chart transitions and pie chart (#74083) (#74565) 2020-08-07 09:29:28 +02:00
Devon Thomson
3f52764bb3
[Fix] Lose OriginatingApp Connection on Save After Create new (#74420) (#74569)
Fixed typo created in #72725 which caused the originatingApp connection not to be lost properly after Create new
2020-08-06 15:46:48 -04:00
Joe Reuter
cab674e73c
[Lens] Document UI terminology (#72423) (#74503) 2020-08-06 16:52:43 +02:00
Marta Bondyra
b3ddbc5610
[Lens] Clean and inline disabling of react-hooks/exhaustive-deps eslint rule (#70010) (#74481) 2020-08-06 12:13:48 +02:00
Marta Bondyra
4182fbd256
[Lens] fix chart switching when on VisualizationDimensionEditor (#70689) (#74382) 2020-08-06 09:34:13 +02:00
Mikhail Shustov
b2040a5a1b
[7.x] Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) (#74384)
* Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091)

* bump @typescript-eslint deps

* update rules

* fix errors in pacakges

* fix src/

* fix x-pack

* fix test

* fix typings

* fix examples

* allow _ as prefix and suffix

* roll back prefix and suffix changes

* add eslint-plugin-eslint-comments

* report unused rules

* remove unused eslint comments from tests

* remove unused eslint comments 2nd pass

* remove unused eslint comments from src/

* remove unused comments in x-pack

* use no-script-url and no-unsanitized/property for ts files

* remove unused eslint comments

* eui/href-or-on-click removed when not complained

* no import/* rules for ts files

* cleanup

* remove the unused eslint-disable

* rollback unnecessary changes

* allow underscore prefix & sufix in type name

* update docs

* fix type error in enterprise search plugin mocks

* rename platform hack __coreProvider --> _coreProvider

* rollback space removal in src/core/public/legacy/legacy_service.test.ts

* fix naming convention in APM
# Conflicts:
#	src/legacy/ui/public/new_platform/new_platform.ts
#	x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx

* remove unnecessary comment
2020-08-05 21:45:29 +02:00
Luke Elmers
87cfa3f620
Migrate timepicker:timeDefaults ui setting to the data plugin. (#73750) (#74315) 2020-08-05 08:20:22 -06:00
Marta Bondyra
2abf2568da
fix: pinned filters not applied (#73825) (#73979) 2020-07-31 21:45:21 +02:00
Liza Katz
25ceed986b
[7.x] [Data] Query Input String manager (#72093) (#73634)
* [Data] Query Input String manager (#72093)

* improve test stability

* query string input manager (needed for search demo)

* docs

* dashboard

* Fix jest

* mock fix

* Allow restoring a saved query

* sync url

* Luke's fix to test

* cleanup

* lens jest tests

* docs

* use queryStringManager.getDefaultQuery
Don't sync query to global state

* Update app.test.tsx

lens mock

* jest fix

* jest

* use new api in the example

* Rename state param to query to match url state

* Apply changes to discover

* Update src/plugins/data/public/query/query_string/index.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Improve query string state manager

* Cleanup dashboard code

* Handle refresh button

* Set initial dashboard state

* visualize state

* remove unused

* docs

* fix example

* fix jest

* fix filter app state in discover

* fix maps test

* jest

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/data/public/public.api.md

* docs
2020-07-29 13:47:55 +03:00
Devon Thomson
5fc80b4fc6
[Fix] Lose OriginatingApp Connection on Save As (#72725) (#73089)
Reset originatingApp in lens and visualize when return to dashboard on saving is false
2020-07-23 14:04:47 -04:00
Joe Reuter
7d9ebe028b
fix bug (#72809) (#73003) 2020-07-23 11:26:34 +02:00
Joe Reuter
6c7b9148c0
[Lens] Legend config (#70619) (#72821) 2020-07-22 14:13:19 +02:00
Devon Thomson
f8dd610924
Applying tiny fix from 72532 to main branch (#72533) (#72676) 2020-07-21 13:29:52 -04:00
Tim Roes
5cb778c682
Disable indexing of unnecessary Saved Object fields (#70409) (#72409)
* Disable indexing of unnecessary SO fields

* Add doc_values

* Add no doc_values to discover saved object

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-20 15:00:11 +02:00
Wylie Conlon
b6235ecd3f
[Lens] Fix switching with layers (#71982) (#72326)
* [Lens] Fix chart switching with multiple layers

* Unskip Lens smokescreen test

* Fix types

* Revert <p> change
2020-07-17 15:50:16 -04:00
Wylie Conlon
05dc674e3c
[Lens] Unskip Lens smokescreen test (#71986) (#72083) 2020-07-16 15:24:42 -04:00
Joe Reuter
907e43bf1d
[Lens] Handle failing existence check (#70718) (#72009) 2020-07-16 11:34:31 +02:00
Marta Bondyra
9f8b365ed7
[Lens] XY chart -long legend overflows chart in editor Feature:Lens (#70702) (#71752) 2020-07-15 12:11:54 +02:00
Caroline Horn
f74340f6ab
[Lens] 7.9 design cleanup (#71444) (#71573)
* Fix dimension popover layout and color picker “Auto”

* Created ToolbarButton

* Move disabled help text to tooltip for missing values

* Darker side panel backgrounds

* Adding to .asciidoc about where to put the SASS import

* Moving `SASS` guidelines to STYLEGUIDE.md

* Fix keyboard focus of XY settings popover

* Fix dark mode
2020-07-14 09:31:33 -04:00
Joe Reuter
4e7f4c5ad8
fix overflow (#70723) (#71437) 2020-07-13 16:51:21 +02:00
spalger
e535aa6446 Revert "Revert "[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)" (#71382)"
This reverts commit c45fa3dd58.
2020-07-10 20:13:28 -07:00
Brian Seeders
c45fa3dd58
Revert "[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)" (#71382)
This reverts commit 243a864359.
2020-07-10 23:07:01 -04:00
Spencer
243a864359
[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/integration_tests/__snapshots__/basic_optimization.test.ts.snap
#	src/plugins/embeddable/kibana.json
#	src/plugins/telemetry/kibana.json
#	src/plugins/ui_actions/kibana.json
#	x-pack/plugins/apm/kibana.json
#	x-pack/plugins/upgrade_assistant/kibana.json
2020-07-10 09:37:22 -07:00
Joe Reuter
bee259b1a9
mitigate kql bug (#70712) (#71222) 2020-07-09 17:37:12 +02:00
Joe Reuter
a5518e0da3
[Lens] Fitting functions (#69820) (#70767) 2020-07-06 13:48:11 +02:00
Joe Reuter
2c0651e6d8
[Lens] Add ability to set colors for y-axis series (#70311) (#70719) 2020-07-03 18:37:16 +02:00
Tiago Costa
7759b924fc
[7.x] chore(NA): upgrade to lodash@4 (#69868) (#70683)
* chore(NA): upgrade to lodash@4 (#69868)

* chore(NA): upgrade oss to lodash4

chore(NA): migrate cli, cli_plugin, cli_keystore,  dev, test_utils and apm src script to lodash4

chore(NA): missing file for cli plugin

chore(NA): add src core

chore(NA): es archiver and fixtures

chore(NA): try to fix functional test failure

chore(NA): migrate src/legacy entirely to lodash4 except src/legacy/core_plugins

chore(NA): move legacy core plugins to lodash4

chore(NA): upgrade optimize to lodash4

chore(NA): upgrade to lodash4 on advanced_settings, charts, console and dashboard

chore(NA): migrate to lodash4 on dev_tools, discover, embeddable, es_ui)shared, expressions, home plugins

chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4

chore(NA): missing data upgrades to lodash4

Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4"

This reverts commit 137055c5fed2fc52bb26547e0bc1ad2e3d4fe309.

Revert "Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4""

This reverts commit f7e73688782998513d9fb6d7e8f0765e9beb28d1.

Revert "chore(NA): missing data upgrades to lodash4"

This reverts commit 92b85bf947a89bfc70cc4052738a6b2128ffb076.

Revert "chore(NA): upgrade data plugin to lodash4"

This reverts commit 88fdb075ee1e26c4ac979b6681d8a2b002df74c6.

chore(NA): upgrade idx_pattern_mgt, input_control_vis, inspector, kbn_legacy, kbn_react, kbn_usage_collections, kbn_utils, management and maps_legacy to lodash4

chore(NA): map src plugin data to lodash3

chore(NA): missing lodash.clonedeep dep

chore(NA): change packages kbn-config-schema deps

chore(NA): update renovate config

chore(NA): upgrade vis_type plugins to lodash4

chore(NA): move vis_type_vislib to lodash3

chore(NA): update visualizations and visualize to lodash4

chore(NA): remove lodash 3 types from src and move test to lodash4

chore(NA): move home, usage_collection and management to lodash 3

Revert "chore(NA): move home, usage_collection and management to lodash 3"

This reverts commit f86e8585f02d21550746569af54215b076a79a3d.

chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3

chore(NA): update x-pack test to mock lodash4

Revert "chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3"

This reverts commit 2d10fe450533e1b36db21d99cfae3ce996a244e0.

* chore(NA): move x-pack and packages to lodash 4

* chore(NA): remove mention to lodash from main package.json

* chore(NA): remove helper alias for lodash4 and make it the default lodash

* chore(NA): fix last failing types in the repo

* chore(NA): fix public api

* chore(NA): fix types for agg_row.tsx

* chore(NA): fix increment of optimizer modules in the rollup plugin

* chore(NA): migrate `src/core/public/http/fetch.ts` (#5)

* omit undefined query props

* just remove merge usage

* fix types

* chore(NA): fixes for feedback from apm team

* chore(NA): recover old behaviour on apm LoadingIndeicatorContext.tsx

* chore(NA): fixes for feedback from watson

* Platform lodash4 tweaks (#6)

* chore(NA): fix types and behaviour on src/core/server/elasticsearch/errors.ts

* Canvas fixes for lodash upgrade

* [APM] Adds unit test for APM service maps transform (#7)

* Adds a snapshot unit test for getConnections and rearranges some code to make testing easier

* reverts `ArrayList` back to `String[]` in the painless script within `fetch_service_paths_from_trace_ids.ts`

* chore(NA): update yarn.lock

* chore(NA): remove any and use a real type for alerts task runner

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* chore(NA): used named import for triggers_actions_ui file

* chore(NA): fix eslint

* chore(NA): fix types

* Delete most uptime lodash references.

* Simplify. Clean up types.

* [Uptime] Delete most uptime lodash references (#8)

* Delete most uptime lodash references.

* Simplify. Clean up types.

* chore(NA): add eslint rule to avoid using lodash3

* chore(NA): apply changes on feedback from es-ui team

* fix some types (#9)

* Clean up some expressions types.

* chore(NA): missing ts-expect-error statements

* Upgrade lodash 4 vislib (#11)

* replace lodash 3 with lodash 4 on vislib plugin

* Further changes

* further replacement of lodash3 to 4

* further work on upgrading to lodash 4

* final changes to update lodash

* chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade data plugin public to lodash4

chore(NA): fix typecheck task

chore(NA): fix agg_config with hasIn

chore(NA): assign to assignIn and has to hasIn

chore(NA): upgrade data plugin server to lodash4

chore(NA): new signature for core api

fix(NA): match behaviour between lodash3 and lodash4 for set in search_source

* chore(NA): remove lodash3 completely from the repo

* chore(NA): fix x-pack/test/api_integration/apis/metrics_ui/snapshot.ts missing content

* chore(NA): fix lodash usage on apm

* chore(NA): fix typecheck for maps

* Patch lodash template (#12)

* Applying changes from https://github.com/elastic/kibana/pull/64985

* Using isIterateeCall, because it seems less brittle

* Also patching `lodash/template` and `lodash/fp/template`

* Reorganizing some files...

* Revising comment

* Ends up `_` is a function also... I hate JavaScript

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
# Conflicts:
#	renovate.json5
#	x-pack/plugins/apm/public/services/rest/observability_dashboard.ts
#	x-pack/plugins/canvas/common/lib/pivot_object_array.ts
#	x-pack/plugins/canvas/public/components/workpad_templates/workpad_templates.js
#	x-pack/plugins/canvas/server/collectors/custom_element_collector.ts
#	x-pack/plugins/canvas/server/collectors/workpad_collector.ts

* chore(NA): updated kbn-pm dist file
2020-07-03 04:40:17 +01:00
Nick Partridge
0ffa2cb599
Fix discover, tsvb and Lens chart theming issues (#69695) (#70598) 2020-07-02 11:14:18 -05:00
Marta Bondyra
297853643d
[Lens] fix dimension label performance issues (#69978) (#70553) 2020-07-02 11:08:04 +02:00
Joe Reuter
4b06ef95e0
[Lens] Multiple y axes (#69911) (#70400) 2020-07-01 12:33:08 +02:00
Joe Reuter
999926aebb
[Lens] Move chart switcher over (#70182) (#70402) 2020-07-01 12:28:21 +02:00
Joe Reuter
8b86f7ef67
[Lens] Add "no data" popover (#69147) (#70403) 2020-07-01 12:28:05 +02:00
Mikhail Shustov
03e721604f
Use ts-expect-error in platform code (#69883) (#70287)
* ts-ignore --> ts-expect-error

* fix error with mutable array

* fix errors in consumers code

* update SOM

* fix FeatureConfig & Feature compatibility

* do not re-export from code. it breaks built version

* update docs

* add eslint rule for platform team code

* remove test. this is covered by ts-expect-error in unit tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/core/utils/integration_tests/__fixtures__/frozen_object_mutation/tsconfig.json
2020-06-30 10:39:36 +02:00
Pierre Gayvallet
ecd2082e73
[7.x] Move and rename legacy elasticsearch client (#69797) (#70221)
* Move and rename legacy elasticsearch client (#69797)

* move last snapshot to inline

* move legacy files to legacy subfolder

* move request types out of legacy

* export Headers from http instead of elasticsearch

* renaming - first pass

* renaming - second pass

* fix core mocks

* adapt new calls

* update generated doc

* fix IT test mocks

* fix new usages
# Conflicts:
#	src/core/server/saved_objects/service/lib/repository.ts
#	x-pack/plugins/event_log/server/es/context.test.ts
#	x-pack/plugins/oss_telemetry/server/test_utils/index.ts
#	x-pack/plugins/upgrade_assistant/server/lib/es_migration_apis.ts

* fix usages
2020-06-29 23:24:04 +02:00
Wylie Conlon
58fee6c5c2
[Lens] Fix cross cluster bug and optimize existence query (#70132) (#70237)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:48:43 -04:00
Marta Bondyra
39102c33e4
[Lens] Use accordion menus in field list for available and empty fields (#68871) (#70095)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-27 22:32:09 +02:00
Marta Bondyra
8d1ae019ae
[Lens] Fix broken test (#70117) (#70148)
Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2020-06-27 11:41:27 +02:00
Marta Bondyra
39b2d71ce7
[Lens] Last used Index pattern is saved to and retrieved from local storage (#69511) (#70077) 2020-06-26 18:37:09 +02:00
Devon Thomson
305a7200e8
prep state transfer for passing embeddables by value to editor and back (#69991) (#70073)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 11:45:49 -04:00
Marta Bondyra
4b0e45d7c8
[Lens] Fix delete button position in dimension panel for long labels (#69495) (#70046) 2020-06-26 11:59:00 +02:00
Joe Reuter
de5ecc0cef
[Lens] Add toolbar api (#69263) (#70044) 2020-06-26 11:55:52 +02:00
Marco Vettorello
01a7437087
Update dependency @elastic/charts to v19.5.2 (#69126) (#69786)
Update @elastic/charts to 19.5.2

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2020-06-24 15:25:23 +02:00
Devon Thomson
8d26b5ce61
Remove App communication from URL (#67064) (#69726)
Removed all inter-app communication via url in favour of a new service in the embeddable start contract called the state transfer service.
2020-06-23 16:06:11 -04:00
Spencer
a0e2e976f0
[7.x] [kbn/optimizer] share all plugin bundles (#68986) (#69234)
* [kbn/optimizer] share all plugin bundles (#68986)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* [BundleRefPlugin] resolve imports to files too

(cherry picked from commit 2bb6ac1a796c6b8661d9ca6c33bef9e23d7a0764)

* [kbn/optimizer] fix windows compatibility (#69304)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit db1df7bed0)

* [BundleRefPlugin] resolve imports to files too (#69241)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit e03f2428b1)

* update extraPublicDirs to include latest changes

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 17:41:32 -07:00
Marta Bondyra
62fbe12be3
[lens] perf: memoize onEvent handler to avoid unnecessary re-render (#68637) (#69026)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 15:41:39 +02:00
Caroline Horn
ceeea9a7f2
[Lens] Fix aggregation selection indicator (#68973) (#69013)
* Some sass modularization and using EuiListGroup instead of EuiSideNav
* Fixes #68530
2020-06-12 11:58:43 -04:00
Mikhail Shustov
c9ac203e94
Bump TypeScript to v3.9 (#67666) (#68870)
* add babel support for export type

* bump ts version to 3.9.3

* rebuild kbn-pm

* bump typescript-eslint

* fix error in security plugin UI

* check export as works

* fix app migration type

* use correct test subj attribute

* fix errors from the old PR

* embeddable is already passed in props

* explicitly define type of fetch

* add some types for viz

* fix fetch type p.2

* add null to allow spreading without type errors due to override

* add type guard to fix type error

* cast to any, since cannot assign unknown

* add timestamp to known types

* fix type error in fetch

* fix type error. id is always defined in attibutes

* declare a type

* move ts-ignore to the lines with errors

* declare tuple type explicitly

* mute type error. cannot assign unknown

* fix errors. id is always defined

* fix error type

* fix override errors. id is always defined

* fix error. extends any doesn't work anymore

* fix type error. type is always defined

* env doesn't always contain values

* fix type error

* cast to string

* add: logs is already declared in getNodeLogsUrl

* state is already  passed in props

* fix some errors in timelion

* number of fragments is always defined

* 'absolute' is not just string, but value

* TEMP: option is always defined

* always true if cast to promise manually

* both props are always defined

* explicitly define returned SO type

* workaround type

* bump tslib to be compatible with ts v3.9

* test private property

* rebuild kbn-pm

* Fix ts errors for beats management

* Fix type inference broken by the TS 3.9 upgrade

* Fix ingest manager saved object attributes typings

* Fix TS errors in cross_cluster_replication and index_management.

* Fix TS error in Watcher.

* roll back colorRange wrong type

* fix security plugin types

* TypeScript 3.9 fixes for APM

* Fix ColorRange types.

* fix actions & alerts errors. ByGidi

* fix lists error

* More APM fixes

* Remove paramaterization from `removeEmpty in agent config SettingsPage component (it's only used there and doesn't need to be parameterized.)
* Add option chain for case in registerTransactionDurationAlertType
* Cast `overallValue` in transform_metrics_chart
* Use more specific type for custom link filters
* Add more option chaining for local UI filters buckets response
* Remove unused parameters from routes
* Fix getProjection type parameter
* Use destructuring in serviceNodesLocalFiltersRoute to hide `never` error
* Revert `UnionToIntersection` change in `AggregationResponseMap`

Fixes #67804.

* fix platform type error

* Fix visualizations types.

* Fix data plugin types.

* bump TS version to 3.9.5

* Fix telemetry TS errors

* Fix dashboard code

* Adding Canvas Fixes for TS 3.9

* Fix case and security_solution types

* roll back to the old export syntax. new one might cause problems in api-extractor

* update docs

* Fix timelion code

* Fix meta

* Fix types

* fix type errors om ingest_manager

* bump babel deps

* enable private props & methods syntax

* update kbn-pm dist

* whitelist 0BSD license

* use @babel/plugin-proposal-private-methods in default set as well

* disable new babel plugins

* Revert "disable new babel plugins"

This reverts commit 04d959431d.

* cleanup security_solution types

* Fixes type error for newer TypeScript

* update docs

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 12:25:28 +02:00
Joe Reuter
524e0d1d81
[Lens] Add description property and check duplicate title on save (#68219) (#68788) 2020-06-10 20:59:05 +02:00
Joe Reuter
b3a26b7fb1
keep custom labels (#68498) (#68789) 2020-06-10 20:58:43 +02:00
Joe Reuter
d95b5eaa13
[Lens] Keep global filters, time range and refresh interval on refresh (#68075) (#68768) 2020-06-10 18:27:00 +02:00
Devon Thomson
502e2c9f88
[Chore] Simplify Embeddable Panel usage (#68006) (#68574)
Replaced usages of the EmbeddablePanel component with a shortcut panel API
2020-06-09 10:23:39 -04:00
Aleh Zasypkin
2890d5b1fe
[7.x] Register privileges in Kibana Platform Security plugin and remove legacy getUser API. (#68344)
# Conflicts:
#	x-pack/README.md
#	x-pack/plugins/uptime/README.md
#	x-pack/scripts/functional_tests.js
2020-06-05 14:12:00 +02:00
Alexey Antonov
be519086d2
[uiSettings]: Migrate items owned by app arch to new platform (#66040) (#68354)
* Migrated uiSettings items to new platform

* API changes

* Fixed translations

* Fixed comment and i18n

* Fixed tests

* Fixed internalization

* Fix karma tests

* made code more explicit

* Fixed plugin

* Added consts for ui settings ids.

* Added id for another settings

* Fixed tests.

* Improved imports

* Fix imports to public which were happening from the server.

* Fixed paths

* Moved styles to plugin.ts

* Moved styles

* Fixed docs

* Fix ci

* Fix ci

* fix documentation

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
# Conflicts:
#	src/legacy/core_plugins/kibana/server/ui_setting_defaults.js

Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2020-06-05 14:37:46 +03:00
Joe Reuter
a1d0aa0fc9
Lens editor auto refresh (#65868) (#68061) 2020-06-03 13:15:07 +02:00
Wylie Conlon
6fd42d2615
[Lens] Warn if leaving with unsaved visualization (#67689) (#67900)
* [Lens] Warn if leaving with unsaved visualization

* Made confirmation logic more robust and add title

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-01 17:54:26 -04:00
Wylie Conlon
e6894eeb9e
[Lens] Allow visualizations to provide a dimension editor (#67560) (#67885)
* [Lens] Allow visualizations to provide a dimension editor

* Update to tab style

* Remove table update

* Update class name

* typecheck fix

* Add test

* Require each dimension group to enable editor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-06-01 15:37:05 -04:00
Joe Reuter
db5a7ea551
Fix visualize and lens telemetry (#67749) (#67828) 2020-05-31 21:47:03 +02:00
Marta Bondyra
2345bedd4c
perf: drag and drop performance improvement for field list (#67455) (#67739) 2020-05-29 13:36:50 +02:00
Marta Bondyra
e93c749ed2
[Lens] Fix empty values filtering (#67594) (#67740) 2020-05-29 13:36:15 +02:00
Mikhail Shustov
42ae0b9031
[7.x] Mark elasticsearch client exposed via request context as deprecated (#67319) (#67576)
* Mark elasticsearch client exposed via request context as deprecated (#67319)

* add legacy prefix for es client exposed via request handler context

* update src/plugins

* update core mocks and tests

* update test plugins

* update xpack plugins

* include x-pack/mocks.ts

* update after master merge

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts
#	x-pack/plugins/upgrade_assistant/server/routes/cluster_checkup.ts

* fix upgrade assistant tests
2020-05-28 14:02:01 +02:00
restrry
2fefd60e90 update code style 2020-05-22 10:35:02 +02:00
Joe Reuter
21d70fb05c
fix filter filtering out falsy values (#66904) (#66989) 2020-05-19 18:10:35 +02:00
Marta Bondyra
480ae746ab
[Lens] Fix datatable empty state (#66744) (#66969) 2020-05-19 16:32:09 +02:00
Joe Reuter
a968a3a70c
Lens drilldowns (#65675) (#66707) 2020-05-15 16:11:38 +02:00
Devon Thomson
217484555c
[Lens] fix redirect after reload (#66328) (#66591)
Changed the way the lens app tracks originatingApp. It is now removed from the url when the app starts and is tracked as part of the state
2020-05-14 16:28:00 -04:00
Marta Bondyra
385cb3c98a
[Lens] fix empty state for pie (#66206) (#66390) 2020-05-13 17:13:52 +02:00
Joe Reuter
ef2c5ef761
Switch to core application service (#63443) (#66353) 2020-05-13 11:34:57 +02:00
Marta Bondyra
694d198fa5
[Lens] refactor to not filter layers three times (#66174) (#66251) 2020-05-12 22:26:32 +02:00
Wylie Conlon
159d49ed4f
[Lens] Type safe migrations (#65576) (#65766)
* [Lens] Type safe migrations

* Commit API changes

* Remove optional chaining for required properties

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 18:10:22 -04:00
Wylie Conlon
2472a3e75f
[Lens] Use rules of hooks with linting (#65593) (#65688)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 16:32:35 -04:00
Marta Bondyra
24be2973f9
[Lens] Fix console.error react memory leak when saving new viz (#65490) (#65713) 2020-05-07 20:24:24 +02:00
Wylie Conlon
40c23fe91e
[Lens] Remove "inside only" option for treemap labels (#65363) (#65573)
* [Lens] Remove "inside only" option for treemap labels

* Fix type error

* Update from feedback
2020-05-06 18:53:08 -04:00
Devon Thomson
e600b6b6d6
Return to dashboard after editing embeddable (#62865) (#65371)
Changed the process for saving visualizations and lens visualizations when the user has been redirected there from another application.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-06 02:30:42 -04:00
Wylie Conlon
53b4f1ca8e
[Lens] Pie and treemap charts (#55477) (#65360)
* [Lens] Add pie and treemap visualizations

* Fix types

* Update to new platform

* Support 2-layer treemap and legends, dark mode

* Significant restructuring of code

* Upgrade to latest charts library

* Commit yarn.lock

* chore: update elastic-charts

* fix types after merge master

* Add settings panel and merge visualizations

* Fix tests

* build: upgrade @elastic/charts to 19.0.0

* refactor: onBrushEnd breaking changes

* fix: missing onBrushEnd argument changes

* More updates

* Fix XY rendering issue when all dates are empty

* Fix bugs and tests

* Use shared services location

* Fix bug in XY chart

* fix: update ech to 19.1.1

* fix: lens onBrushEnd breaking changes

* Change how pie/treemap settings work

* [Design] Fix up settings panel

* [Design] Update partition chart config styles

* fix eslint

* Fix legend issues in pie and XY, add some tests

* update to 19.1.2

* Fix text color for treemap

* Fix chart switch bug

* Fix suggestions

Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-05-05 17:49:37 -04:00
Marco Vettorello
e81ff9dcd6
Update dependency @elastic/charts to v19.1.2 (#64759) (#65235) 2020-05-05 12:56:31 +02:00
Mikhail Shustov
1222c8917e
load lens app lazily (#64769) (#65098) 2020-05-04 19:59:12 +02:00
Wylie Conlon
dd5445399e
[Lens] Trigger a filter action on click in datatable visualization (#63840) (#64967) 2020-05-01 14:49:22 +02:00
Marta Bondyra
50ff9cad57
[Lens] Allow user to drag and select a subset of the timeline in the chart (aka brush interaction) (#62636) (#64992)
* feat: brushing basic example for time histogram

* test: added

* refactor: simplify the structure

* refactor: move to inline function

* refactor

* refactor

* Always use time field from index pattern

* types

* use the meta.aggConfigParams for timefieldName

* fix: test snapshot update

* Update embeddable.tsx

removing commented code

* fix: moment remov

* fix: corrections for adapting to timepicker on every timefield

* fix: fix single bar condition

* types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2020-05-01 11:36:41 +02:00
Wylie Conlon
38d4662d90
[Lens] Hide some suggestions in preparation for pie charts (#64740) (#64909)
* [Lens] Hide some suggestions in preparation for pie charts

* Suggest reordering the X and Break down by axis

* More tweaks

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-30 16:00:44 -04:00
Wylie Conlon
643cabe781
[7.x] [Lens] Bind all time fields to the time picker (#63874) (#64857)
* [Lens] Bind all time fields to the time picker (#63874)

* Bind non primary time fields to timepicker

* Fix typescript argument types

* Allow auto interval on all fields

* Remove lens_auto_date function

* Fix existing jest tests and add test todos

* Remove lens_auto_date from esarchives

* Add TimeBuckets jest tests

* Fix typo in esarchiver

* Address review feedback

* Make code a bit better readable

* Fix default time field retrieval

* Fix TS errors

* Add esaggs interpreter tests

* Change public API doc of data plugin

* Add toExpression tests for index pattern datasource

* Add migration stub

* Add full migration

* Fix naming inconsistency in esaggs

* Fix naming issue

* Revert archives to un-migrated version

* Ignore expressions that are already migrated

* test: remove extra spaces and  timeField=\\"products.created_on\\"} to timeField=\"products.created_on\"}

* Rename all timeField -> timeFields

* Combine duplicate functions

* Fix boolean error and add test for it

* Commit API changes

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>

* fix: fix migration

* types fix

Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-04-30 13:47:03 -04:00
Wylie Conlon
5c72e7934a
[Lens] Use a size of 5 for first string field in visualization (#64726) (#64863)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-30 10:52:57 -04:00
Pierre Gayvallet
361e7618ec
add generic typings for SavedObjectMigrationFn (#63943) (#64874)
* add generic typings for SavedObjectMigrationFn

* change default attributes type to unknown

* update generated doc

* adapt new calls

* update generated doc

* update migration example

* fix merge conflicts
2020-04-30 16:06:17 +02:00
Wylie Conlon
6ce5b9e493
[Lens] Use suggestion system in chart switcher for subtypes (#64613) (#64851)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 22:03:30 -04:00
Marta Bondyra
074b6f8560
[Lens] Don't use auto interval to get interval for single bar (#64502) (#64784)
* feat: don't use auto interval to get interval for single bar

* fix: fixing non auto intervals

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 19:29:06 +02:00
Rudolf Meijering
069d347929
[7.x] Refactor Plugins to access elasticsearch from CoreStart (#59915) (#64329)
* Refactor Plugins to access elasticsearch from CoreStart (#59915)

* x-pack/watcher: use Elasticsearch from CoreStart

* x-pack/upgrade_assistant: use Elasticsearch from CoreStart

* x-pack/actions: use Elasticsearch from CoreStart

* x-pack/alerting: use Elasticsearch from CoreStart

* x-pack/lens: use Elasticsearch from CoreStart

* expressions: use Elasticsearch from CoreStart

* x-pack/remote_clusters: remove unused Elasticsearch dependency on CoreSetup

* x-pack/oss_telemetry: use Elasticsearch from CoreStart

* Cleanup after #59886

* x-pack/watcher: create custom client only once

* Revert "x-pack/watcher: create custom client only once"

This reverts commit 78fc4d2e93.

* Revert "x-pack/watcher: use Elasticsearch from CoreStart"

This reverts commit b621af9388.

* x-pack/task_manager: use Elasticsearch from CoreStart

* x-pack/event_log: use Elasticsearch from CoreStart

* x-pack/alerting: use Elasticsearch from CoreStart

* x-pack/apm: use Elasticsearch from CoreStart

* x-pack/actions: use Elasticsearch from CoreStart

* PR Feedback

* APM review nits

* Remove unused variable

* Remove unused variable

* x-pack/apm: better typesafety

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Fix event log tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-24 13:52:28 +02:00
Nick Partridge
2408d9d558
Update elastic charts v18.4.1 (#64257) (#64331) 2020-04-23 15:43:12 -05:00
Peter Pisljar
f8563f8b27
refactor action filter creation utils (#62969) (#64143) 2020-04-23 13:23:35 +02:00
Wylie Conlon
8c4b8f442f
[Lens] Split apart config panel component to more manageable chunks (#63910) (#64256)
* [Lens] Split apart config panel component to more manageable chunks

* Moving around and renaming SASS appropriately

* Remove layer limit

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-04-22 20:35:28 -04:00
Chandler Prall
43cba29bd6
Upgrade to EUI v22.3.0 (#62963) (#64222)
* snapshot updates

* bump to eui 22.3.0

* snapshots

* Fix css selector in test to match EUI internal DOM change

* Updated snapshots

* Insert react-beautiful-dnd@10 into top-level kibana to force siem's node_modules to hold its correct version

* More snapshot updates, resolved a typescript issue

* Move react-beautiful-dnd dependency around to make things happy again

* Use SearchFilterConfig from the top-level eui export

* Swallow 'ResizeObserver error does not have an err object' error in canvas

* Swallow ResizeObserver error cross-browser
2020-04-22 14:27:07 -06:00
Wylie Conlon
72299c8227
[Lens] Allow table to scroll horizontally (#63805) (#63908)
* [Lens] Allow table to scroll horizontally

* Fixing scrolling pt. 2

Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-21 10:19:28 -04:00
Wylie Conlon
488e12fa53
[Lens] Fix existence for dotted paths in _source (#63752) (#63893) 2020-04-17 16:19:25 -04:00
Wylie Conlon
c5fc56c750
Fix task manager cancel warning (#63756) (#63872)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-17 16:19:09 -04:00
Joe Portner
f6cb14ad1a
[7.x] Refactor SO types to use namespaceType (#63217) (#63745)
Remove `namespaceAgnostic` field that was deprecated in #54605,
use `namespaceType` instead.
2020-04-16 19:11:43 -04:00
Wylie Conlon
4d26af3bbb
[Lens] Make average the default suggested metric (#63416) (#63715)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 13:09:12 -04:00
Wylie Conlon
c67e5d74a0
[Lens] Fix escaping of field names (#63509) (#63713)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 13:08:56 -04:00
Wylie Conlon
c365b0cd80
[Lens] Only show copy on save for previously saved docs (#63535) (#63634)
* [Lens] Only show copy on save for previously saved docs

* Update app.test.tsx

import after kibana platform changes

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 10:03:13 -04:00
Tim Roes
df163260d2
Move Lens frontend to Kibana Platform (#62965) (#63562)
* Move Lens frontend to Kibana platform

* Fix line breaks

* Fix jest tests

* Fix remaining test

* Remove old Lens plugin entry

* Fix i18n prefix

* Add config schema

* Address review
2020-04-15 14:41:16 +02:00
Wylie Conlon
742074287c
[Lens] Migration from 7.7 (#62879) (#63469)
* [Lens] Migration from 7.7

* Fix types

* Fix types in test

* Add docs

* Commit forgotten file

* Remove extra types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 13:12:23 -04:00
Tim Roes
c18c5dbffd
Move lens saved object setup to Kibana platform (#61157) (#61306) 2020-03-26 08:48:20 +01:00
Josh Dover
09d6667605
[7.x] Fix plugin enabled config options (#60998) (#61355)
* Fix plugin enabled config options (#60998)

* Fix types
2020-03-25 18:43:33 -06:00
Catherine Liu
7cb797091d
[Canvas] Add Lens embeddables (#57499) (#60660)
* Added lens embeddables to embed flyout

Fixed import

embedded panel styles (#58654)

Merging to WIP draft branch

* Added i18n strings for savedLens

* Added tests for lens embeddables

* Updated tests

* Updated tests

* Added style overrides for lens table

* DDisables triggers on lens emebeddable

* Updated test

* Sets embeddable view mode according to app state

* Fix embeddable component

* Removed embeddable view mode logic

* Removed unused import
2020-03-20 00:03:19 -07:00
Larry Gregory
489d112f77
[7.x] Allow kbn-config-schema to ignore unknown keys (#59560) (#60407)
* allow kbn-config-schema to ignore unknown keys

* Consolidate unknown key configuration

* updates following merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-17 14:23:25 -04:00
Marta Bondyra
e84ac45171
[7.x] [Lens] Adds using queries/filters for field existence en… (#59984)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 15:00:31 +01:00
Mikhail Shustov
fc6674ad1e
force savedObject API consumers to define SO type explicitly (#58022) (#58281)
* force savedObject consumers to define type explicitly

* address comments

* regen docs
2020-02-22 07:36:20 +01:00
Tim Roes
981f53c52e
[Lens] Make field stats work for index patterns without time fields (#56759) (#56963)
* Fix field stats not loaded without time field

* Add integration test for API

* Add unit test for API call

* Correct typo in comment
2020-02-06 15:58:42 +01:00
Joe Reuter
6d23969bfb
Move lens server to new platform (#56474) (#56888) 2020-02-06 09:22:06 +01:00