* 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>
* 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>
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.
* [ML] store query string in the URL state
* [ML] query state for the config step
* [ML] pagination in the URL state
* [ML] persisted URL state for outlier results exploration
* [ML] update URL generator
* [ML] do not update the url state when query string hasn't been changed
* [ML] store expandable panels state in the URL
* [ML] fix TS issue
* [ML] fix TS issue
* 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>
* [ML] support table settings from the URL state
* [ML] fix management page
* [ML] models page support
* [ML] update URL generator
* [ML] rename id column
* [ML] update types and tests
* [ML] fix id column name and field
* [ML] remove legacy functions
* [ML] set id key for the job query text
* [ML] fix id column rendering
* [ML] ad jobs with usePageUrlState
* [ML] update unit tests for solutions
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.
* [ML] Adds functional tests for the index data visualizer card contents
* [ML] Fix translations
* [ML] Fix type errors in permissions tests
* [ML] Address comments from review
Jest tests are currently organized into main configuration files (src/dev/jest/config.js and x-pack/dev-tools/jest/create_jest_config.js). Both of these are similar, but very slightly due to previously being in separate repositories. This change consolidates the scripts referenced in those configs and moves them to the `@kbn/test` project.
OSS contained an alias for `test_utils`. Those aliases have been removed in favor of importing these utilities from `@kbn/test/jest`
Blocker to #72569
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* 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] table config in the URL state
* [ML] fix job list on the management page
* [ML] store query filter in the URL
* [ML] fix context for the management page
* [ML] update module_list_card.tsx in Logs UI
* [ML] fix unit tests
* [ML] fix unit tests
* [ML] fix unit tests
* [ML] move utils functions
* [ML] url generator to support both job and group ids