## Summary
Similar to how the Hosts page maintains the tab state in the URL, recreating that in the rule details page. This is in anticipation of some of the exceptions UI changes being worked on where this would create a better user experience.
* add showWarning to search service
* add comments
* add unit tests
* test foo
* cleanup
* add s to property name in test
* comments for api items
* use the warnings when calling showWarnings
* change showWarning to just show a single warning
* put handleWarnings on the request adapter
* comment
* simplify 1
* fix lens unit test
* remove underscoring for unused variables
* revert inspector changes, extract the response warnings in the search service
* fix bug
* remove console.log
* re-apply typescript fixes to app test code
* declutter
* add test, improve comments
* fix some unexported public api items
* include rawResponse in the warning structure
* fix lint
* tweak clean up example app
* SearchResponseWarnings and SearchResponseWarningNotification
* fix export bug
* not include shardStats if there are no warnings
* Update src/plugins/data/common/search/types.ts
* simplify SearchResponseWarnings interface
* remove array copying
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* comments for api_docs
* simplify per feedback
* Pass callback to handleResponse in showWarnings
* export more public types
* update example to make possible to show shard failure
* pr cleanup
* eslint fix
* allow example app to not show default warnings
* move extractWarning and related types to inspector plugin
* wip functional test of example app
* fix test references
* finish functional test
* relocate extractWarnings back to search/fetch
* fix test
* remove need for isTimeout, isShardFailure
* ts fix
* improve test
* Change showWarnings to accept the RequestAdapter
* use showWarnings in vis_types/timeseries
* more tests
* use handle_warning name
* fix ts
* add reason field to SearchResponseWarning
* fix component snapshot
* update comments
* test cleanup
* fix test
* ensure notification appears only once
* fix and cleanup
* fix ts
* fix response.json bug
* use top-level type, and lower-level reason.type
* cleanup
* fix shard failure warning in tsvb per feedback
cc @flash1293
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
* [Enterprise Search] introduce ui settings for feature flags
Added ui settings for the enterprise search plugin to store feature
flags and feature flagged the new powerups tab for the index page in the
content plugin.
* [Enterprise Search] define ui settings category name
* powerups tab will be limited to connectors, for now
* use transforms instead of powerups for new index tab
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* add param_contains_space + handle spaces in match, match_any and field_value_wildcard + translations
* add warning text to onChange events as well + add test for match with snanpshot
* add warning text to onChange events as well + add test for match with snanpshotcd
* add tests and snapshots for match_any and value_wildcard
* remove snapshots
* show warning in nested condition
* add param_contains_space + handle spaces in match, match_any and field_value_wildcard + translations
* add warning text to onChange events as well + add test for match with snanpshot
* add tests and snapshots for match_any and value_wildcard
* remove snapshots
* show warning in nested condition
* add ValueWithSpaceWarning component + tests in Exeption viewer
* add ValueWithSpaceWarning component + tests in Exeption viewer
* return </EuiFlexItemNested>
* apply ux comments
* use themeprovider
* apply docs-team comments
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] fetching annotations: don't replace label with textField
* don't pass timezone but read uiSettings
* some params should be required
* passing id from annotations for expressions
* adapt the rendering code to later use datatable structure
* Add hosts to `ActionDetails`
Adds a `hosts: [{id, name}]` key - that is a set of agent ids and names - to type `ActionDetails` that is used by
"action details by agent id" `api\endpoint\action\{id}` and actions log `api\endpoint\action` APIs.
fixes elastic/security-team/issues/4815
* rename 😅
* Conditional `hosts` property on list API response
Since we need hostnames only on the landing page, we decided to return this property in the API response with an additional flag
* truncate and tooltip already works for long hostnames
* schema test for `showHostsInfo` query param
fixes elastic/security-team/issues/4815
* include `hosts` in all API responses
...that use `ActionDetails` shape.
We agreed in review discussions that since host metadata API is called just once on every page and using the new united metadata index it is reasonably performant and so the `hosts` property that has the hostnames should be present in action details and action list API responses.
* update comment for type change
review changes
* add missing param
type check fix
* remove unused i18n translations
* deletes unused utils file
* just some fix while I see it
* creating empty packages
* moving all the things
* package build success
* start fixing usages
* fix the scoped history type issue
* export internal utils
* add default for mock
* fix test import
* fix external import
* start fixing external usages
* more usages
* more usages
* more usages
* More usages
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* fix integration test imports
* fix more test types
* remove public/utils from the core bundle
* trying to import from the package
* updating README's
* remove unused test types from mock package
* cleanup test types
* use import type
* add author to packages
* more import type
* remove dead path from some config
* remove src/core/utils/index.ts (and pray)
* update tsdoc
* fix new file usage
* fix paths
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
* Set NODE_ENV=production for bin/*
* add tests
* Revert "Set NODE_ENV=production for bin/*"
This reverts commit 8012ed6a2e.
* Revert "Revert "Set NODE_ENV=production for bin/*""
This reverts commit 2fd499c112.
* First pass at creating pipeline definitions
* Linting and added a real test
* fix bad import
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>