Commit graph

2249 commits

Author SHA1 Message Date
Matt Bargar
45b24afe83
Revert "Migrate filter bar to React, EUI, and Typescript (#25563)" (#29662)
This reverts commit 410c094547.
2019-01-30 17:00:42 -05:00
Mike Côté
1b0f595f01
Add new "references" attribute to saved objects for relationships (#28199)
* Add new references attribute to saved objects

* Add dual support for dashboard export API

* Use new relationships API supporting legacy relationships extraction

* Code cleanup

* Fix style and CI error

* Add missing spaces test for findRelationships

* Convert collect_references_deep to typescript

* Add missing trailing commas

* Fix broken test by making saved object API consistently return references

* Fix broken api integration tests

* Add comment about the two TS types for saved object

* Only return title from the attributes returned in findRelationships

* Fix broken test

* Add missing security tests

* Drop filterTypes support

* Implement references to search, dashboard, visualization, graph

* Add index pattern migration to dashboards

* Add references mapping to dashboard mppings.json

* Remove findRelationships from repository and into it's own function / file

* Apply PR feedback pt1

* Fix some failing tests

* Remove error throwing in migrations

* Add references to edit saved object screen

* Pass types to findRelationships

* [ftr] restore snapshots from master, rely on migrations to add references

* [security] remove `find_relationships` action

* remove data set modifications

* [security/savedObjectsClient] remove _getAuthorizedTypes method

* fix security & spaces tests to consider references and migrationVersion

* Add space id prefixes to es_archiver/saved_objects/spaces/data.json

* Rename referenced attributes to have a suffix of RefName

* Fix length check in scenario references doesn't exist

* Add test for inject references to not be called when references array is empty or missing

* some code cleanup

* Make migrations run on machine learning data files, fix rollup filterPath for savedSearchRefName

* fix broken test

* Fix collector.js to include references in elasticsearch response

* code cleanup pt2

* add some more tests

* fix broken tests

* updated documentation on referencedBy option for saved object client find function

* Move visualization migrations into kibana plugin

* Update docs with better description on references

* Apply PR feedback

* Fix merge

* fix tests I broke adressing PR feedback

* PR feedback pt2
2019-01-30 15:53:03 -05:00
Matt Bargar
410c094547
Migrate filter bar to React, EUI, and Typescript (#25563)
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
2019-01-30 15:48:31 -05:00
Melissa Alvarez
9ca8c9fe67
[ML] Ensure Anomaly Explorer 'Overall' swimlane correctly reflects 'View by' swimlane time range selection (#29469)
* update swimlane classes - do not use angular reference

* Update tests
2019-01-30 10:35:53 -05:00
Walter Rafelsberger
a79560e10a
[ML] Fixes dragSelect regression. (#29577)
Some SCSS still used ml-explorer-swimlane (note the selector without the dot) for rules which referenced the angularjs tag <ml-explorer-swimlane /> which wrapped the swimlane. This element no longer exists in the DOM after the migration to React. Because the selector didn't match anymore, cells in the swimlanes would get a gray border when drag-selecting even if the feature to select a range of cells was turned off.

This fixes it by updating the SCSS to match the corresponding elements again. The referenced classes have been renamed to camelCase + ml-prefix and moved out of the deeply nested code. But no further SCSS refactoring is done in this PR, this is just about fixing this regression. Some legacy CSS from the ml-explorer-swimlane rule has been removed too.
2019-01-30 11:46:33 +01:00
Walter Rafelsberger
8c5ac4abbc
[ML] Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges. (#29579)
Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges.
2019-01-30 11:42:47 +01:00
Pete Harverson
f5638bdce3
[ML] Set zoom to start of forecast on opening in Single Metric Viewer (#29503) 2019-01-29 15:10:52 +00:00
Nox911
fc1d146a75
[i18n] Translate ML missed labels (#29256)
* Translate missed labels in ML

* Add translation

* Resolve review comments

* Update snapshot

* Fix test

* fix unit tests

* Remove snapshot
2019-01-29 17:08:57 +03:00
Pete Harverson
191fedf78f
[ML] Fixes to text spacings in data visualizer cards (#29438)
* [ML] Fixes to text spacings in data visualizer cards

* [ML] Switch to using euiFontSizeL include for field title bar
2019-01-29 11:34:14 +00:00
James Gowdy
2b11d651ff
[ML] Switching from joda to java timestamp formats (#29425)
* [ML] Switching from joda to java timestamp formats

* updating tests
2019-01-28 16:09:10 +00:00
James Gowdy
1e161a8c40
[ML] Updating link to index pattern management (#29336) 2019-01-28 13:23:57 +00:00
James Gowdy
e56342e8ad
[ML] Making index pattern related links optional (#29332)
* [ML] Making index pattern related links optional

* reverting index pattern url

* removing link to data visualizer
2019-01-28 10:32:39 +00:00
James Gowdy
ec607e26b9
[ML] Better handling of recognizer module manifest parsing errors (#29322) 2019-01-28 10:32:15 +00:00
pavel06081991
af4dc9ad95
use intl.formatMessage instead FormattedMessage component (#29251) 2019-01-25 17:36:56 +03:00
James Gowdy
18415fdc1b
[ML] Fixing overflowing metric values in field cards (#29255)
* [ML] Fixing overflowing metric values in field cards

* adding better rounding for tiny numbers

* removing debug line
2019-01-24 20:55:20 +00:00
James Gowdy
45b8ff99f0
[ML] Adding ability to override number of sample lines in File Data Visualizer (#29214)
* [ML] Adding ability to override number of sample lines in file data viz

* tiny tweak

* updating tests
2019-01-24 10:03:09 +00:00
James Gowdy
ad4884890b
[ML] Adding missed applyAsync calls (#28814)
* [ML] Adding missed applyAsync calls

* fixing data recognizer results panel

* adding extra applySync calls to job saving in advanced job page

* fix for forcast results display issue
2019-01-24 10:01:15 +00:00
Walter Rafelsberger
735cc82edd
[ML] explorer controller refactor (#28750)
Refactores the application logic of Anomaly Explorer to reduce relying on angularjs.
2019-01-24 09:07:54 +01:00
Spencer
c052613962
[dashboard+gis] remove dark mode options (#29017)
* [dashboard+gis] remove dark mode options

* [reporting/extract] restore fixtures

* remove mentions of old `.theme-dark` class

* import panel styles from panel/_index.scss
2019-01-23 14:29:35 -08:00
James Gowdy
adbe6bb592
[ML] Fixing job cloning when it has an unknown created_by value (#29175) 2019-01-23 21:04:08 +00:00
Jason Rhodes
a11e471420
Updates React et al to 16.6 (#24707)
* Updates react to 16.6 (latest)

* Updated fragment-based snapshots for Kibana root unit tests

* Updated fragment-based snapshots for x-pack unit tests

* Removed xpack yarn.lock file bc it is no longer needed, it was reintroduced by accident during a rebase in this branch

* React 16.6 snapshot updates, round 2 (mostly Fragment snapshot diffs)

* Updated last round of React 16.6 snapshots

* Fixes query bar issue with 16.4 gDSFP lifecycle

* Updated yarn lock (arraybuffer.slice updated)

* Updates snapshots where executeQueryOptions prop appears
2019-01-23 13:46:09 -05:00
James Gowdy
32f0704f54
[ML] Better error reporting when parsing JSON in file dataviz (#29123)
* [ML] Better error reporting when parsing JSON in file dataviz

* first step depends on json parsing
2019-01-23 09:57:55 +00:00
James Gowdy
c91ec0d1ef
[ML] Adding privilege checks to File Data Visualizer (#29109)
* [ML] Adding privilege checks to File Data Visualizer

* fixing typo in comment
2019-01-22 17:07:53 +00:00
Walter Rafelsberger
ef85d1ee16
[ML] Fixes tooltip x position. (#29048)
Fixes a regression where the chart tooltip's x position would fail to be calculated because of a removed global class for the K7 design. This fixes it by falling back to 0 instead of NaN if the element is not present.
2019-01-22 14:34:16 +01:00
James Gowdy
fcb5e3d89a
[ML] Fix for create ingest pipline label issue (#29070) 2019-01-22 10:47:38 +00:00
Pete Harverson
ed9a599b0d
[ML] Removes use of types from ES index and search calls (#28987) 2019-01-18 12:32:31 +00:00
Nox911
43ccd60ce4
[i18n] Translate ML - components - anomaly controls (#28674)
* Translate ml -> components -> controls

* Fix id name

* Resolve review comments

* Resolve review comments
2019-01-17 14:05:54 +03:00
Nox911
89543df907
[i18n] Translate ML - components - rule editor (#28262)
* Translate rule editor

* Fix 'then' -> 'than'

* Update snapshots

* Fix rule description

* Resolve issues from review comments

* Remove extra space

* Update snapshots

* Resolve review comments

* Update snapshots
2019-01-17 12:17:05 +03:00
James Gowdy
2efc10f970
[ML] Removing extra angle bracket in job groups select (#28829) 2019-01-16 15:34:34 +00:00
Pete Harverson
bdf66a4db8
[ML] Fixes influencer swimlane query when value is only whitespace (#28769) 2019-01-16 11:54:55 +00:00
pavel06081991
9d72276f13
[ML] translate anomaly utils (#28675)
[ML] translate anomalies table utils
2019-01-16 14:50:07 +03:00
Ahmad Bamieh
1122b79e1d [ML] Localize ml components ( part 5 - JSON tooltips) (#27966)
* localize json_tooltip ml component

* Resolve part of review comments
2019-01-16 12:36:42 +03:00
Ahmad Bamieh
bc4b197fbd [ML] Localize ml components ( part 1 ) (#27957)
* feature(ml): localize components

* fix xpack.i18n localization strings

* Resolve review comments

* Add I18nProvider

* Fix adding label to angular scope

* Fix case of word

* Update test snapshots.

* Resolve review comments
2019-01-16 11:09:51 +03:00
Nathan Reese
f26bf4ac56
Upgrade to EUI 6.3.1 (#28707)
* Upgrade to EUI 6.3.0

* use ToolTipPositions instead of EuiToolTipPosition to avoid typescript problems

* update @types/react and @types/prop-types to match EUI versions

* upgraded to EUI 6.3.1 to avoid typescript version issues
2019-01-15 11:35:41 -07:00
Melissa Alvarez
7f8203715d
[ML] Add support to Data Visualizer for index patterns without a time field (#28511)
* Prevent docCount fetch and remove sidebar if no timeField set.

* Don't show metrics section if no metrics cards

* Add parens to conditional statement as per styleguide

* Don't create docCount card if not timeseries based
2019-01-14 12:31:46 -05:00
James Gowdy
90b5969e5c
[ML] Fixing analyze file endpoint call when behind proxy (#28595)
* [ML] Fixing analyze file endpoint call when behing proxy

* small refactor
2019-01-14 14:51:15 +00:00
Pete Harverson
e1a6f75acc
[ML] Removes unused ml-item-select directive (#28669) 2019-01-14 12:17:26 +00:00
pavel06081991
6d0d521ef7
[ML] translate anomalies table columns names (#28666)
[ML] translate anomalies table columns names
2019-01-14 14:53:56 +03:00
pavel06081991
19b84f0bc2
[ML] translate job validation messages (#28235)
[ML] translate job validation messages
2019-01-14 14:04:39 +03:00
pavel06081991
09ea8e35a3
[ML] translate models (#27888)
[ML] translate models
2019-01-14 12:24:30 +03:00
pavel06081991
12b5204759
[ML] translate anomalies table (#27802)
[ML] translate anomalies table
2019-01-14 10:59:24 +03:00
Nox911
9b3a216f6f
[i18n] Translate ML - time series explorer (#28066)
* Translate timeseries explorer

* Fix issues

* Fix tslint errors

* Fix tslint error

* Fix test

* Update tests

* Fix tests

* Update snapshot

* Resolve issues from review comments

* Resolve issues from review comments
2019-01-14 10:44:20 +03:00
Nox911
bbad05070f
Replace shallow and mount to shallowWithIntl and mountWithIntl (#28563) 2019-01-11 17:35:48 +03:00
Walter Rafelsberger
98ec9e17bd
[ML] Remove deprecated angularjs directives. (#28564)
* [ML] Remove deprecated show-charts directive.
* [ML] Remove deprecated ml-controls-select directive.
* [ML] Remove deprecated SCSS import.
2019-01-11 13:27:31 +01:00
Walter Rafelsberger
c58c357115
[ML] Migrate Anomaly Explorer to React (except job selector) (#28234)
* [ML] Move Anomaly Explorer Loading indicator to React.
* [ML] Move no-jobs message to React/Eui.
* [ML] Move no-results message to React/Eui.
* [ML] Refactored explorer.js to return earlier.
* [ML] Refactored influencers column to react.
* [ML] Refactored Overall Swimlane and view-by dropdown to react/eui.
* [ML] Refactored limit dropdown to react/eui.
* [ML] Refactored view-by swimlanes to React/Eui.
* [ML] Refactored annotations table to React/Eui.
* [ML] Refactored table controls to React/Eui.
* [ML] Refactored explorer charts to use React/Eui.
* [ML] Refactored anomalies table to React/Eui.
* [ML] Move explorer charts data listener to ExplorerChartsContainer component.
* [ML] Make AppState dependent services importable by React components.
* [ML] Removes deprecated code.
* [ML] Simplify state handling for anomaly charts.
* [ML] Simplify swimlaneCellClick().
* [ML] Review feedback: Fix file structure, add propTypes.
* [ML] Review feedback: Avoid anonymous inline functions.
* [ML] Fixes tests to reflect code changes.
* [ML] Fixes InfluencerList DOM position.
* [ML] Show a loading indicator when the view-by swimlane updates.
* [ML] Review feedback: Import only relevant lodash bits. Use querySelector instead of jQuery.
* [ML] Adds snapshot tests for new smallish components.
* [ML] Fix test stub.
* [ML] More resilient getChartContainerWidth().
* [ML] Review feedback: Comment on legacy utils and dropdown widths.
2019-01-11 10:34:56 +01:00
Nox911
2937145f0f
Fix translation for watcher email (#28451) 2019-01-11 11:13:54 +03:00
Caroline Horn
91a4d0749e
Final ui/public/styles LESS to SASS (#27510) 2019-01-10 15:19:38 -05:00
Melissa Alvarez
8b03d360c5
[ML] For categorization anomalies, display the category regex/terms in the expanded row (#28376)
* Fetch terms/regex when row expanded

* Adds error handling for definition fetch

* update anomalyDetails tests

* Handle definition regex/terms not returned

* Adds tooltip to regex header
2019-01-10 09:29:06 -05:00
James Gowdy
1018e756bf
[ML] Fix for groups input population when cloning job (#28449) 2019-01-10 10:47:11 +00:00
Pete Harverson
2061cdb2c5
[ML] Fixes overflowing text in the anomalies table expanded row (#28372)
* [ML] Fixes overflowing text in the anomalies table expanded row

* [ML] Switch to using euiTextTruncate to fix overflow
2019-01-09 17:47:59 +00:00