* Separated out service layer for trusted apps.
* Improved the type structure a bit to avoid using explicit string literals and to add possibility to return OS specific parts of trusted app object in type safe manner.
* Added support for mapping of trusted app to exception item and back.
* Changed schema to support signer in the API.
* Renamed utils to mapping.
* Exported some types in lists plugin and used them in trusted apps.
* Added tests for mapping.
* Added tests for service.
* Switched deletion to use exceptions for not found case.
* Added resetting of the mocks in service layer tests.
* Added handlers tests.
* Refactored mapping tests to be more granular based on the case.
* Restored lowercasing of hash.
* Added schema tests for signer field.
* Removed the grouped tests (they were split into tests for separate concerns).
* Corrected the tests.
* Lowercased the hashes in the service test.
* Moved the lowercasing to the right location.
* Fixed the tests.
* Added test for lowercasing hash value.
* Introduced OperatingSystem enum instead of current types.
* Removed os list constant in favour of separate lists in places that use it (each place has own needs to the ordering).
* Fixed the missed OperatingSystem enum usage.
* add visConfig.title to pipeline visualization function
- To be consistent with visualizations built with "buildPipelineVisFunction".
- To provide "title" information for visualizations.
* add uiState to pipeline visualization function
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* TSVB field list performance issue on using annotations
* Add AbortController to fetchFields and change translation id in annotations_editor
* Rename fetchFields to debouncedFetchFields
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* improves 'Creates and activates a new custom rule' test
* fixes constant problem
* improves 'Creates and activates a new custom rule with override option' test
* improves 'Creates and activates a new threshold rule' test
* refactor
* fixes type check issue
* improves assertions
* removes unused code
* changes variables for constants
* improves 'waitForTheRuleToBeExecuted' test
* improves readability
* fixes jenkins error
* refactor
* blah
* more things
* finishes 'Creates an exception from rule details and deletes the excpetion' implementation
* implements 'Creates an exception from an alert and deletes the exception'
* updates VALUES_INPUT locator
* updates archiver
* refactor
* improves the code
* fixes CI error
* renames exceptions archive
* refactor
* fixes merge issue
* fixes CI issue
* debug
* refactor
* improves test data
* removes signals index after the execution
* removes unused line
* removes unused variable
* refactors 'numberOfauditbeatExceptionsAlerts' constant to camel case
* simplifies the archive
* waits for the rule to be executed after navigating to opened alerts tab
* cleaning data
* fixes tests flakiness
* cleans test data
* refactors code
* removes unsused archives
* cleans data
* simplifies data
* fixes CI issue
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix threshold rule synthetic signal generation
* Use top_hits aggregation
* Find signals and aggregate over search terms
* Exclude dupes
* Fixes to algorithm
* Sync timestamps with events/signals
* Add timestampOverride
* Revert changes in signal creation
* Simplify query, return 10k buckets
* Account for when threshold.field is not supplied
* Ensure we're getting the last event when threshold.field is not provided
* Add missing import
* Handle case where threshold field not supplied
* Fix type errors
* Handle non-ECS fields
* Regorganize
* Address comments
* Fix type error
* Add unit test for buildBulkBody on threshold results
* Add threshold_count back to mapping (and deprecate)
* Timestamp fixes
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Added data streams privileges to better control delete actions in UI
* Fix type check issues
* Change data streams privileges request
* Fixed type check issue
* Fixed api integration test
* Cleaned up not needed code
* Renamed some data streams and added a default value for stats find
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Refactoring entity route to return schema
* Refactoring frontend middleware to pick off id field from entity route
* Refactoring schema and adding name and comments
* Adding name to schema mocks
* Fixing type issue
* Fix bug creating new policy on the fly
* Adjust UI for input with vars but no streams
* Revert "Fix bug creating new policy on the fly"
This reverts commit 34f7014d69.
* Add `compiled_input` field and compile input template, if any. Make compilation method names more generic (instead of only for streams). Add testts
* Add compiled input to generated agent yaml
* Don't return empty streams in agent yaml when there aren't any
* Update missed assertion
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [dev/cli] detect worker type using env, not cluster module
* remove unused property
* assume that if process.send is undefined we are not a child
* update comment
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Initial copy/paste of components
Changes for pre-commit hooks were:
- Linting
- Lodash imports
- Fixed warnings for `jsx-a11y/mouse-events-have-key-events` with stubbed onFocus and onBlue events with FIXME comments
* Add server routes
* Remove reference to shared lib
This one-liner appears only once in ent-search so adding it here in the logic file`
* Fix paths
* Add types and fix TypeScript issues
* Replace FlashMessages with global component
* More explicit Result type
* Remove routes/http in favor of HttpLogic
* Fix server routes
`urlFieldIsLinkable` was missing and `detailFields` can either be an object or an array of objects
* Add base styles
These were ported from ent-search. Decided to use spacers where some global styles were missing.
* Kibana prefers underscores in URLs
Was only going to do display-settings and result-details but decided to YOLO all of them