Commit graph

1053 commits

Author SHA1 Message Date
Chris Roberson
81511dd8ff
[Monitoring] Do not use the normalized derivative value (#27416)
* Use the non normalized value

* Update keys used in tests
2018-12-21 10:57:35 -05:00
Melissa Alvarez
9a31e00921
filedataviz newMlJob link only shown with permissions (#27612) 2018-12-21 08:57:19 -07:00
Walter Rafelsberger
a2ab3ba756
[ML] Only set the estimated model memory limit if certain conditions apply. (#27670)
When cloning a job, the multi metric wizard would re-estimate the model memory limit and overwrite a possible customized limit. This PR fixes it by only setting the estimated limit when certain conditions apply: It only gets set to the estimation if the current limit is either the default value or the value of the previous estimation. That's our best guess if the value hasn't been customized. The check doesn't get it if the user intentionally for whatever reason (re)set the value to either the default or pervious estimate.
2018-12-21 16:29:38 +01:00
James Gowdy
0923a469f1
[ML] Displaying JSON parsing errors when importing (#27577) 2018-12-21 14:54:01 +00:00
Aaron Caldwell
074a42749b
Confirm GIS app enabled and wait until license info enabled before passing license info through to maps app (#27607) 2018-12-21 07:22:25 -07:00
Søren Louv-Jansen
c7bd296ac4
[APM] Add missing trace_id to transaction histogram (#27591)
* [APM] Add missing trace_id to transaction histogram

* Handle 404 properly

* Fix `unhandled` issue

* Fix tests
2018-12-21 14:21:07 +01:00
Walter Rafelsberger
7971b15cec
[ML] Fix audit messages. (#27575) 2018-12-21 10:59:52 +01:00
Walter Rafelsberger
8fb34fc752
[ML] Fixes watch creation for advanced job wizard. (#27594)
Fixes a regression where the advanced job creation wizard wouldn't trigger the watch creation flyout in the jobs list.

The advanced job creation wizard is still based on angularjs and triggered broadcast events to trigger the watch creation, but with the new React based jobs list the listeners for those events were gone.

This PR fixes it by passing on the jobs list wrapping angular scope to be able to subscribe to the events from the React based JobsListView component.

Passing on angular's scope down to React components should be considered a workaround so we don't have to refactor all affected code to use another event system. Once the advanced job wizard gets ported to React too this should be revisited.
2018-12-21 10:18:20 +01:00
Pete Harverson
9b4a5a07d8
[ML] Handle removal of backend ml.enabled node attribute (#27604) 2018-12-21 09:13:30 +00:00
Spencer
b807b09f04
[uiExports/styleSheetPaths] avoid string concatenation for paths (#27471) 2018-12-20 14:58:13 -08:00
CJ Cenizal
66b3e48c6c
Refine warning copy in Remote Clusters. (#27620) 2018-12-20 12:22:28 -08:00
CJ Cenizal
d50434a3bb
Remove errant slash from Index Management detail panel. (#27605) 2018-12-20 12:21:20 -08:00
Clint Andrew Hall
7f3e632b11
[i18n][prereq] Refactor Elements to TypeScript (#26134)
This was approved before I rebased... merging to avoid more confusion.
2018-12-20 11:56:46 -06:00
Tal Levy
88aa1434b5
Add ILM privileges (#27461)
This commit adds the `manage_ilm`, `read_ilm` cluster
privileges, and the `manage_ilm` index privilege.

these were introduced into ES by:
https://github.com/elastic/elasticsearch/pull/36493
2018-12-20 08:53:46 -08:00
Melissa Alvarez
5e84fe1861
Add permissin callout to joblist datafeed preview (#27545) 2018-12-20 09:35:42 -07:00
Melissa Alvarez
a730d694d6
[ML] Fix import modal flex items overflowing in IE11 (#27529)
* Fix import modal for IE11

* update tests
2018-12-20 09:29:32 -07:00
Catherine Liu
317435da0b
Fixes page manager for workpads without style property (#27556)
* Added fallback value for workpadCSS prop

* Added fallback to value for workpad css in page manager
2018-12-20 09:25:14 -07:00
Chris Roberson
48384bb4c5
[Monitoring] Resolve some logstash UI regressions (#27530)
* Resolve some logstash UI regressions

* Re-run the setup function when attributes change
2018-12-20 10:17:36 -05:00
Søren Louv-Jansen
2e44885e82
[APM] Fix occurrence typo (#27571) 2018-12-20 13:12:44 +01:00
Pete Harverson
d03df07a68
[ML] Fix single metric job wizard y axis width for fractional values (#27521) 2018-12-20 10:13:36 +00:00
tibmt
16033357c2 translate Machine Learning datavisualizer (#25527)
* translate Machine Learning datavisualizer

* change some ids, change some structures and dont translate unnesesary scripts

* update i18nrc.json

* update datavisualizer_selector.js - remove eslint-disable

* add html_ prefix to values containing html

* use i18n angular service.

translate missed labels

* Fix syntax in i18n-values

* Replace FormatedMessage to intl.formatMessage for  betaBadgeLabel

* Fix issue
2018-12-20 12:53:44 +03:00
Walter Rafelsberger
5a7ab185f9
[ML] Adds a check if the current user can access the indexpattern required to clone a job. (#27496)
Adds a check if all index patterns necessary to clone a job are available for the current user. The check will only allow cloning of a job if the user has the right permissions and can still access the indexPattern the job was created for. An indexPattern could either have been deleted since the the job was created or the current user doesn't have the required permissions to access the indexPattern. The "Clone Job" action in the jobs list action menu will be greyed out and unavailable for that job.
2018-12-20 10:34:27 +01:00
Søren Louv-Jansen
998afde6e4
[APM] Link from error to transaction (#27227) 2018-12-20 00:47:13 +01:00
Thomas Neirynck
ffc8bae820
[GIS] Add Maps Plugin (#24804)
This adds the MVP of the Phase 1 version of the Maps Plugin to Kibana (https://github.com/elastic/kibana/issues/19582).

This is added as a new Stack Feature, requiring a basic license.
2018-12-19 16:14:41 -05:00
Jason Rhodes
e8f7d9e8b7
APM Metrics, UI Baseline (#26608)
* Service detail page refactor with TS conversions

* Adds error group list back to the service details page tabs

* Fixes after rebasing upstream master

* Adds integrations menu and flyouts, with no-transaction ML job creation and lookup

* WIP adds memory usage chart with fake data

* Adds error group distribution chart to metrics tab

* Metrics "memory" chart data flow from server to chart

* Server side query and transform set up for cpu charts

* CPU charts created

* Review feedback and watcher flyout

* Server tests added, broken tests fixed

* Review feedback

* Fixes up type problems

* Converts metric key paths to constants

* Fixes error group type issue after rebasing from master

* Makes transaction type filterable on transactions list tab

* Review feedback

* Chart formatting tweaks and fixes

* Fixes y-axis ticks for GB chart

* Restores machine learning annotations with some test fixes

* Continued styling and other review based changes

* More review fixes and cleanup

* Updated chartGroupProps -> hoverXHandlers

* Removes "type" column from transaction list table

* Re-centers around using urlParams

* Fixes panel item references in service integrations menu

* Serves default transaction type from /transactions route

* Reverts tooltip series ordering change

* Adds a clarification note about route config

* Makes it possible to request transaction chart data without specifying type

* Fixes empty series problem for memory chart

* Fixes tests

* Review feedback

* Fixes after rebase

* Replaces boolean casted array#find with array#some
2018-12-19 13:27:21 -05:00
Josh Dover
e0a2ddd342
Combine node and cluster warnings in Upgrade Assistant (#27508) 2018-12-19 12:24:25 -06:00
Chris Roberson
8283ea5c30
[Monitoring] Update missed logstash pages to EUI (#27258)
* Update logstash to EUI pages

* Adding missed functionality

* Ensure columns are sortable and update the nodes view to use the right base controller methods
2018-12-19 13:14:46 -05:00
Melissa Alvarez
24cb299ba4
[ML] Fixes sort on Calendars list events column so that it is done numerically (#27517)
* Ensure calendar list events col sorted numerically

* update corresponding tests
2018-12-19 11:12:05 -07:00
Catherine Liu
2759e3505c
Fixes PropType error in toggle arg (#27514) 2018-12-19 10:48:12 -07:00
Catherine Liu
0acb406442
Revert "Updates Canvas Icon in Sidebar" (#27516)
* Revert "Adds release notes for 7.0.0-alpha2 (#27237)"

This reverts commit aad71f026b.

* Revert "Switches to new Canvas logo in sidebar nav (#27422)"

This reverts commit a40b870426.
2018-12-19 10:20:46 -07:00
Catherine Liu
a40b870426
Switches to new Canvas logo in sidebar nav (#27422) 2018-12-19 09:50:59 -07:00
Court Ewing
948932ae45
[security] Token auth provider (#26997)
* [security] Token auth provider

From a user perspective, the token provider behaves similarly to the
basic provider in that it can power the native login experience and can
also be used for API calls via the authorization header (albeit with the
Bearer realm).

From a technical perspective, the token provider deals with
authentication via the token service in Elasticsearch, so while it
handles user credentials in the case of login, a temporary, refreshable
access token is stored in the session cookie instead. This means that
when you log out, not only is the cookie invalidated, but the token
itself cannot be reused.

* token provider integration tests

* include token api integration tests by default

* remove unused ProviderOptions from typedef

* assert that valid login sets an authorization header

* unit tests for refresh token and failure cases

* integration tests for headers and sessions

* clean up login/logout tests for consistent setup functions

* test for header rejection scenarios
2018-12-19 11:13:29 -05:00
Nox911
9d2deb2176
[i18n] Translate ML - New Job - recognize (#27305)
* Translate new_job -> recognize

* Resolve issues from comments

* Fix issue
2018-12-19 17:34:02 +03:00
Maryia Lapata
cc36afd5ec
Translate Feedback menu (#27485) 2018-12-19 17:15:58 +03:00
Maryia Lapata
7977257920
[i18n] APM translations (Part 2) (#27400)
* Translations for chartSelectors

* Update ids

* Update ids
2018-12-19 17:12:53 +03:00
Pete Harverson
bfa80411bb
[ML] Fix data visualizer to obtain total hit count as int (#27490) 2018-12-19 13:42:04 +00:00
Larry Gregory
2bbc821024
[Canvas] - Allow timelion data source to use configured certificateAuthorities (#26809)
* allow timelion data source to use configured certificateAuthorities

* make it obvious that this is a temporary measure

* fix lint error

* Update src/legacy/core_plugins/interpreter/server/lib/create_handlers.js

Co-Authored-By: legrego <lgregorydev@gmail.com>

* fix lint error from comment updated via GH
2018-12-19 07:56:14 -05:00
Pete Harverson
746ed07505
[ML] Fixes job list page index when deleting jobs off last page (#27481) 2018-12-19 11:05:42 +00:00
Walter Rafelsberger
3f2d08e8da
[ML] Annotations UI Bugfixes (#27477)
- Fixes the default sorting of the annotations table to sort by starting timestamp.
- Fixes sorting of the label column by adding a "Label" column header.
- Fixes creating annotations when starting over model bounds by setting pointer-events: none to non-interactive chart elements like model bound areas and lines
- Fixes hovering of anomaly markers on top of annotation by changing the order of SVG wrapper elements in the Single Metric Chart.
- Fixes a regression and re-enables the display of the labels in the annotation chart in Single Metric Viewer.
- Fixes missing background color of annotation labels in Firefox/IE.
2018-12-19 11:18:50 +01:00
Nox911
6d38da472f
[i18n] Translate ML - New Job(part_1) (#25647)
* Translate ml -> new_job(part_1)

* resolve review comments

* resolve review comments

* move html containing directive from values

* add description to label
2018-12-19 13:08:47 +03:00
CJ Cenizal
2371e58590
[CCR] Remote Clusters and Cross-cluster Replication apps (#26777) 2018-12-18 17:59:10 -08:00
Oliver Gupte
9df85816c0
[APM] fixes #27117 by setting name property when defining table columns (#27443) 2018-12-18 17:17:15 -08:00
Søren Louv-Jansen
a683791da0
[Home] Add Cloud apmServerUrl and secretToken to APM Getting Started Guide (#27133)
* [APM] Moving files into folders

* [APM] Display apmServerUrl and secretToken in Getting Started guide

* Add secret_token to java

* Rename “client” to "agent"

* Conditionally get config
2018-12-19 01:36:35 +01:00
Robert Monfera
1e7740ae4a [Canvas][Layout Engine] Persistent grouping (#25854)
* Canvas element grouping (squashed)
fix: don't allow a tilted group
feat: allow rotation as long as it's a multiple of 90 degrees
same as previous but recursively
minor refactor - predicate
minor refactor - removed if
minor refactor - extracted groupedShape
minor refactor - extracted out magic; temporarily only enable 0 degree orientations
minor refactor - recurse
minor refactor - ignore annotations
minor refactor - simplify recursion
minor refactor - simplify recursion 2
removed key gestures
remove ancestors 1
remove ancestors 2
remove ancestors 3
remove ancestors 4

* lint

* separate elements and groups in storage

* renamed `element...` to `node...` (except exported names and action payload props, for now)

* be able to remove a group

* fixing group deletion

* not re-persisting unnecessarily

* persist / unpersist group right on the keyboard action

* solving inverted cascading for backward compatibility

* fix failing test case

* page cloning with group trees of arbitrary depth

* extracted out cloneSubgraphs

* basic copy-paste that handles a grouping tree of arbitrary depth

* fix: when legacy dataset doesn't have `groups`, it should avoid an `undefined`

* PR feedback: regularize group IDs

* lint: curlies

* schemaVersion bump

* copy/paste: restore selection and 10px offset of newly pasted element

* - fix regression with ad hoc groups
- fix copy/paste offsetting

* PR feedback: don't persist node `type` and group `expression`

* chore: remove commented out code

* chore: switch Object.entries to Object.keys

* fix: handle undefined value

this might be caused by a race condition or something. this fix is probably just covering up some other bug :(
2018-12-18 16:25:02 -07:00
Josh Dover
4d295c7923
Upgrade assistant - Phase 1 (#25168)
* Get basic scaffolding working

* Wire up cluster checkup data

* Add types for elasticsearch plugin

* Implement basics of checkup tab

* Update style of deprecations

* Add copy and reload button to checkup

* Add filtering by warning level

* Add deprecation logging tab

* Copy updates and cleanup

* Type cleanup

* Move deprecation logging to overview tab

* Make filters togglable

* Move sections into tabs and add support for grouping

* Cleanup and add clearer labels

* Use tables for message grouping

* Cleanup and small fixes

* Allow console to load relative URLs

* Add reindex in console button to reindex tasks

* Merge documentation UI and uiButtons

* Fix tests

* Filter bar tweaks

* Filter out index settings that can't be set

* Fix types

* Add tests for deprecation_logging

* Add tests for reindex templates

* Make KibanaConfig generic

* Simplify integration test

* Finish backend unit tests

* Fixup types

* Fix uiButton updating for reindex items

* Fixed background color stretching

* Pulling tabs out and re-ordering filter buttons

* Making accordions more item-list like

* Turned Healths into Badges

- Couldn’t do the conversion within the cell because it only passed color

* Fix overflow issue

* Optional filter and expand/collapse controls

* Reorganizing

- Added placeholder for moving action button up into accordion header
- Removed repetitive message name outputs
- Slightly better listing of each message when sorting by index
- Only showing number of severity when sorting by index
  - Still need to allow showing all severity levels
- Added indice count when sorting by issue

* Putting `Deprecation logging` in a `EuiDescribedFormGroup`

* Added some stats, empty prompts, and all clear prompt

* Added docs link

* Cleaned up sass files

* Revert changes to fake_deprecations

* Update blacklisted settings

* wip

* Move data fetching and tab control

* Wire up overview summary

* Cleanup docs/uiButtons + move actions to index table

* Add expand/collapse all functionality

* Wire up search box

* Wire up severity indicators

* Fix types

* Round out functional tests

* Fix fake data

* Remove info deprecation level

* Fix extra space on cluster tab control bar

* Cleanup code and localize majority of UI controls

* Change overview tab to steps layout

* Update copy

* Localize overview tab

* Complete localization of checkup tabs

* Make ES version dynamic based on branch

* Add pagination to checkup tabs

* Rename checkup -> assistant

* Cleanup filter and group by bars

* WIP UI unit tests

* Copy tweaks

* Fix i18n formatting issues

* Update tests for copy

* Add tests for remaining UI

* Fix pagination w/ filter changes + table button color

* Small cleanup

* Add reindex button to old index deprecations

* Add shrunken indices setting to copy settings blacklist for #18469

* Add next steps to overview tab + update copy

* Remove usage of migration assistance API

* Use all/critical toggle for filter buttons

* Cloud upgrade copy

* Translate reindex button

* Remove hacked EUI type

* Show incomplete banner on all tabs

* Update copy for waiting for next version

* Review comments

* Update deprecation level type

* Update checkup tab snapshots

* Remove dependencies on types from #25168

* Use types from new global type defs

* Remove 'Reindex in Console' button

* Remove unused variable
2018-12-18 17:08:06 -06:00
Melissa Alvarez
2521ac92aa
startDatafeed modal set maxWidth false (#27438) 2018-12-18 15:52:57 -07:00
Oliver Gupte
f522bbafe8
[APM] Link Transaction to Infra & Logging with action menu (#27291)
* [APM] fixes #26574 by adding an Action menu which links a transaction to the Infra & Logging UIs

* [APM]
- remove link to host metrics filterd by trace id until supported
- replace ts-optchain with _.get
- remove old, unreferenced ActionMenu dead code
- add unit tests

* [APM] Make sure the apm index pattern filter is passed thru via the Discover link

* [APM] refactored DiscoverButton and TransactionActionMenu to use new QueryWithIndexPattern component to pass along the correct index pattern via the discover link
2018-12-18 14:35:34 -08:00
Clint Andrew Hall
626ba78b5f
[Canvas] Fix SQL issues in sample data (#27161)
Fixing sample data.
2018-12-18 15:19:47 -06: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
Aaron Caldwell
d769722d30
Enh/zoom level message (#26267)
Adds zoom messaging guidance for both Region & Coordinate maps upon reaching zoom level 10. Previous behavior: user reaches zoom level 10 and zoom is disabled. Current behavior: user reaches zoom level 10, zoom is still disabled however the user is also presented a pop-up (toast) with links for guidance on using EMS or their own custom map services

* Add logic to support showing zoom message for ems tms at zoom level 10

* Add user notification/warning on reaching zoom level 10

* Determine whether or not to show zoom message in service settings and pass through

* Add/remove oss zoom behavior as layer is added/removed to leaflet

* Allow user to suppress zoom warning for this session

* Functional tests for zoom warning

* A few requested changes to the toast format, wording and method of suppression (now a link)

* Update functional zoom tests extensively accounting for toast timing and strange zoom in/out behavior

* Revise zoom msg bool logic to use origin leveraged in service settings

* Update zoom message for i18n compliance

* Open zoom warning links in new tab

* Update i18n defaultMessage to use single-quote string

* Set warning toggle flush left

* String instead of curly brace string?

* Update messaging to include more guidance around custom map services. Move zoom messaging over to separate file
2018-12-18 13:44:19 -07:00