* [data.search] Add search session methods to search service contract
* Fix types
* Fix tests and switch to cancel
* Update docs
* Fix types/tests
* Fix tests
* Update status of SO before cancelling search requests
* Add API integration test
* Fix types
* Update expiration route to use config defaultExpiration
* Fix test
* Update docs
* New logic for extend
* Remove declare module
* Search Sessions: Unskip Flaky Functional Test
* Review feedback
* fix ts
* Save all search sessions and then manage them based on their persisted state
* Get default search session expiration from config
* randomize sleep time
* fix test
* Remove test that is no longer valid
* fix test
* Make sure we poll, and dont persist, searches not in the context of a session
* Added keepalive unit tests
* fix ts
* code review @lukasolson
* ts
* More tests, rename onScreenTimeout to completedTimeout
* lint
* lint
* Delete async seaches
* Support saved object pagination
Fix get search status tests
* better PersistedSearchSessionSavedObjectAttributes ts
* test titles
* Fix undefined bug
* Remove runAt from monitoring task
Increase testing trackingInterval (caused bug)
* support workload histograms that take into account overdue tasks
* Update touched when changing session status to complete \ error
* removed test
* Updated management test data
* Rename configs
* delete tap first
add comments
* Use DataRequestHandlerContext in maps
* ts
* Fixed ts
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
* Add routes
Also adds validation for the Kibana way of handling query params
* Add route for oauth params
* Add logic to save oauth redirect query params
* Refactor source added template to keep all logic in logic file
* Add tests for component and logic
* Add optional param to interface
Atlassian flows may also send back an oauth_verifier param that we’ll need. This was added to the server validation, but I forgot to add it to the interface
* Remove failing test
This was not needed for coverage and it appears that the helper doesn’t validate query params so removing it
* Remove index_permissions from account params
* Rename variable
* Update param syntax
* Update account route test
* Refactor params
* [data.search] Add search session methods to search service contract
* Fix types
* Fix tests and switch to cancel
* Update docs
* Fix types/tests
* Fix tests
* Update status of SO before cancelling search requests
* Add API integration test
* Fix types
* Update expiration route to use config defaultExpiration
* Fix test
* Update docs
* New logic for extend
* Remove declare module
* Review feedback
* fix ts
* Remove test that is no longer valid
* Fix undefined bug
* Use DataRequestHandlerContext in maps
* ts
Co-authored-by: Liza K <liza.katz@elastic.co>
* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* [PoC] reading from the fields API in Discover
* Add N fields as a default column
* Make fields column non-removeable
* Do not add 'fields' to state
* Remove fields from app state and read from source when needed
* Remove fields column if a new column is added
* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* Improve error handling in search examples plugin.
* Add unit tests for legacy behavior.
* Remove uiSettings feature flag; add fieldsFromSource config.
* Rewrite flatten() based on final API design.
* Update example app based on final API design.
* Update maps app to use legacy fieldsFromSource.
* Update Discover to use legacy fieldsFromSource.
* Rename source filters to field filters.
* Address feedback.
* Update generated docs.
* Update maps functional test.
* Formatting fields column similar to _source
* Moving logic for using search API to updating search source
* Fix small merge error
* Move useSource switch to Discover section of advanced settings
* Do not use fields and source at the same time
* Remove unmapped fields switch
* Add basic support for grouping multifields
* Remove output.txt
* Fix some merge leftovers
* Fix some merge leftovers
* Fix merge errors
* Fix typescript errors and update nested fields logic
* Add a unit test
* Fixing field formats
* Fix multifield selection logic
* Request all fields from source
* Fix eslint
* Fix default columns when switching between _source and fields
* More unit tests
* Update API changes
* Add unit test for discover field details footer
* Remove unused file
* Remove fields formatting from index pattern
* Remove unnecessary check
* Addressing design comments
* Fixing fields column display and renaming it to Document
* Adding more unit tests
* Adding a missing check for useNewFieldsAPI; minor fixes
* Fixing typescript error
* Remove unnecessary console statement
* Add missing prop
* Fixing import order
* Adding functional test to test fields API
* [Functional test] Clean up in after
* Fixing context app
* Addressing PR comments
* Add support for unmapped fields
* Add data migration
* Add toggle unmapped fields logic
* Adding more unit tests
* Some cleanup
* More unit tests
* Fixing failing snapshot
* Add tooltip next to unmapped switch
* Add functional test for the feature
* Fixing a typo in a functional test
* Refetch data when unmapped fields value changes
* Updating mapping
* Support for fields API in search embeddable
* Addressing PR comments
* Fix failing unit test
* Updating the text
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* add helptext to of expressions
* Make helptext optional as a prop for of expressions
* Add help text to metric threshold alert form
* Add test for helptext in of expression
* Accept JSX elements as helptext in of expressions
* Remove usage of useEuiI18n and use FormattedMessage component for translations
* Follow writing guidelines and fix typo
* Update translation keys
* Update documentation link
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Migrate ML plugin to TS project ref
* [ML] Adding mocks folder to list of includes
* [ML] Remove duplicates from x-pack tsconfig.refs.json
* [ML] Add file_upload plugin to project references
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* added policy top-level callout for error state
* added form errors context. errors are sorted by their field path into phases
* added data test subject attributes and prevent setErrors from getting called if component is not mounted
* update copy
* refactored errors context and optimised setting of context value. Also added test for various form error notifications across the collapsed phases
* add test for non-phase specific policy validation error
* Remove unused import
* refactor how errors are listened to, use the new "onError" callback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* fix favorites for templates
* fix integration test
* fix integration test
* fix event details request
* handle data when searchstrategy is still running
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Remove navigation from Discover to Visualize
* Remove unused translation
* Remove oss check from functional test
* Fix functional test
* Skip test for OSS
* Fix
* Should not remove the uiSettings getter and setter
* Move the isOss flag inside the test
* Cleanup
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Updated test to use no hard coded waits which could be contributing to CI failures. Expect functions should be in the test file itself so I changed the page objects for page actions and extracted out the expect calls to the test files.
* Added retry within the test file to retry the assertion if it doesn't pass on the first attempt. Simplified the toggle function to just click the toggle.
* Fixed type check issue.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Stub kpi component
* search strategy scheleton timeline KPI
* search strategy scheleton timeline KPI
* Add timeline kpis component and search strategy container
* Use getEmptyValue in timeline kpis
* Prevent request from being made for blank timeline properly
* Add kpi search strategy api integration test
* Add jest tests for timeline kpis
* Clear mocks in afterAll
* Decouple some tests from EUI structure
* Combine some selector calls, change types to be more appropriate
* Simplify hook logic
* Set loading and response on blank timeline
* Only render kpi component when query is active tab
* Use TimelineTabs enum for query tab string
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Maps] migrate mvt routes to use data.search service instead of directly calling elasticsearch
* pass search session id to mvt requests
* move grid tile tests to integration tests
* replace getTile unit test with integration test
* add comment about request param
* revert total meta change
* tslint fixes
* update jest tests