Daniil
3f81a0b16a
[Visualizations] Changes in custom visualizations support ( #88317 ) ( #89266 )
...
* Convert to typescript
* Move related files directly into plugin
* Implement toExpressionAst
* Remove build_pipeline dedicated fn
* Async import converter
* Create a custom renderer
* Move function directly into plugin
* Update tests
* Move files directly into related plugins
* Remove ExprVis instance usage in maps visualizations
* Use uiState updates
* Fix minor issues
* Update expression builder
* Update styles
* Create wrapper component
* Update rendering
* Create region map expression renderer
* Fix tests and types
* Fix initial render
* Remove resize subscription
* Fix custom visualization expression
* Update region map expression in tests
* Update files structure
* Remove ReactVisController
* Remove base visualization renderer
* Remove extra vis properties
* Use requiresSearch flag for agg based vis
* Update types
* Remove visualization expression function
* Create toExpressionAst function
* Update custom visualization example
* Update interpreter functional tests
* Enhance VisTypeDefinition interface
* Enhance visualization types
* Update license
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 13:02:07 +03:00
Daniil
ae139f927f
[TileMap][RegionMap] Implement custom renderers and expression builders ( #84775 ) ( #88308 )
...
* Convert to typescript
* Move related files directly into plugin
* Implement toExpressionAst
* Remove build_pipeline dedicated fn
* Async import converter
* Create a custom renderer
* Remove ExprVis instance usage in maps visualizations
* Use uiState updates
* Create wrapper component
* Update rendering
* Create region map expression renderer
* Remove resize subscription
* Fix custom visualization expression
* Update interpreter functional tests
* Use types from geojson
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 16:09:05 +03:00
Joe Reuter
0ab5669046
Date column utilities ( #81007 ) ( #82037 )
2020-10-29 18:53:37 +01:00
Peter Pisljar
d25c84f6f4
removing kibana_datatable
in favor of datatable
( #80548 ) ( #80875 )
2020-10-16 20:59:39 +02:00
Tim Roes
1d48afc530
[7.x] TypeScript cleanup in visualizations plugin ( #78428 ) | Implement tagcloud renderer ( #77910 ) | Fix types ( #78619 ) ( #78666 )
...
* TypeScript cleanup in visualizations plugin (#78428 )
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Implement tagcloud renderer (#77910 )
* Implement toExpressionAst for tagcloud
* Implement tagcloud vis renderer
* Use resize observer
* Use common no data message
* Update build_pipeline.test
* Update tag cloud tests
* Revert "Use common no data message"
This reverts commit fddf019575
.
* Update interpreter functional tests
* Add tests for toExpressionAst fn
* Use throttled chart update
* Update renderer
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Fix types (#78619 )
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Daniil Suleiman <31325372+sulemanof@users.noreply.github.com>
2020-09-29 15:23:00 +02:00
Peter Pisljar
3419d003db
adds metric_vis_renderer ( #57694 ) ( #75518 )
2020-08-20 11:29:22 +02:00
Vadim Dalecky
b9f4eec008
[7.x] Expressions refactor ( #54342 ) ( #57366 )
...
* Expressions refactor (#54342 )
* feat: 🎸 add UiComponent interface
* feat: 🎸 add adapter for react => ui components and back
* refactor: 💡 move registries to shared /common folder
* feat: 🎸 create expressions service state contaienr
* chore: 🤖 export some symbols
* feat: 🎸 add Executor class
* test: 💍 add simple integration test
* feat: 🎸 move registries into executor
* feat: 🎸 add initial implementation of Execution
* feat: 🎸 move Executor's state container into a signle file
* refactor: 💡 move createError() to /common folder
* feat: 🎸 use Executor in plugin definition
* refactor: 💡 rename handlers to FunctionHandlers
* feat: 🎸 improve function typings
* feat: 🎸 move types and func in sep folder, improve Execution
* refactor: 💡 cleanup expression_types folder
* refactor: 💡 improve typing names of expression types
* refactor: 💡 remove lodash from ExpressionType and improve types
* test: 💍 add ExpressionType tests
* refactor: 💡 remove function wrappers around types
* refactor: 💡 move functions to /common
* test: 💍 improve expression function tests
* feat: 🎸 create /parser folder
* refactor: 💡 move function types into /expression_functions dir
* refactor: 💡 improve parser setup
* refactor: 💡 fix export structure and move args into expr_func
* test: 💍 add ExpressionFunctionParameter tests
* fix: 🐛 fix executor types and imports
* refactor: 💡 move getByAlias to plugin, fix Execution types
* feat: 🎸 add function for argument parsing
* test: 💍 add Executor type tests
* test: 💍 add executor function and context tests
* test: 💍 check that Executor returns Execution
* test: 💍 add basic tests for Execution
* test: 💍 add basic test for execution of a chain of functions
* test: 💍 add "mult" function tot tests
* feat: 🎸 create separate expression_renderer folder
* feat: 🎸 use new executor in public plugin
* feat: 🎸 remove renderers from executor, add result to execution
* fix: 🐛 fix Kibana TypeScript errors
* test: 💍 add file to write integration tests for expr plugin
* refactor: 💡 move state_containers to /common
* refactor: 💡 move /parser to /ast and inline format() function
* refactor: 💡 remove remaining @kbn/interpreter imports
* feat: 🎸 better handling and typing for Executor context
* feat: 🎸 use Executor.run function in plugin
* fix: 🐛 fix TypeScript type errors
* test: 💍 move integration tests into one file
* feat: 🎸 create ExpressionsService
* chore: 🤖 clean up legacy code
* feat: 🎸 use ExpressionsService in /public
* refactor: 💡 move inspector adapters to /common
* feat: 🎸 improve execution
* feat: 🎸 add state to execution state and don't clone AST
* test: 💍 add tests for Execution object
* test: 💍 improve expression test helpers
* test: 💍 add Execution tests
* refactor: 💡 improve required argument checking
* fix: 🐛 fix Kibana TypeScript errors
* test: 💍 add ExpressionsService unit tests
* fix: 🐛 fix Expression plugin TypeScript types
* refactor: 💡 prefix React component with React*
* fix: 🐛 fix X-Pack TypeScript errors
* fix: 🐛 fix test TypeScript errors
* fix: 🐛 fix issues preventing loading
* feat: 🎸 remove getInitialContext() handler
* fix: 🐛 fix TypeScript errors
* chore: 🤖 remove uicomponent interface
* chore: 🤖 remove missing import
* fix: 🐛 correctly handle .query in "kibana" expression function
* refactor: 💡 call first arg in expression functions "input"
* fix: 🐛 do not free Execution state container
* test: 💍 fix tests after refactor
* test: 💍 fix more tests after refactor
* fix: 🐛 remove redundant export
* test: 💍 update intepreter_functional test shapshots
* fix: 🐛 relax "kibana" function throwing on missin gsearch ctx
* refactor: 💡 don't use ExpressionAST interface in Canvas
* docs: ✏️ improve ExpressionRenderer JSDocs
* refactor: 💡 rename context.types to inputTypes in internal fn
* refactor: 💡 replace context.types by unknown in ExprFuncDef
* refactor: 💡 improve expression function definitions in OSS
* fix: 🐛 correctly set name on metric_vis_fn
* refactor: 💡 improve Lens definitions of expression functions
* refactor: 💡 improve Canvas expression function definitions
* test: 💍 add createMockExecutionContext() helper
* refactor: 💡 add some type to events$ observable in expr handler
* feat: 🎸 add types to observables in data handler
* refactor: 💡 use inputTypes in canvas
* fix: 🐛 fix interpreter grammer generation script
* feat: 🎸 allow array in getByAlias
* test: 💍 simplify test function specs
* test: 💍 fix autocomplete tests
* fix: 🐛 use correct expression types and NP getFunctions() API
* refactor: 💡 use NP expressions to get renderer
* fix: 🐛 use context.types on server-side Canvas function defs
* refactor: 💡 use NP API to register Canvas renderers
* feat: 🎸 use NP API to get types
* style: 💄 minor formatting changes
* feat: 🎸 use NP API to get expression functions
* fix: 🐛 fix Canvas workpads
* test: 💍 add missing mock functions
* refactor: 💡 improve Lens func definition argument types
* fix: 🐛 fix Lens type error
* feat: 🎸 make lens datatable work again
* feat: 🎸 bootstrap ExpressionsService on server-side
* feat: 🎸 expose more registry related functions in contract
* feat: 🎸 add environment: server to server-side expressions
* docs: ✏️ add documentation
* test: 💍 add missing Jest mocks
* fix: 🐛 correct TypeScript type
* docs: ✏️ improve documentation
* fix: 🐛 make FunctionHelpDict type contain only Canvas functions
* fix: 🐛 fix merge conflict
* test: 💍 fix expression mocks
* fix: fix TypeScript disabled help type
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 09:26:48 +01:00
Peter Pisljar
11f828c5b8
filtering (making it work with expressions) ( #55351 ) ( #56622 )
2020-02-03 11:59:04 -05:00
Nick Partridge
dd8eaab229
[Metric] convert mocha tests to jest ( #54054 ) ( #55210 )
...
* Add fixtures/* alias to tsconfig and jest config
* Convert metric tests to jest
* Convert remaining js files to ts
2020-01-17 13:33:46 -06:00
Anton Dosov
2d633dc1e6
Enable expression service screenshot tests ( #50472 ) ( #51263 )
...
* Enables interpreter screenshot tests which were disabled in #42842
* Refactors tests to use expression service
* Fixes edge cases in expression service render:
** fixes swallowing of promise rejections from renderer.render()
** fixes swallowing of errors which emitted sync in render()
* Adds default value to colorRange type, as otherwise it fails in runtime if not passed
# Conflicts:
# src/plugins/expressions/public/loader.test.ts
2019-11-21 14:56:34 +01:00
Peter Pisljar
5341d11005
updating metricvis interpreter func arguments ( #34532 ) ( #39872 )
2019-06-28 08:16:09 +02:00
Peter Pisljar
ea1c8d548a
updating tagcloud interpreter func arguments ( #33773 ) ( #34536 )
2019-04-04 17:52:05 +02:00
Peter Pisljar
a0a1b594c6
adding runPipeline tests ( #27015 ) ( #33637 )
2019-03-21 08:36:39 +01:00