## Summary
1. cf0d567 - Export function which maps file path to saved object id
2. e33d7d4 - "make it work" ™️ quality version of "use cached or saved object or registry" file in HTTP handler. It's doing too much and should eventually move the logic to service method(s).
* Port @tsg's work on task manager.
Remove 2nd var to track telemetry opt in.
Add ES client to start querying index.
Use query to get docs from a dummy index.
Change how index is queried.
Get diagnostic alerts to send to staging cluster.
Record last timestamp.
PoC on telemetry opt in via 2 processes.
Revert to original solution
* Update on agreed method. Fixes race condition.
* Expand wildcards.
* stage.
* Add rule.ruleset collection.
* Update telemetry sender with correct query for loading diag alerts.
* Add similar task tests to endpont artifact work.
* Fix broken import statement.
* Create sender mocks.
* Update test to check for func call.
* Update unused reference.
* record last run.
* Update index.
* fix import
* Fix test.
* test fix.
* Pass unit to time diff calc.
* Tests should pass now hopefully.
* Add additional process fields to allowlist.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This PR introduces a new concept of an _Action Subgroup_ (naming is open for discussion) which can be used by an Alert Type when scheduling actions.
An Action Subgroup can be dynamically specified, unlike Action Groups which have to be specified on the AlertType definition.
When scheduling actions, and AlertType can specify an _Action Subgroup_ along side the scheduled _Action Group_, which denotes that the alert instance falls into some kind of narrower grouping in the action group.
* moved error and loading notices for data allocation field to below description
* removed test code
* expect controls to be showing, only render notice after network request has finished
* added loading spinner for field inputs
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* moved shrink field to shared_fields and added it to the hot phase
* updated test
* update legacy jest test
* removed configuration context for now
* remove unused i18n and remove duplicated isRolloverEnabled check;
* fixed shrink field to use new described field component
* added test for removing shrink field in serialization and re-ordered fields in hot phase advanced
* new UI route to show Edit Package Policy page
* Package policy List items point to new Integration Policy details page
* Refactor to use common service to generate pkgKey
* add breadcrumb for edit policy under integrations
* Trying to flesh out new tree route
* Working on the descendants query
* Almost working descendants
* Possible solution for aggs
* Working aggregations extraction
* Working on the ancestry array for descendants
* Making changes to the unique id for ancestr
* Implementing ancestry funcitonality
* Deleting the multiple edges
* Fleshing out the descendants loop for levels
* Writing tests for ancestors and descendants
* Fixing type errors and writing more tests
* Renaming validation variable and deprecating old tree routes
* Renaming tree integration test file
* Adding some integration tests
* Fixing ancestry to handle multiple nodes in the request and writing more tests
* Adding more tests
* Renaming new tree to handler file
* Renaming new tree directory
* Adding more unit tests
* Using doc value fields and working on types
* Adding comments and more tests
* Fixing timestamp test issue
* Adding more comments
* Adding timerange and filters
* Updating schema
* Fixing timestamp test issue take 2
* Updating tests to use raw filter
* Adding time to generator
* Adding time filter and tests for retrieving lifecycles
* Removing min array size
* Updating the DAL
* Adding time range iso format
* Working on middleware
* Fleshing out middleware and actions
* Adding id, parent, and name fields to the top level response
* Adding logic for identifying when the view is moved
* WIP: updated data layers and selectors
* Switching to use isAnimating
* WIP: tree is displayed
* WIP: need events data for panel and fix tests
* Removing panning logic, adding comments and renaming things
* WIP: added name to graph
* Writing tests for the models
* Fixing generator start and end time generation
* Updating the mocks with the new interface
* Revert "Fixing generator start and end time generation"
This reverts commit c42ffd75c1.
* WIP: remove unnecessary front end data transformation
* Starting on loading state for nodes and details
* Find the terminated nodes in the middlewaree
* Fixing ingest tests
* Loading states seem to be working
* Removing some todos
* undo graphNodePositions naming
* Node loading state svg and pulse
* Fixing time range
* undo name changes, cleanup
* Creating mock that leverages the generator
* update tree generator
* log nested data in simulator.debugActions()
* change newResolverTree to resolverTree
* fix oneNodeWithPaginatedEvents mock and node events of type test
* Refactoring data reducer test and changing resolverTree DAL
* WIP: updating mocks
* remove deprecation tags
* Fixing the isometric tests
* Fixing process event tests
* updated resolver_tree mocks, update tests
* update additional tests
* fixing eslint
* fixing has more selectors
* update tests
* debugging click test
* Working node loading test
* Adding error cube and another test
* Adding a test for the error case
* use stored indices, update event api call for winlog, cleanup todos
* Adding more comments and restricting the analyze event to only endpoint and winlogbeat
* update to use schema provided by backend
* Fixing some type errors
* Fixing translation issue
* Fixing type errors
* Adding reload functionality
* Fixing translation issue
* Adding more tests for reload
* Cleaning comments up
* adding legend and schema info
* added legend and info popovers
* removed comment
* Adding comments and cleaning up stuff
* add schema and dataSource to mock actions
* Fixing some type errors and starting to address feedback
* Moving mock function
* Handling powershell events
* Adding test for winlogbeat schema
* remove cube loading className in favor of styledComponent
* fix closeAnalyzer jumping from middle of screen when resolver loads
* fix originID casing
* Cleaning up middleware and renaming time range
* Fixing node details test and some of the use selectors
* Fixing tests and types
* fix popover style, cube style, specific timestamp, some translations
* Fixed a test, and continuing to address feedback
* Addressing more feedback
* Refactoring the node data loading tests
* Adding selector for indices
* fix i18n, break apart graph controls, fix process event dot styles
* fix type error, styled description lists, nodeID
* style fix
* Removing unneeded test subjects
* recursion, recursion, recursion
* Calculating ancestors, descendants, generations once in factory and refactoring state
* Removing stringify replacer
* Adding default timerange to be beginning of epoch to max date in future
* refactoring winlog event query to use winlog record_id field
* fix popover toggle
* Fix type issue
* fix popover toggle
* add some tests
* fix types
* Adding link to time range comment
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Maps] use index-pattern field display name in UX
* use less complex solution for es agg label
* rename
* tslint
* one more tslint fix
* review feedback
* update field_editor snapshots
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add frequencyBlockList prop to CronEditor to allow selectively removing frequency options.
* Add unit test coverage for CronEditor component.
* Convert es_ui_shared cron editor component to TypeScript.
* [Maps] keep invalid metrics editor state local and only submit metrics state when valid
* review feedback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* wip: delete job node and update map
* adds ability to delete job and update map
* create job from index node
* can clone job from map
* reset map button
* remove trained model node when deleting job
* remove related model node. remove map tab when root node deleted
* ensure model with no job shows up correctly
* update types and naming
* use urlGenerator
* fix inner scrollbar
* Adjust cytoscapeOptions after EUI update
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* Adding disabled action groups to action type definition
* Adding tests
* Adding tests
* renamed Resolved to Recovered
* fixed missing import
* fixed buggy default message behaviour
* added missing test
* fixed typing
* fixed resolved in tests
* allows alert types to specify their own custom recovery group name
* removed unnecesery field on always fires
* allows alert types to specify their own custom recovery group
* fixed mock alert types throughout unit tests
* fixed typing issues
* reduce repetition of mock data
* fixed alert type list test
* support legacy event log alert recovery syntax
* added doc
* removed unneeded change in jira
* correct callback name in siem
* renamed resolved to recovered
* fixed mistaken rename
* Moving to alert plugin
* Updating tests
* elvated default params to alert concern instead of actions concern
* made default params optional
* Adding test
* Moving where default action params are retrieved
* Revert "Moving where default action params are retrieved"
This reverts commit 76e7608229.
* Moving where default action params are retrieved
* Cleanup
* Fixing test
* PR fixes
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* replace deprecated 'wait' with 'waitFor'
* add required 'initialPageSize' field
* fix '.getContext() is not implemented' error
* wrapping code with act
* replace deprecated 'wait' with 'waitFor'
* fix 'state update on an unmounted component' warning
* Added default value for type parameter in ConditionEntry type.
* Added signer field UI. Flattened a bit component structure and reused some translations.
* Reverted the condition for signer option.
* Fixed the import.
* Removed unused translations.
* Fixed the test.
* Consolidated a bit the deletion and creation flows in redux.
* pivot to different rollover validation mechanism
* implement stakeholder feedback to show forcemerge in hot
* replace ternary with if..else statements
* make rollover validation test more comprehensive
* useIntraAppState() now also supports state set via Fleet's HashRouter
* Remove use of `<Router>` from inside EPM pages
* Enable round-trip navigation for Integrations add package
* Add help text for runtime fields source.
* fix help text
* Text changes and defining EuiCode element for _source.
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
* [maps] define style bands by percentiles
* add step function select
* percentiles form
* percentiles agg request
* create mapbox expression for stops
* legend
* small legend tweek
* clean up legend rendering
* fix dynamic color property tests
* add unit test case for percentiles legend
* re-fetch style meta when percentiles change
* name space field meta request types
* rename field_meta to data_mapping
* add tooltip to category field meta switch
* i18n fixes
* tslint
* remove duplicate file license
* fix jest tests
* only show supported step functions in fitting select
* copy updates
* add getPalette function for heatmap palette
* update jest snapshot
* another jest snapshot update
* rename EASING_BETWEEN_MIN_AND_MAX -> INTERPOLATE
* rename STEP_FUNCTION -> DATA_MAPPING_FUNCTION and text updates
* review feedback
* remove 'Apply changes' button on percentiles form
* update legend to use 'up to' and 'greater than' instead of symbols
* tslint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* added fix for serializing replicas and updated validation to correctly check for non negative nr
* added tests and fixed incorrect use of warm phase setting in cold phase
* remove unused import
* clean up use of Boolean and rename nrOfReplicas -> numberOfReplicas
* fix comment
* fix hiding/disabling searchable snapshot field when rollover is disabled
* added test
* fix i18n
* for now, we hide the forcemerge field in hot
* implement copy updates
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Update widths on columns
* Add custom class for truncation fix
* Use euiTruncate mixin and shrink column width of status column
* Update imports to fix checks
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* merged toggleable field and described form component and moved toggle to left
* moved all toggles to left, renamed DescribedFormField -> DescribedFormRow and added new ToggleFieldWithDescribedFormRow component
* added new prop fieldNotices to render callouts in correct position on the left
* added core features to kibana services
* Added test for alert form
* Added mocking of legacy shims and actions
* Fixed typing
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* initial draft
* move components to their own files
* create services folder and move tags package
* add assignment service
* fix some types
* prepare assign tag route
* move server-side tag client under the `services` folder
* add security check, move a lot of stuff.
* design improvements
* display tags in flyout
* improve button and add notification on save
* add action on tag rows
* fix types
* fix mock import paths
* add lens to the list of assignable types
* update generated doc
* add base functional tests
* move api to internal
* add api/security test suites
* add / use get_assignable_types API
* fix feature control tests
* fix assignable types propagation
* rename actions folder to bulk_actions
* extract actions to their own module
* add common / server unit tests
* add client-side assign tests
* add some tests and tsdoc
* typo
* add getActions test
* revert width change
* fix typo in API
* various minor improvements
* typo
* tsdoc on flyout page object
* close flyout when leaving the page
* fix bug when redirecting to SO management with a tag having whitespaces in its name
* check for dupes in toAdd and toRemove
* add lazy load to assign modal opener
* add lazy load to edit/create modals
* check if at least one assign or unassign tag id is specified
* grammar
* add explicit type existence check
* Added server-side endpoint for getting list of repos
* part one of client side changes: added searchable snapshot field
- added to both hot and cold
- serializing into JSON payload
* make searchable snapshot field toggleable and require value when it is being used
* fix typo in file name and remove whitespace
* added searchable snapshot state context, wip
* finished updating fields to show and hide based on searchable snapshot in the hot phase
* hiding fields when searchable snapshots is enabled in hot
- removed nested EuiFieldRow components in data allocation field
- added SCSS files for data allocation field and searchable
snapshot field
* added translations and a first hot phase serialization test
* appease type check and i18n
* added cloud-specific behaviour for searchable snapshot default inlc. test
* refactor snapshot state -> configuration issues as this a can be re-used for other issues
* added configuration context file
* hide replicas in cold if snapshotting
* updated new field copy
* update test coverage, test for hiding certain fields too
* added license check to client side!
* moved warning to below field again and moved hot phase searchable snapshot notice to right
* make described form field lazy if needed
* render field even when license requirement is not met
* update serializer for removing searchable_snapshot field
* handle 404 from ES when looking up * snapshot repos - we return an empty array
* address license TODO
* added tests for license check and removed license check HoC
* fix legacy jest tests
* added readme about legacy tests
* updated jest tests and fix type issues
* remove unused import
* refactor component names to have "Field" at the end
* refactor searchable snapshot to single interface def and add comment about force_merge_index option
* address stakeholder feebdack and pr comments
* update tests after latest changes
* link to force merge
* Revert "link to force merge"
This reverts commit 6c714fbbac.
* introduce advanced section to hot, warm and cold
* added test for correctly deserializing delete phase, and added fix
* remove unused variable
* moved fields into advanced settings
* move learn more copy below enable toggle
* fix warm phase on rollover default
* remove label space above rollover toggle
* remove unused import
* update test after fixing warm on rollover default
* removed icons in callouts in searchable snapshot field, added ability to control field toggles
* move callouts to description text
* readd warning callouts to the searchable snapshot field
* slight i18n adjustment
* made callout for actions disabled a bit smaller
* fix i18n
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Remove nonexistent paths from our API tests config
These paths (or rather their absence) breaks the functional_tests_server script.
An analogous problem for cases was fixed in #79127.
* Remove duplicated context from logger
This context is already provided to the logger by kibana; adding it a
second time leads to duplicated log tags, e.g.:
```
server log [12:36:07.138] [debug][plugins][plugins][securitySolution][securitySolution] ...
```
This is now fixed:
```
server log [12:41:52.112] [debug][plugins][securitySolution] ...
```
* small design fixs for integrations list
* use tooltip for upgrade available
* remove enrollment token info
* remove border-bottom from last table row
* Fix type issue
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] (Accessibility) Added focus state and accessible name to suggestions
* Apply suggestions from code review
* Update x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx
padding oops
* cr
* Set queued message instead of immediate message
After being redirected from an oauth configuration, a redirect occurs to show the flash message. A queued message is needed here because the message is lost before the redirect happens otherwise
* Don’t pass empty query params
The kibana server didn’t like the empty param so this commit removes it
Before:
/status?
After
/status
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Updated to eui@30.4.1, fixed types and unit tests
* Cleanup some imports
* Fix a text color swap, now back to danger text
* Bump EUI to v30.4.2
* Revert snapshot changes from ownFocus modification
* Clean up alert flyout test actions to better represent user actions
* Upgrade EUI to 30.5.1
* More accurate test interaction
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* use the relative src instead of path for package images
* add readme to package info for uploaded packages
* let toPackageImage take the image object and check path if no src
* use variable
* added test for correctly deserializing delete phase, and added fix
* clarify test comment
* fix serialization of hot phase to include delete action
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
In this PR we introduce a new `recoveryActionGroup` field on AlertTypes which allows an implementor to specify a custom action group which the framework will use when an alert instance goes from _active_ to _inactive_.
By default all alert types will use the existing `RecoveryActionGroup`, but when `recoveryActionGroup` is specified, this group is used instead.
This is applied across the UI, event log and underlying object model, rather than just being a label change.
To support this we also introduced the `alertActionGroupName` message variable which is the human readable version of existing `alertActionGroup` variable.
* [Maps] geo line source
* update editor with metrics
* show track name in tooltip
* fix styling by category
* avoid killing ES, limit to 100 tracks
* better source tooltip message
* fix imports
* increase max tracks
* use tracks icon
* tslint
* Making layer wizard select tooltip flex
* tslint and jest snapshot updates
* clean up
* add trimmed property to tooltip
* change complete label to 'track is complete'
* show incomplete data icon if tracks are trimmed
* add jest test for getSourceTooltipContent
* clean up areResultsTrimmed logic
* split request into 2 fetches
* review feedback
* do not allow selecting split field as sort field
* reduce number of tracks to 250
* tslint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
* [Lens] allow drag and drop on xyChart for y dimension
* wip
* tests
* dimension panel fix
* eslint
* fix test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add properties tab to flyout
* Better id for i18n title
* Update i18n ids
* Fix test and styling
* Style changes, add support for collapsing array fields
* Add loading indicators
* Fix type check
* Fix another test
* Fix tests for pods
* Add link to node details page
* Only show the overlay when viewing hosts
* Take into account cores when showing cpu
* Make it easier to read
* Remove unnecessary cast
* Fix PR feedback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>