* 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
## Summary
Adds e2e and unit tests for PR:
https://github.com/elastic/kibana/pull/89947
* Adds e2e tests for create_index
* Adds e2e tests for get_privileges
* Adds unit test for use_privilege_user
* Adds exhaustive switch for the roles in the e2e tests
* Adds some typescript barrel rolls for the .json scripts to make TypeScript a bit more readable when doing imports
* Fixes some of the types that were not matched up with the recent privilege endpoint
### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
* Toast should only show once
* Handle any errors here gracefully
* Set this early to avoid failing test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>