restrry
846ff4ace1
update styles
2020-05-22 11:46:32 +02:00
Luke Elmers
8d4b0cf92f
[resubmit] Prep agg types for new platform ( #58893 ) ( #58922 )
2020-02-28 15:31:18 -07:00
Vadim Dalecky
0a082c36e9
Types ( #57801 ) ( #57904 )
...
* feat: 🎸 add Values<T>
* feat: 🎸 add UnionToIntersection<T> type
* refactor: 💡 use UnionToIntersection<T> in Canvas from @kbn/
* feat: 🎸 add PublicKeys<T> and PublicContract<T> types
* style: 💄 fix ESLint errors
2020-02-18 22:43:31 +01: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
Josh Dover
5bbf2cfc59
Add isSystemRequest support to Kibana Platform ( #53734 ) ( #55927 )
2020-01-28 07:33:11 -07:00
Nick Partridge
87d60d351f
Shim input_control_vis for KP ( #52243 ) ( #53547 )
...
* Shim input_control_vis
* Convert input_control_vis src files to typescript
* Add Required, Optional, Required and Class types to kbn-utility-types
* Collect all ui/* imports into legacy imports file
* Pass down plugin deps from top level
* Add timeout and terminate_after options to SearchSourceFields
2019-12-19 09:08:04 -06:00
Vadim Dalecky
db342e9e05
State containers ( #52384 ) ( #52421 )
...
* feat: 🎸 add state containers
* docs: ✏️ add state container demos
* docs: ✏️ refrech state container docs
* chore: 🤖 install default comparator
* chore: 🤖 remove old state container implementation
* feat: 🎸 add selectors
* chore: 🤖 move Ensure tyep to type utils
* fix: 🐛 fix useSelector() types and demo CLI command
* test: 💍 add tests for state container demos
* feat: 🎸 add ReacursiveReadonly to kbn-utility-types
* feat: 🎸 shallow freeze state when not in production
* test: 💍 fix Jest tests
* refactor: 💡 remove .state and use BehaviourSubject
2019-12-06 12:51:12 -08:00
Spencer
4bd85e3194
[7.x] Remove rimraf ( #48985 ) ( #49187 )
...
* Update dependency del to v5
* unify del/rimraf usage with del v5
* update yarn.lock
* update kbn-pm distributable
* remove poorly transformed code
* force some deletes from tmp
* mock less of the fs module
* force tmp deletion in a few more suites
* please make this the last force
# Conflicts:
# packages/kbn-plugin-helpers/package.json
2019-10-24 08:10:17 -07:00
Vadim Dalecky
c868741af1
[7.x] Utility types ( #41246 ) ( #43108 )
...
* feat: 🎸 add @kbn/utility-types
* feat: 🎸 improve @kbn/utility-types
* chore: 🤖 move @kbn/utility-types to dev deps
* chore: 🤖 change @kbn/utility-types build setup
* fix: 🐛 implement review suggestions
* feat: 🎸 add ShallowPromise type
* Update packages/kbn-utility-types/README.md
Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>
* test: 💍 add tests for utility-types
* chore: 🤖 add utility-types tests to TypeScript config
* test: 💍 remove negative tests to not cause TypeScript fail
* chore: 🤖 remove ref to type defs to try fix CI tests
* Update packages/kbn-utility-types/index.ts
Co-Authored-By: Spencer <email@spalger.com>
* chore: 🤖 add TS types index to fix `grunt run:test_projects`
* chore: 🤖 use similar tsconfig.json as in other packages
* chore: 🤖 add "clean" script
* chore: 🤖 add kbn:bootstrap script
2019-08-12 16:57:17 +02:00