Commit graph

42 commits

Author SHA1 Message Date
Stacey Gammon
e307be985a
Turn off api changes for app services and remove legacy docs for App Services plugins (#109927)
* Turn off legacy docs build script for app services plugins

* Remove legacy docs

* remove all *.api.md (minus core)
2021-08-26 14:01:21 -04:00
Alexey Antonov
3cc7da8435
[Lens] Inspect flyout should be available in editor mode. (#109656)
* [Lens] Inspect flyout should be available in editor mode.

* fix typo

* add test

* add functional tests for inspector

* toMatchInlineSnapshot -> toMatchSnapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 10:18:09 -04:00
Liza Katz
204efae5bf
[Data cleanup] unify serializable state (#107745)
* Use Serializable from package

* Rename to align with core

* fix

* more replacements

* docssss

* fix

* Move it to @kbn/utility-types and remove core export

* buildy build

* tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 13:03:48 +02:00
Mikhail Shustov
5480c4d0f4
[Execution context] Add nested context support (#107523)
* Add nested context support

* remove execution context service on the client side

ExecutionContextContaier is not compatible with SerializableState, so I had to fall back to passing context as POJO. With this change, using a service looks like overhead.

* update docs

* fix test

* address comments from Josh

* put export back

* update docs

* remove outdated export

* use input.title for unsaved vis

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 08:53:40 +02:00
Michael Dokolin
b140cb5cb1
[Aggregations] Create expression functions for object types used in agg params (#103494) 2021-07-29 07:00:35 +02:00
Peter Pisljar
6042e6929c
adding migrateToLatest to embeddable and expressions plugins (#106207) 2021-07-26 13:49:38 +02:00
Mikhail Shustov
f9089e11df
Instrument vis_type_vislib, lens and vis_type_timeseries with execution context service (#105206)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-19 17:35:33 +02:00
Michael Dokolin
15a613f488
[Partial Results] Update esaggs expressions function to return partial results (#105620)
* Update `esaggs` expressions function to support partial results
* Add partial results throttling in the expressions loader
2021-07-19 12:44:17 +02:00
Marco Liberati
509026d240
[Lens][Inspector] Enable inspector to display multiple requests for multiple layers (#105224)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-14 15:47:41 +02:00
Michael Dokolin
975e361d50
[Expressions] Update expressions public API to expose partial results support (#102403)
* Add partial result flag to the execution result
* Update expressions plugin run method to return observable
* Update data getter in the execution contract to return observable
* Update the expression loader to take into account the partial results flag
2021-07-01 22:48:47 +02:00
Joe Reuter
4180a026b7
[Lens] Formula overall functions (#99461) 2021-06-16 10:22:26 +02:00
Michael Dokolin
9bcae4d9cb
[Expressions] Refactor expression functions to use observables underneath (#100409) 2021-06-11 09:53:04 +02:00
Michael Dokolin
bde81c2090
[Expressions] Create expressions function to get UI settings (#101317) 2021-06-10 15:17:52 +02:00
Michael Dokolin
49a18483d3
Refactor execution service to use observables underneath (#96065)
* Refactor execution service to use observables underneath
* Fix canvas plugin to initialize workspace after assets
* Update expression functions implementations to resolve observables instead of promises
2021-04-22 20:36:25 +02:00
Peter Pisljar
1e87cef3e0
handling references for kibana_context and get_index_pattern expression functions (#95224) 2021-03-25 12:34:38 +01:00
Peter Pisljar
d81ab83c16
[examples] expressions explorer (#88344) 2021-01-22 19:52:47 +01:00
Stratoula Kalafateli
633495ef43
[XY axis] Implement new palette service (#86876)
* [XY Axis] New Palette service

* Calculate all Series to map the colors correctly

* remove commented out code

* syncColors on XY plugin

* Reset to false when no embeddable

* Add unit test for getAllSeries function

* Measure the usage of the selected palette

* Minor adjustments

* Update documentation for isSyncColorsEnabled method

* Fix bug on changing palette on charts with no split series

* Fix coloring for multiple y axis visualizations

* Call getPalettes function from the renderer

* Fullwidth palette picker

* Fetch palette registry on the component and not on the renderer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 15:56:28 +02:00
Joe Reuter
57a72a78f7
[Lens] Configurable color syncing (#86180) 2020-12-22 17:35:27 +01:00
Luke Elmers
9a3e2910a3
App Services: Remove remaining uiActions, expressions, data, embeddable circular dependencies. (#82791)
* Move applyFilter, selectRange, valueClick triggers to data/embeddables.

* Update imports.

* Remove embeddable references to non-existent data plugin dependency.

* remove data mocks from embeddable

* Remove query, filters, timeRange from EmbeddableInput and move to apps.

* Remove data plugin imports from embeddable test samples.

* Remove circular dependencies caused by expressions renderer handlers.

* Update circular deps allowList.

* Remove data dependency on embeddable.

* Revert accidental data plugin change.

* Fix new circular deps issues.

* Update generated docs.

* Fix type errors in vis_type_xy

* Fix inspector data table.
2020-12-18 18:34:07 -07:00
Peter Pisljar
b93034b72c
inspector table adapter cleanup (#84232) 2020-12-17 12:14:07 +01:00
Vadim Dalecky
b01a327076
Row trigger 2 (#83167)
* feat: 🎸 add ROW_CLICK_TRIGGER

* feat: 🎸 wire row click event to UI Actions trigger in Lens

* feat: 🎸 add row click trigger to url drilldown

* feat: 🎸 add datatable to row click context

* feat: 🎸 pass in row index in row click trigger context

* feat: 🎸 add columns to row click trigger context

* feat: 🎸 fill values and keys event scope array

* feat: 🎸 generate correct row scope variables

* fix: 🐛 report triggers from lens embeddable

* feat: 🎸 add sample preview for row click trigger

* feat: 🎸 remove url drilldown preview box

* chore: 🤖 remove mock variable generation functions

* feat: 🎸 generate context and global variable lists

* feat: 🎸 preview event variable list

* feat: 🎸 show empty url error on blur

* feat: 🎸 add ability to always show popup for executed actions

* refactor: 💡 rename multiple action execution method

* fix: 🐛 don't add separator befor group on no main items

* feat: 🎸 wire in uiActions service into datatable renderer

* feat: 🎸 check each row if it has compatible row click actions

* feat: 🎸 allow passing data to expression renderer

* feat: 🎸 add isEmbeddable helper

* feat: 🎸 pass embeddable to lens table renderer

* feat: 🎸 hide lens table row actions which are empty

* feat: 🎸 re-render lens embeddable when dynamic actions chagne

* feat: 🎸 hide actions column if there are no row actions

* feat: 🎸 re-render lens embeddable on view mode chagne

* fix: 🐛 fix TypeScript errors

* chore: 🤖 fix TypeScript errors

* docs: ✏️ update auto-generated docs

* feat: 🎸 add hasCompatibleActions to expression layer

* feat: 🎸 remove "data" from expression renderer handlers

* fix: 🐛 fix TypeScript errors

* test: 💍 fix Jest tests

* docs: ✏️ update autogenerated docs

* fix: 🐛 wrap event payload into data

* test: 💍 add "alwaysShowPopup" test

* chore: 🤖 add comment requested in review

https://github.com/elastic/kibana/pull/83167#discussion_r537340216

* test: 💍 add hasCompatibleActions test

* test: 💍 add datatable renderer test

* test: 💍 add Lens embeddable input change tests

* test: 💍 add embeddable row click test

* fix: 🐛 add url validation

* test: 💍 add url drilldown tests

* docs: ✏️ remove url drilldown preview from docs

* docs: ✏️ remove preview from url templating

* docs: ✏️ add row click description

* chore: 🤖 move 36.5 KB bundle balance to url_drilldown

* test: 💍 simplify test case

* style: 💄 change types places

* refactor: 💡 clean up panel variable generation

* test: 💍 add getPanelVariables() tests

* fix: 🐛 generate runtime variables correctly

* fix: 🐛 improve getVariableList() and add tests for it

* feat: 🎸 add translation, improve types
2020-12-14 13:28:23 +01:00
Luke Elmers
d2fc976b09
[data.search][data.indexPatterns] Expose esaggs + indexPatternLoad on the server. (#84590) 2020-12-03 08:28:50 -07:00
Joe Reuter
38a09b99c4
Expression: Add render mode and use it for canvas interactivity (#83559) 2020-11-24 18:42:02 +01:00
Luke Elmers
c6afc47f32
Remove data <--> expressions circular dependencies. (#82685) 2020-11-09 13:01:22 -07:00
Joe Reuter
651345b18b
[Lens] Expose active data in some places (#79851) 2020-11-06 17:05:34 +01:00
Peter Pisljar
7f70fc8478
Embeddables/migrations (#82296) 2020-11-05 07:03:23 +01:00
Marta Bondyra
64f50f8ff7
Add moving average function (#82122) 2020-11-04 14:19:03 +01:00
Joe Reuter
2dcb6b4687
Add derivative function (#81178) 2020-11-02 10:30:44 +01:00
Peter Pisljar
076bb734c7
Expressions/migrations2 (#81281) 2020-10-30 06:01:45 +01:00
Joe Reuter
59662eefd2
[Lens] Add loading indicator during debounce time (#80158) 2020-10-29 16:06:12 +01:00
Peter Pisljar
48adb07411
cleaning up expression service types (#80643) 2020-10-26 12:28:19 +01:00
Joe Reuter
e1bd1e8373
Add cumulative sum expression function (#80129) 2020-10-20 10:53:02 +02:00
Peter Pisljar
c90dabaeba
removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
Wylie Conlon
a5a42fdf70
[Expressions] Finish connecting debug mode on expressions (#78874)
* [Expressions] Finish connecting debug mode on expressions

* Fix bad merge

* Commit API docs
2020-10-16 12:06:12 -04:00
Joe Reuter
5fd7ad3b34
[Lens] Custom labels for ranges (#79628) 2020-10-14 14:21:27 +02:00
spalger
6eeab00944 Revert "removing kibana_datatable in favor of datatable` (#75184)"
This reverts commit 255b865be8.
2020-10-13 08:53:14 -07:00
Peter Pisljar
255b865be8
removing kibana_datatable in favor of datatable` (#75184) 2020-10-13 17:00:38 +02:00
Joe Reuter
cd84ace53d
[Lens] Leverage original http request error (#79831) 2020-10-13 15:17:40 +02:00
Peter Pisljar
1a3c0591b6
telemetry and reference extraction/injection for expression service (#72438) 2020-10-12 18:24:06 +02:00
Daniil Suleiman
b125472de5
Table visualization renderer (#79455)
* Implement toExpressionAst fn

* Implement table vis renderer, move legacy codebase

* Update legacy paths

* Update types

* Fix filtering

* Update styles

* Remove legacy tests

* Update docs

* Update tests

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-12 12:06:33 +03:00
Daniil Suleiman
b692c374a2
Timelion visualization renderer (#78540)
* Update styles

* Implement toExpressionAst fn

* Implement renderer

* Update unit tests

* Add unit tests

* Update types

* Remove unused vars

* Fix types

* Update types

* Show error message when no data

* Update ExpressionRenderDefinition api

* Update renderer when there is no data

* Make options component lazy

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 17:08:12 +03:00
Peter Pisljar
8e523edcd6
expression service docs (#78774) 2020-09-30 09:10:28 +02:00