Commit graph

3086 commits

Author SHA1 Message Date
Catherine Liu
88894e11d9
[Canvas] Fixes bring to front shortcut label (#67374) (#67565)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 10:41:44 -07:00
Jean-Louis Leysens
bc82d6d0b1
[7.6] Fix ace a11y listener (#60639) (#60726)
* Fix ace a11y listener (#60639)

Also move the hook use_ui_ace_keyboard_mode.tsx into es_ui_shared

This was defined (and used) in both Console and SearchProfiler.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/legacy/core_plugins/console/public/np_ready/application/containers/editor/legacy/use_ui_ace_keyboard_mode.tsx
#	src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx
#	src/plugins/console/public/application/containers/editor/legacy/use_ui_ace_keyboard_mode.tsx
#	src/plugins/es_ui_shared/public/index.ts
#	src/plugins/es_ui_shared/public/use_ui_ace_keyboard_mode.tsx
#	x-pack/legacy/plugins/searchprofiler/public/np_ready/application/editor/use_ui_ace_keyboard_mode.tsx
#	x-pack/plugins/searchprofiler/public/application/editor/editor.tsx

* Remove unused translations
2020-03-22 00:57:19 +01:00
Ahmad Bamieh
2d9187fced
[i18n] latest translation (#59012)
* 7.6 translations

* latest translations
2020-03-02 15:11:22 +02:00
Søren Louv-Jansen
50f15a2357
[APM] Fix timeout in APM setup (#58727) (#58782)
* [APM] Fix timeout in APM setup

* Update plugin.ts

# Conflicts:
#	x-pack/plugins/apm/server/lib/index_pattern/get_dynamic_index_pattern.ts
#	x-pack/plugins/apm/server/lib/settings/agent_configuration/create_agent_config_index.ts
#	x-pack/plugins/apm/server/plugin.ts
2020-02-27 16:10:57 -08:00
Felix Stürmer
4bb6c08e26
[Logs + Metrics UI] Fix incomplete config schema and async usa… (#58576)
This fixes the configuration file schema of the infra plugin in the new platform shim.
2020-02-26 12:47:18 +01:00
Dario Gieselaar
a0f212d441
[7.6] [APM] Add xpack.apm.enabled key to config schema (#575… (#57680)
Closes #57418.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-25 21:30:08 +01:00
Joe Reuter
d523039764
[7.6] Remove injected reference from home app (#57836) (#57996) 2020-02-20 13:48:03 +01:00
Joe Portner
63bf010411
Fix login redirect for expired sessions (#57157) (#57757) 2020-02-15 23:00:06 -05:00
Larry Gregory
c1cfd6e280
[7.6] Security - Inject logout url (#57201) (#57211) 2020-02-10 12:53:33 -05:00
Larry Gregory
809d55e430
[7.6] Logout should redirect to the login screen at the server… (#57191)
* logout should redirect to the login screen at the server base path

* Revert "logout should redirect to the login screen at the server base path"

This reverts commit c80716be6e.

* fix logout url in nav control service

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 08:22:51 -05:00
Rudolf Meijering
18a3cee1cf
Perform successful Elasticsearch version check before migrations (#51311) (#56629)
* Convert parts of Elasticsearch version check to ts
* Move ES version check to NP
* Improve types
* Wait till for compatible ES nodes before SO migrations
* Don't wait for ES compatibility if skipMigrations=true
* Legacy Elasticsearch plugin integration test
* Make ES compatibility check and migrations logging more visible
* Test for isCompatible=false when ES version check throws
* Start pollEsNodesVersion immediately
* Refactor pollEsNodesVersion
2020-02-03 18:30:51 +01:00
Xavier Mouligneau
927ba3468c
[SIEM] [Detections] [BUG] Feedback to user about generated encryption key (#56464) (#56572)
* wip

* Expose whether the encryption key is randomly generated for saved-objects

* give feedback to user if encryption key is randomly generated

* remove package distributable

* update msg for no api integration key

* Update x-pack/plugins/encrypted_saved_objects/server/config.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* review II

* fix type

* rename encryptionKeyRandomlyGenerated ->  usingEphemeralEncryptionKey

* fix test and mistake

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-02-01 08:03:23 -05:00
Larry Gregory
680b8c4c5a
[7.6] [Docs] - Deprecate kibana_user role (#54606) (#56545)
* rename kibana_user => kibana_admin

* add migration note

* [DOCS] Fixes link for use in multiple books

* i18n fixes after merge from master

* fix i18n

* Apply suggestions from code review

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-01-31 16:17:23 -05:00
Greg Thompson
8481b8fb62
[7.6] Upgrade EUI to v18.2.2 (#56206)
* eui to 18.2.2

* Homepage adjustment to match new icons

* Homepage adjustment to match new icons

* i18n fix

* i18n fix

Co-authored-by: dave.snider@gmail.com <dave.snider@gmail.com>
2020-01-29 09:43:02 -06:00
Andrew Goldstein
ff7aa450d9
[7.6] [SIEM] Overview page feedback (#56261) (#56277)
* [SIEM] Overview page feedback (#56261)

## [SIEM] Overview page feedback

Implements feedback and fixes to the Overview page

### Overview (default theme)

![01-overview-default-theme](https://user-images.githubusercontent.com/4459398/73315509-899c5500-41ed-11ea-9949-82853dd4ba59.png)

### Overview (dark theme)

![02-overview-dark-theme](https://user-images.githubusercontent.com/4459398/73315527-902acc80-41ed-11ea-9701-6a2c5fa40cce.png)

## Highlights

* The new order of widgets is Signals, Alerts, Events, Host Events, Network events, per https://github.com/elastic/siem-team/issues/494

* Changed the default `External alerts count` `Stack by` to `event.module` https://github.com/elastic/siem-team/issues/491

*  Added `event.module` to the `Events count` histogram https://github.com/elastic/siem-team/issues/491

* Widget titles will no longer include the currently selected `Stack by option`. The widgets will use the same static title text that appears on the other pages (i.e.. `Signals count`, `External alerts count`, and `Events count`) https://github.com/elastic/siem-team/issues/491

* The `Signals count` includes a `Stack by` that defaults to `signal.rule.threat.tatic.name`

* Standardized on a 300px widget height for all histograms in the app (thanks @MichaelMarcialis for paring on this!)

* The `Open as duplicate timeline` action is `Recent timelines` is now only shown when hovering over a recent timeline

## Loading States

* The `Recent timelines` and `Security news` widgets now use the horizontal bar loading indicator

* The `Host events` and `Network events` widgets now use the horizontal bar loading indicator

* The `Host events` and `Network events` Showing _n_ events subtitles are now hidden on initial load

* The counts in the `Host events` and `Network events` Showing _n_ events subtitles are now hidden on initial load

* We no longer hide some histogram subtitles after initial load, to prevent shifting of content when a user makes a `Stack by` selection

## News Feed Error State

![news-feed-error-state](https://user-images.githubusercontent.com/4459398/73316060-1e538280-41ef-11ea-83f5-b8d6e9fa3741.png)

* Fixed an issue where the `Security news` header was hidden when an invalid URL is configured

* Added a space between the word `via` and the `SIEM advanced settings` link

* Removed the capital “N” from "News" in the error message

## Misc Visual Changes

* Fixed text truncation of the `Severity` column in the `Detections` page's `Signals` table

* Added the “showing” subtitle to the `Signals count` histogram on the Detections page

* Increased the `Stack by` histogram selector and the `View signals | alerts | events' buttons from 8 to 24px

* Tweaked the border rendering in the Overview `Host Events` and `Network events` widget headers

* Added 8px of spacing between the Overview `Host Events` and `Network events` widget accordion headers and their contents

* Fixed an issue where the `Host events` and `Networ events` widgets didn't render in ie11 https://github.com/elastic/siem-team/issues/499

## Non-Visual Fixes

* Removed an incorrect usage of `usememo`

* Removed the placeholder client-side username query from `x-pack/legacy/plugins/siem/public/components/recent_timelines/index.tsx`

* Updated the query of the Overview `Host events` widget to filter by "host.name exists"

* Updated the query of the Overview `Network events` widget to filter by "source.ip exists or destination.ip : exists"

* Removed the following unused translations that were failing the i18n Compatibility Checks:

```
xpack.siem.overview.alertsCountByTitle
xpack.siem.overview.eventsCountByTitle
xpack.siem.overview.signalsByCategoryTitle
```

The following files were updated:

* `x-pack/plugins/translations/translations/zh-CN.json`
* `x-pack/plugins/translations/translations/ja-JP.json`
2020-01-29 02:43:38 -07:00
Matthias Wilhelm
285c3acdae
Don't throw exception when refreshing fields of an indexpattern (#55836) (#56066)
* An exception when refreshing fields of an selected index pattern caused Discover to load incompletely
* Remove throw Exception code
* Add index ID + Title to the error message
2020-01-28 05:40:12 +01:00
Xavier Mouligneau
9476844d04
[7.6] [SIEM] Detections bugs rules (#55885) (#55934)
* [SIEM] Detections bugs rules (#55885)

* Fix flow of all rules

* fix the multitude http request + fix table timeline re-rendering

* Update x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.tsx

Co-Authored-By: Garrett Spong <spong@users.noreply.github.com>

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>

* fix i18n

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2020-01-24 19:59:58 -05:00
Ahmad Bamieh
2e229c628d
[i18n] 7.6 translations (#55832) 2020-01-24 15:41:27 +02:00
patrykkopycinski
2d0e9fe7fc
[SIEM] Overview Page - Expand Winlogbeat Stats (#55696) (#55762)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-24 10:06:41 +01:00
patrykkopycinski
57b1ce9e13
[SIEM] Implement 7.6 Aggregated Feedback (#55347) (#55574) 2020-01-22 18:26:18 +01:00
Thomas Neirynck
56e28e7c8b
[File upload] Enforce file-type check in file dialog (#55063) (#55450) 2020-01-21 16:37:08 -05:00
Gidi Meir Morris
052fbae2cd
removes CTA from Task Manager info message (#55334) (#55344)
removes CTA from Task Manager info message
2020-01-20 22:39:37 +00:00
Joe Reuter
dc0dfe7b1d
Reverse dependency of home plugin and apm/ml/cloud (#52883) (#54889) 2020-01-15 11:44:27 +01:00
CJ Cenizal
c6af2b5dcc
[7.x] [Index Management] Add Mappings Editor to Index Template Wizard (#47562) (#54864)
* Skip flakey index template component integration tests.
2020-01-14 22:44:48 -08:00
Andrew Goldstein
fd2e7b1fb8
[SIEM] New Overview Page (#54783) (#54873)
## [SIEM] Overview Page "1.5"

A redesigned SIEM Overview page that includes `Recent timelines`, a `Security news` feed, visualizations, and rolled-up event counts

![overview-day](https://user-images.githubusercontent.com/4459398/72396016-90f53600-36f8-11ea-9b41-6d54d09de589.png)

![overview-night](https://user-images.githubusercontent.com/4459398/72394575-fb57a780-36f3-11ea-868e-8fcd2c5c4543.png)

### Overview enhancements
- Added the global Search bar and Date picker to the Overview page
- New `Recent timelines` widget affords quick access to favorite and recently modified timelines
- New `Security news` widget
- New Kibana advanced settings (toggle switch) for enabling or disabling the news widget and configuring the news URL
![news-settings](https://user-images.githubusercontent.com/4459398/72362776-fd4c4700-36b0-11ea-805b-3c7353f2c1cd.png)
- New `Events count by dataset` widget
- Updated the `Host Events` and `Network Events` widgets to integrate with the Search bar and date picker input
- Enhanced the `Host Events` and `Network Events` widgets to use an accordion paradigm that summarizes stats by source (e.g. `Auditbeat`, `Endgame`)
- Enhanced the `Host Events` and `Network Events` widgets to visualize relative percentages of events collected as progress bars
- New `Alerts count by category` widget
- New `Signals count by MITRE ATT&CK™ category` widget
- New `View events`, `View alerts`, and `View signals` navigation buttons for their respective visualizations


### FTUE enhancements
- FTUE "no data" view design refresh
![ftue](https://user-images.githubusercontent.com/4459398/72361771-43a0a680-36af-11ea-969f-5872ac4a01a1.png)
- When the FTUE "no data" page is displayed, hide all global navigation links (i.e. `Hosts`, `Network`, `Detection engine`), such that only `Overview` appears in the global nav
- App Help popover design refresh
![help](https://user-images.githubusercontent.com/4459398/72362132-d80b0900-36af-11ea-9b58-1fd3b923b7c8.png)
- Removed the `Beta` badge and `Security Information & Event Management with the Elastic Stack` from the Overview header

- Tested in Chrome `79.0.3945.117`, Firefox `72.0.1`, and Safari `13.0.4`

## Known issues

- The `siem:newsFeedUrl` advanced setting is defaulted to `https://feeds.elastic.co/kibana`
- The `Signals count by MITRE ATT&CK™ category` visualization does not display all categories
- The `Signals count by MITRE ATT&CK™ category` visualization may require a different index pattern
- `EuiButtonGroup` throwing a `Can't perform a React state update on an unmounted component` warning when switching from the Overview tab

https://github.com/elastic/siem-team/issues/484

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 22:49:27 -07:00
Greg Thompson
e0d6407bde
[7.x] Upgrade EUI to v18.2.0 (#54786) (#54869)
* Upgrade EUI to v18.2.0 (#54786)

* 18.2.0

* ts update

* Updated `euiColorVis0`

* Update `euiColorVis1`

* Updating `euiColorVis2`

* Updated `euiColorVis3`

* Updated the rest

* Updated hard-coded viz palette hexes to latest

* src snapshot updates

* x-pack test updates

* mock jest fn

* Updated two vegalite visualization screenshots

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

* snapshot

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-01-14 22:53:57 -06:00
Chandler Prall
2c66ffb3b8 [7.x] Backport/7.x/pr 54042 (#54799)
* Upgraded EUI to 18.0.0

* Fix breaks from `palette._.colors` changes

* snapshots

* Updated hard coded hex color codes in tests, fixed TS errors

* Updated a functional test's selector; added (BSD-3-Clause AND Apache-2.0) to license checker whitelist

* Functional test selector update

* Updated vega browser-ci tests for palette changes

* One more location for EUI package number update and yarn lock

* Fixed lurking [but introduced] TypeScript logic bug

* Swap a prop definition for the same value but tied closer to its source

* updates for backport

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2020-01-14 18:53:06 -05:00
Angela Chuang
f95f3f39b9
[SIEM] Histogram enhancement (#54544) (#54791)
* generic histogram container

* generic histogram container

* rename params

* fix inspect

* fix update with timerange

* clean up props

* send stackByField to server side

* fix inspect button

* helper node xavier

* fix DNS histogram

* fix DNS query params

* move utils for fetch data into containers

* cleanup graphql template on client side

* rename grqphql data

* i18n

* fix type

* fix i18n

* fix i18n

* fix subtitle

* fix subtitle

* fix i18n

* fix for reviews

* fix types

* remove unused test

* fix integration

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-15 04:46:40 +08:00
Dima Arnautov
17135a6cb2
[ML] Data Visualizer redesign (#54358) (#54787)
* [ML] change basic page structure

* [ML] adjust search panel

* [ML] adjust fields_panel.tsx

* [ML] card icon styles

* [ML] styles

* [ML] adjust actions_panel.tsx

* Update styling of panels, spacing

* [ML] change basic page structure

* [ML] adjust search panel

* [ML] adjust fields_panel.tsx

* [ML] card icon styles

* [ML] styles

* [ML] adjust actions_panel.tsx

* [ML] fix i18n

* [ML] fix styles

* [ML] adjust top values styles

* [ML] remove conflicts artifacts

* Use EuiBorderColor

* [ML] fix i18n

* [ML] fix i18n

* [ML] fix counters

* [ML] fixed width for sample size select

* [ML] fix layout for file viz

* [ML] fix empty cards rendering

* Update text styling and spacing

* [ML] fix field stats card

* [ML] fix counter for showAllFields

* [ML] reset title for the badge

* [ML] boolean_content.tsx with the bar chart

* [ML] fix counters

Co-authored-by: DeFazio <michael.defazio@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: DeFazio <michael.defazio@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 21:19:32 +01:00
Wylie Conlon
f1afb6f826
[Lens] Add clear layer feature (#53627) (#54764)
* [Lens] Add clear layer feature

* Move clear / remove layer out of the context menu

* Address code review comments

* Remove xpack.lens.xyChart.deleteLayer translation

* Get rid of unused Lens translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Chris Davies <github@christophilus.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 13:32:58 -05:00
Joe Reuter
69c8aa4595
add graph sample data (#54558) (#54763) 2020-01-14 19:30:19 +01:00
Ahmad Bamieh
dec9c21c51
[i18n] integrate translation files ja and zh (#54747) 2020-01-14 18:54:14 +02:00
Corey Robertson
6c30f40c7b
[7.x] [Canvas] Enable Embeddable maps (#53971) (#54649)
* [Canvas] Enable Embeddable maps (#53971)

* Enables Embeddable maps in Canvas. Updates expressions as maps are interacted with

* Fix type check errors

* Update imports. Remove filters from initial embed expressions

* Adds hide layer functionality to canvas map embeds

* Fix typecheck error

* Fix Type check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Re-enable embeds in Canvas

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 10:16:41 -05:00
Oliver Gupte
c38ed9bfff
Service Map Data API at Runtime (#54027) (#54655)
* [APM] Runtime service maps

* Make nodes interactive

* Don't use smaller range query on initial request

* Address feedback from Ron

* Get all services separately

* Get single service as well

* Query both transactions/spans for initial request

* Optimize 'top' query for service maps

* Use agent.name from scripted metric

* adds basic loading overlay

* filter out service map node self reference edges from being rendered

* Make service map initial load time range configurable with
`xpack.apm.serviceMapInitialTimeRange` default to last 1 hour in
milliseconds

* ensure destination.address is not missing in the composite agg when
fetching sample trace ids

* wip: added incremental data fetch & progress bar

* implement progressive loading design while blocking service map interaction during loading

* adds filter that destination.address exists before fetching sample trace ids

* reduce pairs of connections to 1 bi-directional connection with arrows on both ends of the edge

* Optimize query; add update button

* Allow user interaction after 5s, auto update in that time, otherwise
show toast for user to update the map with button

* Correctly reduce nodes/connections

* - remove non-interactive state while loading
- use cytoscape element definition types

* - readability improvements to the ServiceMap component
- only show the update map button toast after last request loads

* addresses feedback for changes to the Cytoscape component

* Add span.type/span.subtype do external nodes

* PR feedback

Co-authored-by: Dario Gieselaar <d.gieselaar@gmail.com>

Co-authored-by: Dario Gieselaar <d.gieselaar@gmail.com>
2020-01-13 14:54:45 -08:00
Corey Robertson
a1aa908ae9
[CANVAS] Relax workpad schema to allow existing templates to work (#54019) (#54643)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 16:58:01 -05:00
Shahzad
9aa8e5e479
[Uptime] Monitor SSL Certificate Color version for warning (#54040) (#54637)
* update monitor list columns

* update columns

* update snaps

* enhance ui

* update SSL Cert to badge warning

* fix i18n errors

* removed unnecessary margin

* update snaps

* update ssl

* update snaps

* added test for warning state

* added test for warning state

* update test name

* update test name

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 22:21:57 +01:00
Gidi Meir Morris
28a0514ef7
migrate TaskManager Plugin to the Kibana Platform (#53869) (#54630)
Migrates the existing TaskManager plugin from Legacy to Kibana Platform.
We retain the Legacy API to prevent a breaking change, but under the hood, the legacy plugin is now using the Kibana Platform plugin.

Another reason we retain the Legacy plugin to support several features that the Platform team has yet to migrate to Kibana Platform (mapping, SO schema and migrations).

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 20:57:23 +00:00
Felix Stürmer
fd3a8fe575
[Logs UI] Add categories table to the categorization tab (#53004) (#54633)
Backports the following commits to 7.x:
 - [Logs UI] Add categories table to the categorization tab (#53004)
2020-01-13 21:47:49 +01:00
CJ Cenizal
55efa3b55f
Allow User to Cleanup Repository from UI (#53047) (#54616)
* Added repository cleanup button. Added logic for spinner while loading, added new repository request, type and telemetry metric.
2020-01-13 11:23:14 -08:00
Shahzad
63cc1a63ef
[7.x] [Uptime] Monitor details page left side title (#53529) (#54554)
* [Uptime] Monitor details page left side title (#53529)

* update API

* update query

* hide layer control and added loc tags

* update test

* remove unused comment

* update API

* remove capitalization

* style fix

* update types

* added location status number on details page

* useref instead of createRef

* update interface

* update import

* removed redundant file

* fix header for empty data

* refactor for most recent check

* remove redundant code

* remone unused translation

* update status bar

* update styling

* update snaps

* added API tests

* fix types

* fixing integration tests and a typo

* remove unused translations

* update tests

* fixed PR feedback

* update feedback

* update messaging

* update snap

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* fix missing file

* updated duplicated label

* update snap

* update test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 20:16:03 +01:00
Catherine Liu
41120ae84a
[7.x] Migrates ES Fields Route to NP (#54398) (#54609)
* Migrated es fields route to NP and added tests

* Removed extraneous import

* Removed check for index query

* Fixed broken test
2020-01-13 12:11:37 -07:00
Joe Reuter
b50e5ff4c7
[Graph] Improve error message on graph requests (#54230) (#54501) 2020-01-13 10:26:42 +01:00
Anton Dosov
5f52cf0bf3
[State Management] State syncing utilities (#53582) (#54454)
Today, apps rely on AppState and GlobalState in the ui/state_management module to deal with internal (app) and shared (global) state. These classes give apps an ability to read/write state, when is then synced to the URL as well as sessionStorage. They also react to changes in the URL and automatically update state & emit events when changes occur.

This PR introduces new state synching utilities, which together with state containers src/plugins/kibana_utils/public/state_containers will be a replacement for AppState and GlobalState in New Platform.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 10:10:56 +03:00
Larry Gregory
8b0b09a4ea
Security - Role Mappings UI (#53620) (#54534)
* Initial role mappings UI

* apply design edits

* address PR feedback

* fix type cast for number field

* Update x-pack/legacy/plugins/security/public/views/management/role_mappings/edit_role_mapping/components/mapping_info_panel/mapping_info_panel.tsx

Co-Authored-By: Joe Portner <5295965+jportner@users.noreply.github.com>

* Cleanup FTR configuration, and handle role mapping 404 errors properly

* align naming of role mappings feature check

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* add missing test assertions

* inlining feature check logic

* switch to using snapshot

* use href instead of onClick

* adding delete unit test

* consolidate href building

* unify page load error handling

* simplify initial loading state

* documenting unconditional catch blocks

* use nodes.info instead of transport.request

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* move model out of LP into NP

* convert except_field_rule to except_any_rule

* docs, take 1

* update gif

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-11 20:05:46 -05:00
Pete Harverson
73236985e0
[ML] Display anomaly actual in chart tooltip when model plot enabled (#54364) (#54465)
* [ML] Display anomaly actual in chart tooltip when model plot enabled

* [ML] Fixes translations for chart tooltip fixes

* [ML] Edits to chart tooltip div following review
2020-01-10 16:53:40 +00:00
Andrew Cholakian
40346ca0d9
[Uptime] Improve query performance with Heartbeat 7.6+ data. (#52433) (#54352)
This PR optimizes both the snapshot component and the monitor list on the overview page by using the new monitor.timespan field from elastic/beats#14778. Note that the functionality here will work with heartbeats lacking that patch, but the performance improvements will be absent.

This PR adapts the snapshot tests to use synthetically generated data which should be easier to maintain. As a result some of that code is refactored as well.

See #52433 parent issue as well.
2020-01-09 14:11:12 -06:00
DeFazio
40ca8702f6 [ML] Updates Anomaly Detection job wizard button styles, page panel and titles (#53340) (#54344)
* Update button styles, page panel and page title

* Add getJobCreatorTitle function for human readable job type name

* Add formatMessage to Create job title

* Fix translation test

* Update tests
2020-01-09 15:23:58 +00:00
Steph Milovic
4fbf9c7caa
[SIEM] [Case] Case workflow api schema (#51535) (#54304) 2020-01-09 07:22:31 -07:00
Matthew Kime
7479e2b487
Management - New platform api (#52579) (#54321)
* implement management new platform api
2020-01-08 23:01:35 -06:00
Mikhail Shustov
5aad2f6a8f
Don't expose Elasticsearch client as Observable (#53824) (#54228)
* expose ES clients without observables

* expose observable-less api to plugins

* update core api and mocks

* update plugins

* NP SO & legacy use updated API

* update SO tests

* update TSDocs

* update types

* update docs

* document createCluster analog in np

* typo
2020-01-08 13:26:02 +03:00