* use badge component to keep group badge consistent. sort groups
* use all colors now that badge component is used
* set left margin on group badge wrapped in link to match badge margin
* add badge colors to edit flyout job groups
* [ML] Fixing endpoint schema for can_delete_job endpoint
* changing get to post in docs
* renaming canUntag
* fixing typo
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
For cardinality checks, an empty index of the fields checks not returning any results would block the user from moving to the next step in the Anomaly Detection job wizard.
This PR fixes it by adding more fine grained checks and only returning warning-level messages for the above cases. A warning-level message will allow the user to continue to the next step in the wizard.
* [ML] Fix sort order of data recognizer module cards
* [ML] Add sort by ID to server side recognize endpoint
* [ML] Enhance docs for recognize endpoint success response.
* [ML] Fix synching jobs from other spaces
* updating text in delete modal
* updating translations
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Adding runtime_mappings to job wizards
* fixing test
* adding runtime fields to fields list in datafeed preview
* fixing cardinality count for runtime field
* fixing cardinality check in data visualizer
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* disable delete until checks complete
* add canDeleteJobs wrapper in saved objects service
* create DeleteJobCheckModal shared component
* wip: add deleteJobModal check in list and map views
* adding remove from current space endpoint
* updating error text
* fixing typo in variable name
* Update button content. Add untagging functionality
* adding anomaly detection delete job modal
* fix modal content bug
* refresh job map after deletion or untagging
* adding job refresh to anomaly detectors
* go straight to delete flow if only action available
* fixing test
* update text
* increase line spacing in check modal
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
* initial commit
refactored multi-index, multi-pipeline jobs for 7.11. These are new modules that will live alongside the existing jobs.
* Update ml_modules.tsx
added new module names to the list
* Update get_module.ts
added new module names
* Linter fixes
* Order matters
* manifest fixes
added colon char to the module name and shortened the description
* additon to description
after talking with the security team today, adding this suggested text to the beginning of the description so it will tend to be visible to the user:
"This is a new refactored job which works on ECS compatible events across multiple indices."
* Adjust module recognizer test for auditbeat dataset
* influencers
changes to the metadata jobs to make influencers identical to the originals
* change for security app
changes to two datafeeds needed for logic in the Security app - added the suffix "_ecs" to two ids.
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* 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>
* get all jobs from index node
* create map from modelId and enable url share
* highlight source node
* add map endpoint to api doc
* use variables in css.fix types.ensure map tab is shown
* fix translations
* Removing circular dependency between spaces and security
* Apply suggestions from code review
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* Tests refactor
- Reorganize top level describes into 3 space-based blocks into based on spaces:
- space disabled
- spaces plugin unavailable
- space enabled (most previous tests go under this new block) with new beforeEach
- wrote new tests for uncovered lines 58, 66-69
* Review1: address PR feedback
* changing fake requests for alerts/actions
* Fixing tests
* fixing more tests
* Additional testing and refactoring
* Apply suggestions from code review
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* Review 2: Address feedback
* Make ESLint happy again
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
* [ML] Space management UI
* fixing types
* small react refactor
* adding repair toasts
* text and style changes
* handling spaces being disabled
* correcting initalizing endpoint response
* text updates
* text updates
* fixing spaces manager use when spaces is disabled
* more text updates
* switching to delete saved object first rather than overwrite
* filtering non ml spaces
* renaming file
* fixing types
* updating list style
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
In the advanced settings categories, "Observability" and "Machine Learning" were using uppercase letters in their keys while everything else was using lowercase
This caused them both to show up before the rest of the options in the dropdown and in the sorting in the advanced settings UI.
Add keys for them to the get_category_name module in the advanced settings plugin and use those keys in the plugins that apply these categories.
This also makes it so i18n keys are available for these items.
Fixes#81974.
* add analytics map endpoint and server model
* add map action to job and models list
* wip:fetch models for jobs. Use url generator
* get models when extending node. deduplicate elements
* add job type icons. disable map action if job not finished.
* move shared const to common dir
* persist map tab. handle indexPattern from visualizer
* use url generator in models list
* temporarily disable delete action in flyout
* update legend style. make map horizontal
* update dfa model to use spaces changes
* format creation time
* update from indexPattern to index.remove refresh button
* handle index patterns with wildcard
* [ML] fix callout styles
* [ML] refactor timeseriesexplorer.js, add series_controls.tsx, storage support for partition config
* [ML] anomalousOnly support
* [ML] sort by control
* [ML] update query
* [ML] sort order controls
* [ML] adjust query
* [ML] merge default and local configs, add info
* [ML] fix types, adjust sorting logic for model plot results
* [ML] fix translation keys
* [ML] fixed size for the icon flex item
* [ML] fix time range condition, refactor
* [ML] change info messages and the icon color
* Fix model plot info message
Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
* [ML] functional tests
* [ML] rename ML_ENTITY_FIELDS_CONFIG
* [ML] support manual input
* [ML] show max record score color indicator
* [ML] use :checked selector
* [ML] refactor functional tests
* [ML] extend config with "applyTimeRange", refactor with entity_config.tsx
* [ML] info messages
* [ML] remove custom message
* [ML] adjust the endpoint
* [ML] customOptionText
* [ML] sort by name UI tweak
* [ML] change text
* [ML] remove TODO comment
* [ML] fix functional test
* [ML] move "Anomalous only"/"Apply time range" control to the bottom of the popover
* [ML] update types
* show error when clone fails due to no index pattern
* default results_field unless specified
* results field switch set to on if resultsField for cloned job is default
* ensure cloned job config not overwritten in advanced editor
* show errorToast if unable to clone anomalyDetection job due to no indexPattern
* ensure jobConfig query getting saved in form state
* ensure index patterns with commas handled correctly
* clone should accept comma separated index patterns
* use nullish coalescing operator when checking for undefined analysisFields
* [ML] Replace use of rest_total_hits_as_int with track_total_hits
* [ML] Replace use of lodash get for obtaining hits total
* [ML] Update mocks to use new total hits format
This adds dataset-specific categorization warnings for the categorization module. The warnings are displayed in call-outs on the relevant tabs as well as the job setup screens if a prior job with warnings exists. To that end this also changes the categorization job configuration to enable the partitioned categorization mode.
Co-authored-by: Alejandro Fernández Gómez <antarticonorte@gmail.com>