* 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>
* Initial copy/paste of component tree
Only does linting changes and:
- lodash imports
- Replace unescaped apostrophes with '
- Fix ternary function call to if block:
if (isAdding) {
actions.onSchemaSetFormErrors(errors);
} else {
actions.onSchemaSetError({ flashMessages: { error: errors } });
}
* Remove local flash messages from component
* Update paths
- Adds getReindexJobRoute method to routes
- Repalces legacy Rails routes helper with hard-coded paths
* Add types and constants
* Update paths
* Replace local flash message logic with gobal
* Update with newly added types
Added here: https://github.com/elastic/kibana/pull/84822
* Update server routes
* Replace Rails http with kibana http
* Set percentage to 0 when updating
Without this, the IndexingStatus never shows.
* Fix route paths
* Fix server route validation
The empty object was breaking the UI since `schema.object({})` is actually an empty object. This is more explicit and correct.
* Add i18n
* Make sure i18n key is unique
* Lint
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
* Deprecating `xpack.reporting.index` setting
* Adding unit test
* Now with more standard deprecation messages
* Updating the xpack.reporting.index docs
* Fixing tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This replaces the log item API with a single-log-entry search strategy. This is used to fetch the data for display in the details flyout. There should be no significant visual difference to the user.
* Fix schema errors button
When migrated, the button was wrapping the link and it should be the other way around. This caused a blue link color.
* Remove redundant true value
* TIL EuiButtonTo
* modify file route to handle uploaded packge file paths
* update messaging
* improve tests
* fix bug and add test to check the version of the uploaded package before failing
* fix similar bug for getting package info from registry when a different version is uploaded
* Implement exceptions for ML rules
* Remove unused import
* Better implicit types
* Retrieve ML rule index pattern for exception field suggestions and autocomplete
* Add ML job logic to edit exception modal
* Remove unnecessary logic change
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Move schema types to shared
We use the Schema types in Workplace Search as well, so moving these to shared. Also, we have a component called IndexingStatus so reverting to the prefixed IIndexingStatus interface name
* Fix misspelled interface
* Endpoint: add `withSecurityContext` HOC + refactor endpoint policy edit lazy component to use it
* Endpoint: refactor Policy Details to separate form from view
* Endpoint: Enable the Redux store for the Policy form when displayed via Fleet
* Fleet: Allow partial package policy updates to be sent via `onChange()`
* Add IndexingStatusLogic
* Replace IndexingStatusFetcher with logic
* Refactor out unnecessary conditional
onComplete is not optional so these if blocks can be consolidated
* Misc styling - destructuring and typing
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Misc styling - imports
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Remove div
* Refactor test
* Replace method with string for statusPath
In ent-search, we use Rails helpers to generate paths. These were in the form of routes.whateverPath(). We passed these method to the IndexingStatus component to generate the app-specific rotues in the shared component.
In Kibana, we will not have these generators and should instead pass the path strings directly
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Changed the text for the description text in the antivirus registration form. Moved the form component to components folder and extracted translations into constants to make code more readable.
* Extracted EventsForm to reduce duplication among events forms.
* Fixed auto follow actions
* Created a provider for all follower index table actions to fix modal auto-closing
* Moved i18n texts into a const to avoid duplication
* Removed unnecessary imports and added index.js file for follower_index_actions_provider imports
* Fixed wrong imports deletion
* Fixed wrong imports deletion
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add react-motion package
This is needed to animate the loading progress bar in the Enterprise Search schema views
* Add shared interface
* Migrate IndexingStatusContent component
This is a straight copy/paste with only linting changes and tests added
* Migrate IndexingStatusErrors component
This is a copy/paste with linting changes and tests added. Also changed out the Link component to our EuiLinkTo component for internal routing
* Migrate IndexingStatus component
This is a straight copy/paste with only linting changes and tests added
* Migrate IndexingStatusFetcher component
This is a copy/paste with some modifications. The http/axios code has been removed in favor of the HTTPLogic in Kibana.
This is a WIP that I am merging to master until I can get it working in the UI. Without either Schema component in the UIs for App Search or Workplace Search this is only a POC. Will not backport until this is verified working and have written tests.
* Add i18n
* Revert "Add react-motion package"
This reverts commit 92db929d2a.
* Remove motion dependency
* Update copy
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Refactor per code review
- Remove stui classes
- Inline status
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Reapplies the #84123 PR:
This PR changes the default term from “Resolved” to “Recovered”, as it fits most use cases and we feel users are most likely to understand its meaning across domains.
Passing in an empty string '' to useResolver() would trigger a wild card search across all indices and fields, potentially causing a timeout and the page would fail to load. The following pages were affected: Single Metric Viewer, Data frame analytics models list, Data frame analytics jobs list, Data frame analytics exploration page, File Data Visualizer (Data visualizer - Import data from a log file). This PR fixes it by passing undefined instead of '' to useResolver to avoid calling _fields_for_wildcard with an empty pattern. Jest tests were added to cover the two parameter scenarios empty string/undefined.
This PR changes the behavior of severity and risk score overrides in two ways:
- adds support for arrays in the mapped event fields (so a rule can be triggered by an event where e.g. `event.custom_severity` has a value like `[45, 70, 90]`)
- makes the logic of overrides more flexible, resilient to the incoming values (filters out junk, extracts meaningful values, does its best to find a value that would fit the mapping)