Commit graph

2249 commits

Author SHA1 Message Date
Melissa Alvarez
2521ac92aa
startDatafeed modal set maxWidth false (#27438) 2018-12-18 15:52:57 -07:00
Walter Rafelsberger
59d078e31c
[ML] Fix annotations feature startup behavior. (#27424)
* [ML] Fix annotations feature startup behavior.
* [ML] Move strings to constants.
2018-12-18 21:46:16 +01:00
Jonathan Budzenski
b5b64f4706
Support for multiple Elasticsearch nodes and sniffing (#21928)
* Node sniffing

* update monitoring

* cleaning

* remove tests

* rewrite tests using the proxy

* fix monitoring mocha tests

* fix payload

* return full error

* default interval false

* add sniff settings to monitoring

* add docs for sniff settings

* re-add index search integration test

* catch parse error

* capital

* fix merge

* hapi upgrade

* return

* pass by prefix

* rm empty test fille

* split error handling

* fix merge

* update recent elasticsearch.url references

* prettier vs eslint

* transport.request, include query params

* mega comment

* revert elasticsearchUrl

* safe hosts

* more docs es.url references

* remove unused ml/esServerUrl

* log if both set
2018-12-18 13:22:43 -06:00
dave.snider@gmail.com
a94fd11a3e
EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI (#27009)
EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in kbn/ui-framework are simple shifts to match that styling.
2018-12-18 10:59:31 -08:00
Melissa Alvarez
70ca46b1be
[ML] Use EuiSuperSelect for the 'Create Watch' severity control in Job wizard (#27272)
* Use superSelect eui for watcher severityControl

* move severity options to utils

* use existing severity control component

* add classNames prop

* Keep severity options in component

* increase severity select width
2018-12-18 11:07:03 -07:00
Walter Rafelsberger
d802ce73a7
[ML] Display a confirmation modal before deleting an annotation. (#27377)
* [ML] Display a confirmation modal before deleting an annotation.
* [ML] Remove testing reliquia.
2018-12-18 17:27:34 +01:00
Melissa Alvarez
ea3725a11f
[ML] ML Ensure correct permissions applied to Settings Calendars/Filter Lists (#27346)
* Update calendar management permissions

* update filter lists permissions

* update calendars tests

* update settings and filterLists tests

* update filterList edit save button permission check

* Disable event delete in edit form if no permission

* Update tests for eventTable change
2018-12-18 09:18:38 -07:00
tibmt
d19cafb397 [i18n] Translate ML - Permission failure messages (#25648)
translate privilege folder of ML
2018-12-18 17:51:43 +03:00
pavel06081991
96137046ba
translation ML access denied (#27105)
translation ML access denied
2018-12-18 17:49:09 +03:00
Walter Rafelsberger
f6dd17c93e
[ML] Annotations Table in Anomaly Explorer. (#27312)
- The annotations table has been updated to support multiple jobs.If annotations from multiple jobs are shown, a column with job ID will dynamically be added to the annotation table.
- The code for openSingleMetricView() to drill down from the annotations table has been updated to work both from the jobs list and Anomaly Explorer.
- The wrapper angularjs directive for the annotations table now has support for a scope attribute to show/hide the column with A/B/C... labels.
2018-12-18 15:20:59 +01:00
pavel06081991
e8403efa97
fix [ML] Delete job modal displaying [object Object] instead of actual text #27356 (#27378) 2018-12-18 15:05:35 +03:00
Walter Rafelsberger
c6dc1a1fec
[ML] List all annotations in jobs list annotations table. (#27300)
* [ML] List all annotations in jobs list annotations table even outside analysis time range.
* [ML] Adjust the links time range if annotation is outside analysis time range.
2018-12-18 09:24:24 +01:00
Melissa Alvarez
4cfd7f4a59
[ML] Ensure loading message is present on jobs load (#27316)
* Update loading message jobsList

* Update loading message
2018-12-17 11:40:19 -06:00
Walter Rafelsberger
e515e0424b
[ML] Mask annotation overflows in Time Series Chart. (#27292)
Fixes the overflow of annotations left and right of the focus area chart using a SVG mask. In addition to the masking, annotation label position are adjusted to not be hidden or cut off when the start or endof a masked annotation is outside the visible area.
2018-12-17 16:58:41 +01:00
Pete Harverson
6cc9bc2fc6
[ML] Adds created_by meta data for file data viz import indexes (#27303) 2018-12-17 15:28:04 +00:00
Pete Harverson
c334c40453
[ML] Updates to jobs and dashboards in auditbeat process modules (#27233) 2018-12-17 11:35:16 +00:00
Walter Rafelsberger
55aafcec59
[ML] Consolidate date formatting. (#27205)
* [ML] Consolidate date formatting.
* [ML] Adds unit tests.
* [ML] Fixes tz issue in date_utils test.
2018-12-17 10:12:41 +01:00
Melissa Alvarez
6dd6f2f200
[ML] Converts Settings page to react (#27144)
* Replace settings page with react directive

* Adds test for Settings component

* add calendar permission check

* Update settings test

* Remove outdated angular settings tests
2018-12-14 12:42:54 -06:00
Melissa Alvarez
a88778b3bb
[ML] Ensure loading indicator is present on initial jobs load (#27151)
* Show table loading on initial jobs load

* Use async/await and try/catch to catch job load failure
2018-12-14 11:11:30 -06:00
Melissa Alvarez
1108fcbc6a
[ML] Settings/Calendars: Prevent new calendar save if id already exists (#27104)
* Prevent new calendar save if duplicate id

* add test for duplicate id detection

* Use danger notif for duplicate id error
2018-12-14 10:49:51 -06:00
Caroline Horn
911b57172b
Even moar 'ui/public' LESS to SASS (#26435)
also Fixes #26597
2018-12-14 11:41:27 -05:00
Walter Rafelsberger
26c77eb25e
[ML] User Annotations (#26034)
Allows users to add/edit/delete annotations in the Single Series Viewer.
2018-12-14 14:09:52 +01:00
Melissa Alvarez
b9e2935f6e
Remove old schedule_events dir (#27095) 2018-12-13 08:40:16 -06:00
Melissa Alvarez
449f63737c
Update calendars routes with k7 breadcrumbs (#27087) 2018-12-13 08:35:37 -06:00
Melissa Alvarez
7f4ac5d669
[ML] calendar eui conversion (#26741)
* Create calendar list in react

* wip: create new_calendar page

* Update new calendar settings directory name

* Edit button action + update utils

* Adds ability to create new calendar

* Display calendar data on edit

* rename directory to settings/calendar

* Add scss files to calendar dir

* Create new group from form

* Adds event table and partial event modal.

* adds datepicker to modal

* Time range event functionality

* add import event functionality

* upate new event modal design

* Add error handling to list/edit

* calendarId validity check

* Create/delete permission. List/form style tweak

* Update calendarList to match filterList

* Add missing newlines in scss files

* Initial tests for calendar list

* Update classnames to meet guidelines

* ImportedEvents component + create utils

* remove unnecessary import

* rename calendars dir

* include past evens in import if checkbox checked

* code review updates

* move components into own directories

* update index.scss with dir name change

* skip irrelevant tests

* fix unsaved event deletion. rename scss file.

* Add modal tests

* Show calendarId and description as header on edit

* update snapshot for refactor

* update classnames to BEM guidelines

* Update snapshot for classname change
2018-12-12 12:20:35 -06:00
Pete Harverson
2fc7deebf9
[ML] Remove duplicate import in file_datavisualizer_directive (#27044) 2018-12-12 16:07:19 +00:00
tibmt
af8147d98b [i18n] Translate ML - File Datavisualizer (Part 2) (#25642)
translate file_datavisualizer folder of Machine Learning (Part 2)
2018-12-12 18:07:33 +03:00
Pete Harverson
ac10ba5852
[ML] Fix word break in anomalies and jobs tables (#26978) 2018-12-12 10:03:25 +00:00
Pete Harverson
4e63fbdeb4
[ML] Do not pass datafeed query to Discover in custom URL (#26957) 2018-12-11 15:30:41 +00:00
tibmt
dccc2c74b3 [i18n] Translate ML - File Datavisualizer (Part 1) (#25641)
translate file_datavisualizer folder of Machine Learning (Part 1)
2018-12-11 18:11:06 +03:00
Walter Rafelsberger
6c44fed1e2
[ML] Adds isRequired where applicable to timeseries_chart props. (#26880)
Adds isRequired to timeseries_chart props to match the minimum required props necessary to render the component without errors reflected in the Minimal initialization test.
2018-12-11 11:38:17 +01:00
Nox911
d86996be01 Feature/translate ml - jobs(part 2) (#25528)
Translate ml -> jobs - jobs-list(part_2)
2018-12-10 19:22:42 +03:00
Pete Harverson
339e38b96a
[ML] Implement k7 breadcrumbs for ML routes (#26774)
* [ML] Implement k7 breadcrumbs for ML routes

* [ML] Remove duplicate nouns from jobs and settings breadcrumbs
2018-12-07 16:12:38 +00:00
Nox911
b3bd950400 Feature/translate ml-jobs-jobs_list(part_1) (#25466)
Translate ml -> jobsList(part_1)
2018-12-07 11:05:01 +03:00
Walter Rafelsberger
9721db5673
[ML] Fixes population chart marker positions, swimlane race condition. (#26716)
* [ML] Fixes the skipping rule for metricData.
* [ML] Adds a test to check against correct filtering of null/0.
* [ML] Gets rid of _.has() and fixed a rare error with field values containing a trailing dot.
* [ML] Fixes rare/event_distribution chart filtering.
* [ML] Fixes race condition related to view by swimlane initialization.
* [ML] Updated comment to clarify metricData filtering.
2018-12-06 16:33:36 +01:00
Pete Harverson
ae27e83712
[ML] Add rest_total_hit_as_int where total hits is required (#26421) 2018-12-04 09:25:24 +00:00
Spencer
0b4ae5020b
[npm] prepare @kbn/datemath for publishing (#26559)
We need to share `@kbn/datemath` with `@elastic/eui`, and rather than making them rely on Kibana for their dependencies we've decided to republish `@kbn/datemath` as `@elastic/datemath`. This isn't something we want to do often, so please check with the platform team if you'd like to do this for another module.
2018-12-03 16:01:16 -08:00
Pete Harverson
15095f8a21
[ML] Removes unused SCSS files from deprecated custom URL editor (#26474) 2018-12-03 16:11:15 +00:00
Marco Vettorello
cfb3a3cf75
Decoupling UI Settings from buildEsQuery (#25994)
* Decuple the UI setting config from kbn-es-query package

* Remove BuildESQueryProvider on ml utils
2018-11-28 09:56:31 +01:00
Walter Rafelsberger
6c1fd91875
[ML] Wrap controller initialization in assertions. (#26265)
- The controller tests introduced in #25382 had a flaw: If a controller initialization would fail and throw an error, that test suite wouldn't be able to clean up any stubs. So tests using the same stubs would report and error because the stubs couldn't be wrapped again.
- This PR wraps every controller initialization inside an assertion and catches those errors properly as part of the test.
2018-11-27 17:03:04 +01:00
Pete Harverson
8791856654
[ML] Fix alignment of filter icons in anomalies table (#26253)
* [ML] Fix alignment of filter icons in anomalies table

* [ML] Teak y position of icons in expanded row of table
2018-11-27 13:32:03 +00:00
Pete Harverson
d97609eaeb
[ML] Aggregate anomalies table data using configured Kibana timezone (#26192)
* [ML] Aggregate anomalies table data using configured Kibana timezone

* [ML] Move dataFormatTz prop out of controller scope
2018-11-27 11:49:47 +00:00
Pete Harverson
445ac2f12f
[ML] Adds support for kuery to job wizards (#26094)
* [ML] Adds support for kuery to job wizards

* [ML] Pass combined query and filters to multi metric model mem calc

* [ML] Edits following review
2018-11-23 14:45:39 +00:00
Lukas Olson
e36767a4b3 Move buildEsQuery to a package (#23345)
* fix: move buildEsQuery to utils

* fix: tests that I broke

* fix: add back link to the docs

* fix: don't export from ui/ and link to utils

* fix: move to a package

* fix: move error to errors.js

* fix: paths for peg task

* fix: update reference to kuery

* fix: build step for transpilation

* fix: add typescript declaration file

* fix: test

* tmp: debug individual tests

* debug: add debug stuff for reporting tests

* try to debug test

* Testing splitting reporting jobs in two

* Testing splitting each job

* Fix ci yaml

* Skipping job to check failing test

* debug - adding a catch to jobResponseHandler on report

* Testing a different job and enabling verbose mode

* Testing verbose on phantom_api skipping other CI tests

* Fix script mode

* fix: try running tests in chromium

* fix: move out of devDependencies

* fix: remove commented test

* Revert "fix: try running tests in chromium"

This reverts commit 991d46f051.

* Revert testing changes

* Fixing build for phantomjs

* Revert CI configuration to master. Remove verbose logging for tests
2018-11-22 15:24:19 +01:00
Melissa Alvarez
9ea7720b50
[ML] Ensure Anomaly Explorer and Single View do not hang by fixing TypeError: finally is not a function (#25961)
* Replace finally with catch/then to fix typeError

* update error messages
2018-11-21 11:24:24 -08:00
Pete Harverson
1b3d6ae0b3
[ML] Ensures jobs from saved searches are cloned in advanced wizard (#26002)
* [ML] Ensures jobs from saved searches are cloned in advanced wizard

* [ML] Use useSavedSearch property for setting job created_by
2018-11-21 15:53:47 +00:00
Walter Rafelsberger
ac9c375662
[ML] Fix cleanup of mlAnomaliesTableService listeners in Time Series Viewer. (#25967)
- A missing call to componentWillUnmount() in the Single Series Viewer didn't properly clean up the listeners for mlAnomaliesTableService so when switching to the Anomaly Explorer the page would crash if the user hovered the Anomaly Table.
- This fixes it by calling ReactDOM.unmountComponentAtNode(element[0]); in element.on('$destroy', () => { ... }) to trigger the cleanup.
- Additionally, as a safety measure, mlChartTooltipService.show() now silently fails if target is undefined.
2018-11-21 11:32:23 +01:00
Pete Harverson
9ca8cffb61
[ML] Fixes font size regressions following less to sass conversion (#25945) 2018-11-21 09:34:41 +00:00
Spencer
88af88ccdb
[chrome/breadcrumbs] migrate to the new platform (#25914)
* [chrome/breadcrumbs] migrate to the new platform

* expand some comments

* typo

* [apm] fix breadcrumbs tests
2018-11-20 13:54:59 -08:00
Caroline Horn
a5076b5172
Vis public UI LESS to SASS (#25333) 2018-11-19 16:05:52 -05:00