* Add `essql` expression function to the data plugin
* Fix `phraseFilter` function name
* Update SQL search strategy to close the cursor when the search is complete
* Update SQL search strategy to return the time it took to run a search
This creates a response_stream plugin in the Kibana /examples section. The plugin demonstrates API endpoints that can stream data chunks with a single request with gzip/compression support. gzip-streams get decompressed natively by browsers. The plugin demonstrates two use cases to get started: Streaming a raw string as well as a more complex example that streams Redux-like actions to the client which update React state via useReducer().
* pass isCloud to getInstallPkgRouteOptions
* allow enableExperimental config to be seen by UI
* WIP: spash screen navigation
* WIP
* fix tests
* do not include unenrolled agents in FTU check
* add isFirstTimeUSer query param
* Splash screen layout mostly done
* finish spash screen layout
* remove query param + handle special packages
* do not hide docs link in small windows
* restructure folder structure
* change useStepsLayout to useMultiPageLayout
* split multi and single page firther
* clean code
* further refactoring
* fix index.test.tsx
* fix epm\/screens\/detail\/index.test.tsx
* fix storybook
* add experimental features to config test
* add doc link
* tidy for PR
* add alts for arrows
* responsive layout
* remove hardcoded padding
* split ResponsiveStepGroup to its own component
* Add method to re-link visualizations with missing index-pattern
* fix CI
* push some updates
* fix navigation to TSVB
* remove 'fallback' type from DataView
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.
Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.
The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.
This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.
The following limitations exists when using `@kbn/handlebars`:
The Inline partials handlebars template feature is not supported.
Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`
Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`
Closes#36311
* Field first *creation*
* Field first *editing*
* Add support for custom control options
* Add i18n
* Make field picker accept predicate again + clean up imports
* Fix functional tests
* Attempt 1 at case sensitivity
* Works both ways
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* Clean up code
* Use React useMemo to calculate field registry
* Fix functional tests
* Fix default state + control settings label
* Fix functional tests
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
* Create a specific route for fetching mappings, aliases, templates, etc...
* Encapsulate data streams
* Encapsulate the mappings data into a class
* Setup up autocompleteInfo service and provide its instance through context
* Migrate the logic from mappings.js to Kibana server
* Translate the logic to consume the appropriate ES client method
* Update related test cases
* Lint
* Address comments
* Fix server proxy/mock
* Add API integration tests for /api/console/autocomplete_entities
* Lint
* Add tests
* Add API integration tests for autocomplete_entities API
* Add deleted tests
Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Added some wait conditions to ensure that the comma is present before trying to make assertion.
* Added check to verify inner html.
* Switched wait to retry.
* Fixed duplicate declaration.
* Fixed PR per nits.
* Ignores validation in range slider UI
* Check if range filter results in no data before applying filter
* Ignores validation in range slider UI
* Check if range filter results in no data before applying filter
* Trigger range slider control update when ignoreValidation setting changes
* No longer disable range slider num fields when no data available
* Fix functional test
* Only add ticks and levels if popover is open
* Simplify query for validation check
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Visualize] Renders no data component if there is no ES data or dataview
* Fix types
* Adds a functional test
* Fix FTs
* Fix
* Fix no data test
* Changes on the dashboard save test
* Add a loader before the data being fetched
* Add check for default dataview
* A small nit
* Address PR comments
* Migrated_Dashboard_TimePicker_Tests_To_Use_CCS
* Added dashboard to the config file.
* Flipped ccs switch conditional.
* Added CCS test to its own small describe block for readability.
* Added conditional for data.
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* Fixed CCS dashboard test.
* Removed file that should have been removed via merge.
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
* Decouple control auto sizing and control width
* Add grow control setting to control group settings flyout
* Set min-width style for each control size
* Remove width settings from control group settings
* Add media query to remove min-widths in small viewport
* Fix grow state management
* Fix i18n errors
* Fix control group settings functional tests
* Updated control width label and move tooltip icon
* Use euiBreakpoints for media queries
* Removed tooltip
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Replace is half working
* Child embeddable listens for change in type
* Fix control order on replace
* Fix factory & remove duplicated onPanelAdded/Removed
* Comments + clean up code
* Set invalid editor state on type change
* Add functional tests and clean test code
* Comment out time slider tests
* Remove getReplacementPanelState
* Fix promise syntax
* Fix mutation
* Fix flaky test
* Fix conflicts