This PR adds event.dataset to the Kibana ecommerce sample data and makes the ML modules for ecommerce and weblog sample data use event.dataset to recognize the modules and also as the corresponding datafeed query instead of looking for the index name.
* Allows the user to select the tooltip mode
* Fix problem on new TSVB and add new field to schema
* Change default value on tooltip dropdown for the focused series option
## Summary
* https://github.com/elastic/siem-team/issues/646
* Converts the detection rules and REST to use io-ts
* Removes their joi counterparts
* Updates all tests to use it
* Fixes a bug with the risk_score that was being sent in as a string from the UI instead of a number
* Fixes a bug within the exactCheck validating where it can now accept null value types for optional body messages.
* Fixes a bug in the FindRoute where it did not send down fields from REST
* Changes the lists plugin to utilize the io-ts types from siem rather than having them duplicated.
* Makes some stronger validations
* Adds a lot of codecs
**Things to look out for:**
* Generic testing to ensure I didn't break something that was not part of the tests.
* Fix for the risk_score from string to number is in:
```
x-pack/plugins/security_solution/public/alerts/components/rules/step_about_rule/index.test.tsx
```
* Fix for the exact check (unit tests are written and added)
```
x-pack/plugins/security_solution/public/alerts/components/rules/step_about_rule/index.test.tsx
```
* Within all the types I added are there any misspelled things or copy-pasta mistakes with strings:
x-pack/plugins/security_solution/common/detection_engine/schemas/types
* Fix for `find_rules_route.ts:58`
```
x-pack/plugins/security_solution/server/lib/detection_engine/routes/rules/find_rules_route.ts
```
**Follow on things that this PR doesn't do we need to:**
* Add linter rule to forbid NodeJS code within common section
* The `[object Object]` formatter issues seen in the code such as:
```
// TODO: Fix/Change the formatErrors to be better able to handle objects
'Invalid value "[object Object]" supplied to "note"',
```
* Formatter issues such as: `'Invalid value "" supplied to ""'`
* Remove the hapi server object from lists plugin
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
* #68153 Change Elastic integrations to Integrations
* Fix copy casing
* #68152 Update create data source CTA copy
* #68166 Remove icon next to top-level navigation when user is on new Kibana navigation style
* Fix i18n
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add `compilerOptions.noErrorTrunctation` to the tsconfig template
* Remove unused parameters
Not adding `noUnusedParamaters` to the tsconfig since we get too many hits from dependencies when running `tsc`. These do show up in the editor as warnings, though.
* [deb/rpm] manage pid folder
This adds a tmpfiles.d configuration file for systemd users, and changes
the path for both systemd and sysv to /var/run/kibana/kibana.pid. pid
file generation is left unmodified for a future pr.
* cleanup
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Extract store creation to plugin start, add redux providers to alert registration.
* Update unit test.
* Move alert registration to `setup` function.
* Allow external editing of uptime client alert types.
* Move alert initialization back to `start`.
* Clean up interfaces for alert types.
* Add code that will work for settings link even outside uptime app.
* Create new atomic params type for status alerts.
* Update executor params typing to support both alert params types.
* Update snapshot for alert factory function.
* Fix broken types and refresh snapshots.
* Allow edits of filters for monitor alerts.
* Support default parameter value for numTimes.
* Support default parameter values for timerange.
* Modify kuery bar to work for alert edits, fix some filter issues.
* Clean up tests and fix types.
* Fix types and add a test.
* Add callout and validation handling for old alerts while editing.
* Add a test for updated validation function.
* Define window for overview filters fetch action.
* Revert store initialization.
* Make monitor counter function while editing alerts.
* Refresh snapshot.
* Move snapshot count in monitor status alert to callout.
* Add new state for selected filters.
* Add basic functional tests for uptime alert flyouts.
* Fix broken types.
* Update unit tests with mock provider.
* Remove unneeded params from hook.
* Add more unit tests.
* Reducing functional test flakiness.
* Alert flyout controls update url only within Uptime app.
* Extract context interaction to container component, update snapshots.
* Add missing parameter to test file.
* Remove flaky functional test.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
* Add async search strategy
* Add async search
* Fix async strategy and add tests
* Move types to separate file
* Revert changes to demo search
* Update demo search strategy to use async
* Add async es search strategy
* Return response as rawResponse
* Poll after initial request
* Add cancellation to search strategies
* Add tests
* Simplify async search strategy
* Move loadingCount to search strategy
* Update abort controller library
* Bootstrap
* Abort when the request is aborted
* Add utility and update value suggestions route
* Fix bad merge conflict
* Update tests
* Move to data_enhanced plugin
* Remove bad merge
* Revert switching abort controller libraries
* Revert package.json in lib
* Move to previous abort controller
* Add support for frozen indices
* Fix test to use fake timers to run debounced handlers
* Revert changes to example plugin
* Fix loading bar not going away when cancelling
* Call getSearchStrategy instead of passing directly
* Add async demo search strategy
* Fix error with setting state
* Update how aborting works
* Fix type checks
* Add test for loading count
* Attempt to fix broken example test
* Revert changes to test
* Fix test
* Update name to camelCase
* Fix failing test
* Don't require data_enhanced in example plugin
* Actually send DELETE request
* Use waitForCompletion parameter
* Use default search params
* Add support for rollups
* Only make changes needed for frozen indices/rollups
* Only make changes needed for frozen indices/rollups
* Add back in async functionality
* Fix tests/types
* Fix issue with sending empty body in GET
* Don't include skipped in loaded/total
* Don't wait before polling the next time
* Add search interceptor for bulk managing searches
* Simplify search logic
* Fix merge error
* Review feedback
* UI to stop async searches
* Add service for running beyond timeout
* Refactor abort utils
* Remove unneeded changes
* Add tests
* Refactor search service to register strategies directly
* Remove accidental change
* re-generate docs
* Fix merge
* types
* doc
* eslint
* Fix async strategy jest test
* type fix
* Use getStartServices in search strategies
* Code review + snapshot
* eslint
* Type script
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
* Update telemetry for visualizations to also count the vis from the past 30 and 90 days
* Also add metrics for the saved visualizations for the past 7 days
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Kibana developer examples
* Batch explorer tests should be run in examples config
* Fix tests
* add codeowner for new developer examples plugin & readme cleanup
* Try to frame embeddable wording based on what a developer's goals are.
* Add noopener noreferer, fix bad merge
* Remove bfetch.png
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Create a single repository to be shared by all calls to getScopedClient
* Cache migrator.getActiveMappings to improve createRepository
* Use typeregistry.getAllTypes instead of getRootPropertiesObjects(mappings)
* Don't validate plugin's config every time it's read
* Fix saved_objects_mixin
* fix selection of event type when no siem index signal created
* including the term signal for the old timeline
* fix import path
* Add a specific msg in the inspect modal if we do not have the alert index created
* fix import if eventType is siganl to match it to alert
* forget to update test
* fix signal view
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>