* Migrate kibana.autocomplete config to data plugin
* Fix CI
* Fix tests
* Use new terms enum API for autocomplete value suggestions
* Add tiers to config
* Re-introduce terms agg and add config/tests for swapping algorithms
* Add data_content and data_cold tiers by default
* Fix types
* Fix maps test
* Update tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Update file data visualizer permissions
* adding home bundle
* fixing translations
* removing home from bundles
* switching to current user for analysis
* adding find structure permission check
* clean up
* updating text
* updating maps
* removing has_find_file_structure_permission endpoint
* removing more code
* adding permission error message
* renaming variable
* adding fileUpload:analyzeFile back into ML
* updating error text
* updating snapshots
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Added dashboard no items message to dashboard_strings, wrote new message for read only empty state. Moved visualize library dashboard callout under title
Adds the ability to collapse the sidenav. This should work in all solutions. It also adds breakpoints that turn it into a flyout at lower screen widths.
* [ML] Async Search Service.
* [ML] Log Log Area Charts Grid. Scatterplot with streaming data.
* [ML] Remove scatterplot streaming demo.
* [ML] Improved histogram bins for log scale.
* [ML] Move client side code from Ml to APM plugin.
* [ML] Adds correlation table.
* [ML] Layout tweaks.
* [ML] Move server side code from ML to APM.
* [ML] Remove console.logs.
* [ML] Fix types.
* [ML] Chart area line type fix. Slowness %.
* [ML] Comment unused vars.
* Fix missing pluginsStart data in context
* Add KS test value and rename table columns
* Update percentiles to be correct
* Make columns optional
* Update fractionals/expectations to match with backend logic
* Update so progress is 100% when all is completed
* Make pre-processing steps smaller part of overall progress(to show charts earlier)
* Add no correlations found message
* Fix progress logic
* Fix incorrect threshold, types
* Add back APM filtering functionality to match with other table
* Improve histogram equality check with random sampling
* Show overall latency distribution right away
* Rename demo tab to latencyCorrelationsTab
* Update percentiles query to use hdr
* [ML] Fix issue where apm-* might have multiple indices with different mappings where keyword is not the only type
- Fix to check for keyword mapping more thoroughly
- Add try catch if one of the es search fail, don't quit the entire fetch
* Remove commented code
* Remove kstest column, round correlation to 2 sigfig dec
* Remove old latency tab, replace with ml latency correlations tab as first/default one
* Set axis to start at 0 because agg may results in weird
* Remove commented code for grouping duplicates
* Update msg to mean significant correlations
* Add i18n
* Change correlations flyout back to medium size
* Add name of service or transaction for clarity
* Share i18n
* Consolidate roundToDecimalPlace usage
* Remove redundant isDuplicate
* Create MAX_CORRELATIONS_TO_SHOW
* Update mlCorrelationcolumns
* Fix i18n quotations
* Update query to include filter
* Revert "Update query to include filter"
This reverts commit 9a37eec0
* Rename MlCorrelations to MlLatencyCorrelations for clarity
* Add pagination
* Update include/exclude logic for field candidates and add ip field support
* Add transactionName filter suport
* Reorganize math utils
* Group duplicates together
* Fix typescript, better hasPrefixToInclude support check,
* Remove Finished toast
* Add title to y axis
* Reduce number of tick labels to show
* Highlight table row that is being used for graph
* Add from to follow MDN guideline
* Add APM style prefix
* Fix i18n
* [ML] Fix logic for tick format to only show power of 10
* Replace roundToDecimalPlace with asPreciseDecimal
* Switch to lodash range
* Clean up get_query_with_params
* Prioritize candidates using field_terms
* Update percentiles result type to be array instead of objects
* Use observability's rangeQuery instead
* Change arg format of query
* Revert candidate_terms logic
* Consolidate fractions, expectations, and ranges calc
* Add tooltip for Correlation
* Change terms size to 20
* Move env/service/transaction sticky header to top level, remove link
* Add support for http.response.status_code
* Replace histogram circular markers with bars
* Delete unused roundToDecimalPlace
* Add fractions calculation
* Make notes of fractions and fix bucket correlation
* Remove any, commented code, consolidate cancelFetch
* Use es6 max
* Align tooltip at the top
* Get rid of getCoreServices, param docs, rename type, remove rangeQuery
* Adjust range
* Show all values without grouping duplicates
* Fix pagination
* Make flyout larger
Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Update delete copy to immediate deletion
- David recently changed our dashboard action to invoke an index refresh, which means it should be a synchronous action now
* Run node scripts/i18n_check --fix
* create alert per node instead of per cluster
* add comment
* fix test, replace alert state with empty array with no node is firing
* update cpu usage action messaging
* fix internationalization
* update disk usage rule action messaging
* update memory usage rule action messaging
* update other action messaging
* update missing monitoring data alert action messaging
* remove comment
* fix bug where threadpool alerts were not firing
* fix bug with threadpool rejections and update alert action messaging to be per node
* update comments
* unit test for thread pool write rejections alert
* update messaging for CCR read rejection
* fix cluster level alerts to use the cluster id when its not node level
* add more tests to nodes changed alert
* update default message
* update alert messaging for large shard size
* update default messaging
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Timeslider icons and styles
* Exit feature editing. Animations for toolbar and timeslider
* Removing unnecessary line
* Adding padding to tooltip field popover
* Adding pulse animation on open timeslider
* Adding isDraggable to timeslider
* More timeslider styles
* Better positioning of the exit edit mode button
* Enable edit mode when new vector layer added
* Review feedback. Update action name. Remove unneeded component state
* Minor updates. One more action for cancel. Type updates. Snapshot update
* fixing tests and eslint error
* Added new exit mode design. Renamed animations
* Features instead of feature to be consistent with popover
* fix type error
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Aaron Caldwell <aaron.caldwell@elastic.co>
* [APM] Adds migration to fleet-managed APM server in APM UI Settings (#100657)
* adds useStrictParams option to apm server routes to allow unknown record type in param.bopy
* Adds checks for required roles, policies, and config before allowing user to initiate migration
* refactored and cleaned up server-side code
* i18n and link to Fleet
* fixes linting issues and unit tests
* updates the apm package policy to 0.3.0 and adds some missing config mappings
* PR feedback
* Handles case where the cloud policy doesn't exist
* Reverts the addition of the useStrictParams option since strictKeysRt now supports records
* fixes default input var values and uses correct published package version
* displays reasons the switch to data streams is disabled
* Store apm-server schema with the internal saved objects client
* Fix 'Detection' / 'Investigation Guide' UI broken when it contains long words
* Fix investigation guide is not formatted under Alert details flyout
* Add LineClamp to investigation guide field
* It enhances LineClamp to support a react node instead of only text
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [SecuritySolutions] [Navigation] Prepare new routing and migrate overview (#101733)
* prepare new routing and migrate overview
* test fix and todo comments identified
* telemetry using app views
* navigation groups implemented
* cleaning
* export subplugin routes as route props array
* [Security Solution][Navigation] Migrate Security Solutions 'explore' tab group to deep link navigation (#102306)
* Update navigateToApp and getUrlForApp to provide the deepLinkId
* Update Hosts and Network routes to start from /hosts and /network
* Add Hosts and Network to side nav menu under "Explore" menu group
* Delete Hosts and Network old menu code
* Fix broken tests
* [SecuritySolution] Add detections subplugin to deeplink (#101791)
* prepare new routing and migrate overview
* init nav deeplink
* split detections into rules and alerts
* init exception link
* init detections
* link to rules creation page
* link to rules creation page
* rename detections to alerts
* fix unit tests
* fix rules creation page
* remove console
* fix lint error
* fix unit tests
* fix unit tests
* isolating rules and exceptions page
* replace history push with navigateToApp
* fix unit test
* temporary fix for createCoreStartMock
* update cypress
* skip failing cypress
* skip failing cypress
Co-authored-by: semd <sergi.massaneda@elastic.co>
* Migrate "Investigate" tab group to new side navigation (#102705)
* Migrate "Investigate" tab group to new side navigation
It includes:
* Timelines
* Cases
* Quick fix useFormatUrl and HeaderPage navigation
* [Security Solutions] Management navigation (#102685)
* prepare new routing and migrate overview
* test fix and todo comments identified
* telemetry using app views
* navigation groups implemented
* cleaning
* export subplugin routes as route props array
* breadcrumbs changes and sidenav generation improvements
* jest tests for breadcrumbs and navigation changes
* retrocompatibility for sections that are not yet migrated to deepLinks
* management deepLinks and plugin refactoring
* home navigation changes
* management navigation migrated to deeplinks
* jest tests fixed
* header page back link improved and tests fixed
* type errors fixes
* improve home navigation encapsulation
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix type checking
* export header page
* fix padding
* add redirect routes
* unskip detection cypress
* fix i18n
* fix create your own rules btn
* fix cancel button on rules creation page
* test fixes
* fix breadcrumbs for rules pages
* unit test fixes
* additional fixes
* [Security Solutions] Navigation usage tracker and general changes (#103271)
* [Security Solutions] use of currentAppId$ migrated. and some small fixes
* unused constants removed
* remove unused constant
* test fix and types
* fix cypress
* fix cypress tests
* Fix case navTab permission and tests
* Revert 'timeline.isOpen' breadcrumb code that was deleted during merge
* Fix useInsertTimeline test by removing '/'
* change global navigation visible deeplinks
* fix /admininstration top level redirect to
* fix global search icon, nav order and overview hosts link
* update start a new case link
* fix rules link in exception list table
* unskip cypress tests
* update rules link
* fix full screen timeline
* fixing broken links and administration telemetry split
* remove unused comments
* remove timeline z-index and cleanup global header component
* some minor fixes
* add unit tests for detections breadcrumbs
* remove case to global/search nav when cases is none
* rename test scenario
* fix side_panel flyout
* fix cases use cases between search/gobal nav
* timeline snapshot regenerated and cypres test fixed
* rollback management tracking split as it causes unexpected errors on the telemetry component
Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
* Add new runtime types for parsing on client/server.
* Add more runtime types.
* Remove dead code.
* Mark parameter as unused.
* Improve typing for failed journey request function.
* Add new API functions, improve typing in a few others.
* Modify API calls to work with new screenshot_ref data.
* Fix untested refactor error.
* Add required fields to runtime type.
* Update typing in failed steps component.
* Adapt client to work with old screenshots as well as new screenshot_ref.
* Refactor composite code to reusable hook.
* Implement screenshot blocks endpoint.
* Define runtime types for full-size screenshots.
* Delete dedicated screenshot and ref queries.
* Optimize screenshot endpoint by combining queries.
* Handle parsing error.
* Clean up screenshot/ref typings.
* Remove dead types. DRY a type out.
* Simplify types.
* Improve typing in step screenshot components.
* Prefer PNG to JPG for canvas composite op.
* Simplify and clean up some code.
* Remove reliance on `Ping` type, clean up types.
* Add a comment.
* Add a comment.
* Fix typing for `FailedStep` component.
* Standardize loading spinner sizes.
* Add comments to composite code.
* Remove unnecessary optional chaining.
* Reformat error string.
* Remove unneeded key from request return object.
* Add a comment to a return object explaining very large cache value.
* Make type annotation more accurate.
* Resolve some type and test errors.
* Clean up remaining type errors.
* Move type definitions to simplify imports.
* Simplify `PingTimestamp` interface.
* Refactor failing unit test to use RTL and actually test things.
* Add tests for new helper functions.
* Add a comment.
* Test `PingTimestamp` for screenshot ref data.
* Test `StepImageCaption` for ref data.
* Improve typing for step list column definitions.
* Harden a test.
* Extract code to avoid repeated declarations.
* Create centralized mock for `useCompositeImage`.
* Add test for ref to `StepScreenshotDisplay`.
* Add tests for `getJourneyDetails`.
* Extract search results wrapper to helper lib.
* Add tests for `getJourneyFailedSteps`.
* Add support for aggs to result helper wrapper.
* Write tests for `getJourneyScreenshot` and simplify type checking.
* Write tests for `getJourneyScreenshotBlocks`.
* Simplify prop types for `FailedStep`.
* Remove unused type.
* Fix regression in step navigating for new style screenshots.
* Implement PR feedback.
* Implement PR feedback.
* Implement PR feedback.
* Reduce limit of screenshot block queries from 10k to 1k.
* Remove redundant field selection from ES query.
* Implement PR feedback.
* Fix regression that caused "Last successful step" to not show an image.
* Delete unused props from `Ping` runtime type.
* More precise naming.
* Naming improvements. Add `useCallback` to prevent callback re-declaration.
* Prefer explicit props to `{...spread}` syntax.
* Remove redundant type checking.
* Delete obsolete unit tests.
* Fix a regression.
* Add effect to `useEffect`.