-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
304 changed files
with
5,274 additions
and
3,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,2 @@ | ||
Interpreter legacy plugin has been migrated to the New Platform. Use | ||
`expressions` New Platform plugin instead. | ||
|
||
In the New Platform: | ||
|
||
```ts | ||
class MyPlugin { | ||
setup(core, { expressions }) { | ||
expressions.registerFunction(myFunction); | ||
} | ||
start(core, { expressions }) { | ||
} | ||
} | ||
``` | ||
|
||
In the Legacy Platform: | ||
|
||
```ts | ||
import { npSetup, npStart } from 'ui/new_platform'; | ||
|
||
npSetup.plugins.expressions.registerFunction(myFunction); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.