Commit graph

9677 commits

Author SHA1 Message Date
Ryland Herrick
d8d24be3fb
[Security Solution][Lists] More composable hooks/utilities (#70372)
* Add wrapper function to make an AbortSignal arg optional

Components commonly do not care about aborting a request, but are
required to pass `{ signal: new AbortController().signal }` anyway. This
addresses that use case.

* Adds hook for retrieving the component's mount status

This is useful for dealing with asynchronous tasks that may complete
after the invoking component has been unmounted. Using this hook,
callbacks can determine whether they're currently unmounted, i.e.
whether it's safe to set state or not.

* Add our own implemetation of useAsync

This does not suffer from the Typescript issues that the react-use
implementation had, and is generally a cleaner hook than useAsyncTask as
it makes no assumptions about the underlying function.

* Update exported Lists API hooks to use useAsync and withOptionalSignal

Removes the now-unused useAsyncTask as well.

* Add some JSDoc for our new functions
2020-07-01 11:27:08 -05:00
Spencer
bc802c38ee skip flaky suite (#66389) 2020-07-01 09:02:38 -07:00
Sandra Gonzales
275fb9731d
[Ingest Manager] add _meta field to index templates (#70319)
* add _meta field to index templates

* fix typescript issue

* make package an object

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 11:53:24 -04:00
Ahmad Bamieh
2212beba68
[i18n] integrate new translations + new i18n check #70193 (#70423)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 18:48:41 +03:00
Shahzad
518e88cf28
update (#70424) 2020-07-01 13:20:02 +01:00
Felix Stürmer
e70bc81998
[Logs UI] Avoid CCS-incompatible index name resolution (#70179)
This fixes #70048 by avoiding a CCS-incompatible ES API call when determining the existence of log indices.
2020-07-01 14:05:29 +02:00
Vadim Dalecky
8a6a55097d
Enable "Explore underlying data" actions for Lens visualizations (#70047)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

* feat: 🎸 enable "Explore underlying data" action for Lens vis

* test: 💍 make tests green again

* refactor: 💡 rename trigger contexts

* chore: 🤖 fix TypeScript errors

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 12:16:23 +02:00
Andrew Cholakian
e8cf08fb3e
Initial work on uptime homepage API (#70135)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2020-07-01 11:06:56 +02:00
Joe Reuter
de79985f92
[Lens] Add "no data" popover (#69147) 2020-07-01 10:08:37 +02:00
Joe Reuter
a49f5cec64
[Lens] Move chart switcher over (#70182) 2020-07-01 10:07:59 +02:00
Joe Reuter
e1665e8b27
[Lens] Multiple y axes (#69911) 2020-07-01 09:57:23 +02:00
Brian Seeders
c1dc53c6fb skip flaky suite (#70386) 2020-06-30 21:29:37 -04:00
Xavier Mouligneau
9af75fa98b
fix bug to add timeline to case (#70343) 2020-06-30 21:05:14 -04:00
Zacqary Adam Xeper
0047eeded6
[Metrics UI] Add context.reason and alertOnNoData to Inventory alerts (#70260) 2020-06-30 16:34:38 -05:00
Robert Austin
893525c74c
Resolver refactoring (#70312)
* remove unused piece of state
* Move related event total calculation to selector
* rename xScale
* remove `let`
* Move `dispatch` call out of HTTP try-catch
2020-06-30 17:32:44 -04:00
Nicolas Chaulet
8903d3427e
[Ingest Manager] Fix agent ack after input format change (#70335) 2020-06-30 17:23:56 -04:00
Christos Nasikas
aa52102edb
[SIEM][Timeline] Reset fields based on timeline (#70209) 2020-06-30 23:46:21 +03:00
Devin W. Hurley
432f93a1a5
[SECURITY SOLUTION] [Detections] Increase lookback when gap is detected (#68339)
* add POC logic to modify the 'from' param in the search

* fixes formatting for appending gap diff to from

* computes new max signals based on how many intervals of rule runs were missed when gap in consecutive rule runs is detected

* adds logging, fixes bug where we could end up with negative values for diff, adds calculatedFrom to the search after query

* remove console.log and for some reason two eslint disables were added so i removed one of them

* rename variables, add test based on log message - need to figure out a better way to test this

* remove unused import

* fully re-worked the algorithm for searching discrete time periods, still need search_after because a user could submit a rule with a custom maxSignals so that would still serve a purpose. This needs heavy refactoring though, and tests.

* updated loop to include maxSignals per time interval tuple, this way we guarantee maxSignals per full rule interval. Needs some refactoring though.

* move logic into utils function, utils function still needs refactoring

* adds unit tests and cleans up new util function for determining time intervals for searching to occur

* more code cleanup

* remove more logging statements

* fix type errors

* updates unit tests and fixes bug where search result would return 0 hits but we were accessing property on non-existent hit item

* fix rebase conflict

* fixes a bug where a negative gap could exist if a rule ran before the lookback time, also fixes a bug where the search and bulk loop would return false when successful.

* gap is a duration, not a number.

* remove logging variable

* remove logging function from test

* fix type import from rebase with master

* updates missed test when rebased with master, removes unused import

* modify log statements to include meta information for logged rule events, adds tests

* remove unnecessary ts-ignores

* indentation on stringify

* adds a test to ensure we are parsing the elapsed time correctly
2020-06-30 16:43:49 -04:00
Xavier Mouligneau
a07526484a
[SECURITY] Bug overview link (#70214)
* fix link bug on overview page

* Rename Signal to Alert in selection of event in timeline

* review I

* fix i18n
2020-06-30 15:25:16 -04:00
Alejandro Fernández Haro
56aac44ac3
[API Integration Tests] usageApi service to expose the private telemetry API (#70057)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 20:14:59 +01:00
Nathan L Smith
585b3f7e3d
Add Jest configuration and README to observability plugin (#70340)
Also clean up the coverage configuration in the APM jest config.
2020-06-30 14:03:05 -05:00
Clint Andrew Hall
60a86d6396
[easy][bug] Fix thumb rendering observer (#70255) 2020-06-30 14:51:59 -04:00
Dario Gieselaar
b5ceefbaed
[APM] Simpler security check (#69780)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 20:47:19 +02:00
Corey Robertson
a9f72bc5e4
[Canvas] Move Templates to be stored as Saved Objects (#69438)
* Moves Canvas templates to live server side

* Adds Clone from template test

* Fix url

* Clean up

* PR Feedback

* i18n
2020-06-30 14:21:01 -04:00
Nicolas Chaulet
4784686978
[Ingest Manager] Validate agent version <= Kibana version (#70339) 2020-06-30 14:15:47 -04:00
Zacqary Adam Xeper
c948e47714
[Metrics UI] Design updates for alert preview results (#69328)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 13:00:15 -05:00
Zacqary Adam Xeper
0f78bc9ba5
[Metrics UI] Make alert instance IDs more useful (#70100)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 12:59:19 -05:00
Jason Rhodes
bb7bc782b2
[Logs and Metrics UI] Initial setup for registering observability overview data fetchers (#69999)
* Switches mount callbacks to only use start deps

Fixes #58014

* Sets up skeleton logs data fetchers for overview

* Fixes type hacks for logs fetcher

* Prevent kibana from crashing on initial load

* Fixes types and linting errors

* Fixes some linting import/export issues

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
2020-06-30 13:56:35 -04:00
John Schulz
2118439d87
[Ingest Manager] Make setupIngestManager wait if setup is in progress (#70008)
* Make setupIngestManager wait if another setup is in progress
2020-06-30 13:53:53 -04:00
Nicolas Chaulet
7c9db862ab
[Ingest Manager] Do not index every saved object field (#70162) 2020-06-30 12:07:06 -04:00
Matthew Kime
2fe0051ec2
Index patterns - Server API (#69105)
* index patterns on the server
2020-06-30 10:14:29 -05:00
Kevin Logan
04b8d108d5
remove logs link and alerts count (#70282) 2020-06-30 11:14:04 -04:00
István Zoltán Szabó
43bfa4ab66
[ML] Modifies page title to Create job (#70191)
Changes Create data frame analytics job to Create job.
2020-06-30 16:56:40 +02:00
Søren Louv-Jansen
606eb6b3d8
[APM] Add API test for service maps (#70185)
* [APM] Add API test for service maps

* Re-add custom links test

* Improved test names

* Disable eslint rule

* Undo readme changes

* Fix ts errors
2020-06-30 16:35:52 +02:00
Christiane (Tina) Heiligers
93ef5c0c41
[Usage Collection] Report nodes feature usage (#70108)
* Adds nodes feature usage stats merged into cluster_stats.nodes when usage collection is local
2020-06-30 07:30:31 -07:00
Thomas Watson
ad01223c5a
chore: improve support for mjs file extension (#70186) 2020-06-30 16:13:28 +02:00
Melissa Alvarez
233d261674
[ML] Anomaly Detection: ensure 'Category examples' tab in the expanded table row can be seen (#70241)
* remove space from tab id

* update test
2020-06-30 10:07:50 -04:00
Aaron Caldwell
3caab366c7
[Maps] Add maps telemetry saved object in with mappings disabled (#69995)
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 08:04:48 -06:00
MadameSheema
351629f8e9
updates wording in Cases connectors (#70298) 2020-06-30 13:04:21 +02:00
Walter Rafelsberger
06ee7bd2a3
[ML] Fix license subscription race condition. (#70074)
Fixes a race condition where the ML plugin would be mounted before receiving its first license information update and thus redirecting to a fallback page (Kibana Home, Space-Chooser or Data Visualizer page depending on the setup).
2020-06-30 12:14:21 +02:00
Kerry Gallagher
ceb8595151
[Logs UI] [Alerting] "Group by" functionality (#68250)
- Add "group by" functionality to logs alerts
2020-06-30 10:28:54 +01:00
Mikhail Shustov
159369b719
Use ts-expect-error in platform code (#69883)
* ts-ignore --> ts-expect-error

* fix error with mutable array

* fix errors in consumers code

* update SOM

* fix FeatureConfig & Feature compatibility

* do not re-export from code. it breaks built version

* update docs

* add eslint rule for platform team code

* remove test. this is covered by ts-expect-error in unit tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 07:37:42 +02:00
Frank Hassanabad
7144db201f
[SIEM][Detection Engine][Lists] Moves getQueryFilter to common folder for use by both front and backend
## Summary

* Moves querying and tests from server to common

The function we are interested using on the front end is:

```ts
export const getQueryFilter = (
  query: Query,
  language: Language,
  filters: Array<Partial<Filter>>,
  index: Index,
  lists: ExceptionListItemSchema[]
) => {
```

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-29 20:44:27 -06:00
Kevin Logan
b3f19dad74
[Ingest Manager][SECURITY SOLUTION] adjust config reassign link and add roundtrip to Reassignment flow (#70208) 2020-06-29 21:43:47 -04:00
Ryland Herrick
590fc8d2ff
[Security][Lists] Add API functions and react hooks for value list APIs (#69603)
* Add pure API functions and react hooks for value list APIs

This also adds a generic hook, useAsyncTask, that wraps an async
function to provide basic utilities:
  * loading state
  * error state
  * abort/cancel function

* Fix type errors in hook tests

These were not caught locally as I was accidentally running typescript
without the full project.

* Document current limitations of useAsyncTask

* Defines a new validation function that returns an Either instead of a tuple

This allows callers to further leverage fp-ts functions as needed.

* Remove duplicated copyright comment

* WIP: Perform request/response validations in the FP style

* leverages new validateEither fn which returns an Either
* constructs a pipeline that:
  * validates the payload
  * performs the API call
  * validates the response
and short-circuits if any of those produce a Left value.

It then converts the Either into a promise that either rejects with the
Left or resolves with the Right.

* Adds helper function to convert a TaskEither back to a Promise

This cleans up our validation pipeline considerably.

* Adds request/response validations to findLists

* refactors private API functions to accept the encoded request schema
(i.e. snake cased)
* refactors validateEither to use `schema.validate` instead of
`schema.decode` since we don't actually want the decoded value, we just
want to verify that it'll be able to be decoded on the backend.

* Refactor our API types

* Add request/response validation to import/export functions

* Fix type errors

* Continue to export decoded types without a qualifier
* pull types used by hooks from their new location
* Fix errors with usage of act()

* Attempting to reduce plugin bundle size

By pulling from the module directly instead of an index, we can
hopefully narrow down our dependencies until tree-shaking does this for
us.

* useAsyncFn's initiator does not return a promise

Rather than returning a promise and requiring the caller to handle a
rejection, we instead return nothing and require the user to watch the
hook's state.

* success can be handled with a useEffect on state.result
* errors can be handled with a useEffect on state.error

* Fix failing test

Assertion count wasn't updated following interface changes; we've now
got two inline expectations so this isn't needed.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 20:02:39 -05:00
Alison Goryachev
771f3ae098
[ILM] Fix bug when clearing priority field (#70154) 2020-06-29 20:34:33 -04:00
Nicolas Chaulet
88a41b2b1e
[IngestManager] Allow to filter agent by packages (#69731) 2020-06-29 18:48:18 -04:00
Dmitry Lemeshko
8e524477bc
[code coverage] exclude folders: test_helpers, tests_bundle (#70199) 2020-06-29 23:55:29 +02:00
Phillip Burch
470397075f
[Metrics UI] UX improvements for saved views (#69910)
* Works-ish

* Load the default view without throwing error

* Design feedback

* Update Saved Views design on Metrics explorer

* Fix types

* UX improvements when saving and editng

* Only load default view if there is no state from anywhere else.

* Add loading indicator and other polish

* Hide saved view menu when opening modals

* Fix typecheck

* Fix typo

* Fix translations
2020-06-29 16:53:36 -05:00
Rashmi Kulkarni
d79a6883bf
Cross cluster search functional test with minimun privileges assigned to the test_user (#70007)
* using test_user with limited read permission to search profiler test

* gitcheck

* search profiler test using test_user

* using limited roles and privileges for CCR

* changed the global ccr role kibana section to be consistent with other roles with no feature controls

* removed canvas role

* changes to include pagination for 100 rows

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 14:42:49 -07:00
Nathan Reese
917598141f
[Maps] choropleth layer wizard (#69699)
* [Maps] choropleth layer wizard

* add boundaries radio group

* geo_index_pattern_select

* consolidate more logic into geo_index_pattern_select

* small clean-up

* left geo field and join field

* move EuiPanel into render wizard

* cleanup

* right panel

* createEmsChoroplethLayerDescriptor

* createEsChoroplethLayerDescriptor

* i18n cleanup

* tslint

* snapshot update

* review feedback

* review feedback

* update snapshot

* make EMS default source

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:12:09 -06:00
John Schulz
7db95a1691
Make custom errors by extending Error (#69966)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:08:50 -04:00
Jen Huang
d9fcc585cf
[Ingest Manager] Support updated package output structure (#69864)
* Update EPM package registry typings to reflect registry changes

* Change `dataset.id` references to `dataset.name`

* Fix RegistryStream

* Fix packageToConfigDatasourceInputs service

* Fix assignPackageStream service

* Fix validateDatasource service

* Fix configure data source components

* Fix variable

* Fix stream template installation

* Add support for `input[].dataset.type` and change `stream.dataset` mapping to be object containing `name` with instead of just a string

* Nest package information under `meta` in agent config yaml

* Move `dataset.type` to stream level instead of input level

* Make single call to fetch registry package information instead of doing it per stream

* Fix type issues

* Update endpoint test assertion

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 14:06:05 -07:00
Robert Austin
ad9d3dcb9c
Resolver test coverage (#70246)
* Move AABB, Matrix3, and Vector2 modules from lib to models

* Add tests for AABB

* remove dead code
2020-06-29 17:04:29 -04:00
Lee Drengenberg
752fa6e01e
Async Discover search test (#64388)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:40:02 -05:00
Spencer
9c965fef72
[ui-shared-deps] include styled-components (#69322)
* [ui-shared-deps] include styled-components

* update snapshots caused by react-is upgrade

* fix jest snapshots

* declare react-is dep in x-pack too so it uses the right version

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 13:06:14 -07:00
nnamdifrankie
f196546f4b
SECURITY-ENDPOINT: add host properties (#70238) 2020-06-29 16:03:02 -04:00
MadameSheema
04991d40c2
[SIEM] Fixes 'sets and reads the url state for timeline by id' Cypress test (#69882)
* fixes 'sets and reads the url state for timeline by id' test

* fixes merge issue

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 21:20:54 +02:00
Shahzad
df44a3e779
[RUM Dashboard] Chart breakdowns (#69420)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 20:54:52 +02:00
Wylie Conlon
736e64c60f
[Lens] Fix cross cluster bug and optimize existence query (#70132)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 13:47:08 -04:00
MadameSheema
c2944855bd
renames 'detections' to 'alerts' (#70164) 2020-06-29 19:29:37 +02:00
MadameSheema
2a25df3f1c
[SIEM] Fixes Cypress 'Search Bar' test (#69952)
* fixes 'Search Bar' test

* [DEBUG] executes only Security Cypress tests

* Revert "[DEBUG] executes only Security Cypress tests"

This reverts commit e727790dbf.

* [DEBUG] executes only Security Cypress tests

* [DEBUG] fixes jenkins file

* [DEBUG] fixes Jenkinsfile

* Revert "[DEBUG] fixes Jenkinsfile"

This reverts commit 8f42e82edd.

* Revert "[DEBUG] fixes jenkins file"

This reverts commit 98487467eb.

* Revert "[DEBUG] executes only Security Cypress tests"

This reverts commit 6a089305e1.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 19:28:46 +02:00
Robert Austin
8ffdd4568b
[Security Solution] Resolver in Timeline (#69728)
Display Resolver in Security Solution's Timeline.
2020-06-29 13:10:39 -04:00
Joel Griffith
c53f036f5d
Ensure that security is enabled before doing user authentication checks (#70127)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 09:26:11 -07:00
Luke Elmers
851e7ff9b8
[data.search.aggs] Remove fieldFormats from AggConfig & AggConfigs (#69762) 2020-06-29 10:10:34 -06:00
Brian Seeders
462bf1520f skip flaky suite (#69617) 2020-06-29 11:48:39 -04:00
Vadim Dalecky
9f6ad5a8d8
"Explore underlying data" in-chart action kibana.yml flag (#70045)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

* feat: 🎸 add kibana.yml to disable in-chart "explore data" actio

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:47:08 +02:00
Larry Gregory
28b70923df
Consolidate capabilities check for Stack Management (#69437)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 11:43:43 -04:00
Pierre Gayvallet
fe1c508d8d
Move and rename legacy elasticsearch client (#69797)
* move last snapshot to inline

* move legacy files to legacy subfolder

* move request types out of legacy

* export Headers from http instead of elasticsearch

* renaming - first pass

* renaming - second pass

* fix core mocks

* adapt new calls

* update generated doc

* fix IT test mocks

* fix new usages
2020-06-29 17:43:31 +02:00
patrykkopycinski
821aa9903b
Bump react-router (#69608) 2020-06-29 16:55:38 +02:00
Nicolas Chaulet
6e9972e693
[Ingest Manager] expose method to get agent and list agents to other plugins (#70087) 2020-06-29 10:51:30 -04:00
Corey Robertson
f47b3e50c7
[Canvas] Update Canvas Plugin documentation (#65910)
* Update Canvas Plugin documentation

* Small fix

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2020-06-29 10:39:49 -04:00
Daniil Suleiman
19bda1fcee
Reactify visualize app (#67848)
* Reactify visualize app

* Fix typescript failures after merging master

* Make sure refresh button works

* Subscribe filter manager fetches

* Use redirect to landing page

* Update savedSearch type

* Add check for TSVB is loaded

* Fix comments

* Fix uiState persistence on vis load

* Remove extra div around TableListView

* Update DTS selectors

* Add error handling for embeddable

* Remove extra argument from useEditorUpdates effect

* Update comments, fix typos

* Remove extra div wrapper

* Apply design suggestions

* Revert accidental config changes

* Apply navigating to dashboard

* Apply redirect legacy urls

* Apply incoming changes

* Apply incoming changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:21:49 +03:00
Dario Gieselaar
dbdc3cd01a
[APM] Run API tests as restricted user (#70050) 2020-06-29 16:17:32 +02:00
Sandra Gonzales
81022a3206
[Ingest Manager] rollover data stream when index template mappings are not compatible (#69180)
* rollover data stream when index template mappings are not compatible

* update error messages

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 10:01:59 -04:00
Shahzad
64e87cd6b5
[Uptime] Use ML Capabilities API to determine license type (#66921)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:36:59 +02:00
Sonja Krause-Harder
e91594aeb9
[Ingest Manager] Use DockerServers service in integration tests. (#69822)
* Partially disable test files.

* Use DockerServers in EPM tests.

* Only run tests when DockerServers have been set up

* Reenable ingest manager API integration tests

* Pass new test_packages to registry container

* Enable DockerServers tests in CI.

* Correctly serve filetest package for file tests.

* Add helper to skip test and log warning.

* Reenable further file tests.

* Add developer documentation about Docker in Kibana CI.

* Document use of yarn test:ftr

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:24:11 +02:00
Nathan L Smith
8e57db696a
[APM] Use licensing from context (#70118)
* [APM] Use licensing from context

We added the usage of `featureUsage.notifyUsage` from the licensing plugin in #69455.

This required us to use `getStartServices to add `licensing` to `context.plugins`.

In #69838 `featureUsage` was added to `context.licensing`, so we don't need to add it to `context.plugins`.
2020-06-29 08:23:52 -05:00
Pierre Gayvallet
7e5cff4be9
[GS] add application result provider (#68488)
* add application result provider

* remove empty contracts & cache searchable apps

* fix types
2020-06-29 15:17:00 +02:00
Alison Goryachev
3571100bcc
[CCR] Fix reducer function when finding missing privileges (#70158) 2020-06-29 08:31:59 -04:00
Wylie Conlon
40ff82d779
[Lens] Fix broken test (#70117) 2020-06-27 08:20:29 +02:00
Angela Chuang
f4e7f14ffe
[SIEM] Import timeline fix (#65448)
* fix import timeline and clean up

fix unit tests

apply failure checker

clean up error message

fix update template

* add unit tests

* clean up common libs

* rename variables

* add unit tests

* fix types

* Fix imports

* rename file

* poc

* fix unit test

* review

* cleanup fallback values

* cleanup

* check if title exists

* fix unit test

* add unit test

* lint error

* put the flag for disableTemplate into common

* add immutiable

* fix unit

* check templateTimelineVersion only when update via import

* update template timeline via import with response

* add template filter

* add filter count

* add filter numbers

* rename

* enable pin events and note under active status

* disable comment and pinnedEvents for template timelines

* add timelineType for openTimeline

* enable note icon for template

* add timeline type for propertyLeft

* fix types

* duplicate elastic template

* update schema

* fix status check

* fix import

* add templateTimelineType

* disable note for immutable timeline

* fix unit

* fix error message

* fix update

* fix types

* rollback change

* rollback change

* fix create template timeline

* add i18n for error message

* fix unit test

* fix wording and disable delete btn for immutable timeline

* fix unit test provider

* fix types

* fix toaster

* fix notes and pins

* add i18n

* fix selected items

* set disableTemplateto true

* move templateInfo to helper

* review + imporvement

* fix review

* fix types

* fix types

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-06-27 04:53:53 +01:00
Candace Park
684289d6e3
[SECURITY SOLUTION][INGEST] UX update for ingest manager edit/create datasource for endpoint (#70079)
[security solution][ingest]UX update for ingest manager edit/create datasource for endpoint
2020-06-26 20:25:01 -04:00
Ahmad Bamieh
266f853b0b
[Telemetry] Collector Schema (#64942)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-27 02:52:26 +03:00
Kevin Logan
5236335d63
[Endpoint] Add Endpoint empty states for onboarding (#69626) 2020-06-26 18:08:07 -04:00
Michael Olorunnisola
5c8df21ca0
Hide unused resolver buttons (#70112)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:38:02 -04:00
Andrew Goldstein
295ac7ef12
[Security] Investigate in Resolver Timeline Integration (#70111)
## [Security] `Investigate in Resolver` Timeline Integration

This PR adds a new `Investigate in Resolver` action to the Timeline, and all timeline-based views, including:

- Timeline
- Alert list (i.e. Signals)
- Hosts > Events
- Hosts > External alerts
- Network > External alerts

![investigate-in-resolver-action](https://user-images.githubusercontent.com/4459398/85886173-c40d1c80-b7a2-11ea-8011-0221fef95d51.png)

### Resolver Overlay

When the `Investigate in Resolver` action is clicked, Resolver is displayed in an overlay over the events. The screenshot below has placeholder text where Resolver will be rendered:

![resolver-overlay](https://user-images.githubusercontent.com/4459398/85886309-10f0f300-b7a3-11ea-95cb-0117207e4890.png)

The Resolver overlay is closed by clicking the `< Back to events` button shown in the screenshot above.

The state of the timeline is restored when the overlay is closed. The scroll position (within the events), any expanded events, etc, will appear exactly as they were before the Resolver overlay was displayed.

### Case Integration

Users may link directly to a Timeline Resolver view from cases via the `Attach to new case` and `Attach to existing case...` actions show in the screenshot below:

![case-integration](https://user-images.githubusercontent.com/4459398/85886773-e3587980-b7a3-11ea-87b6-b098ea14bc5f.png)

![investigate-in-resolver](https://user-images.githubusercontent.com/4459398/85885618-daff3f00-b7a1-11ea-9356-2e8a1291f213.gif)

When users click the link in a case, Timeline will automatically open to the Resolver view in the link.

### URL State

Users can directly share Resolver views (in saved Timelines) with other users by copying the Kibana URL to the clipboard when Resolver is open.

When another user pastes the URL in their browser, Timeline will automatically open and display the Resolver view in the URL.

### Enabling the `Investigate in Resolver` action

In this PR, the `Investigate in Resolver` action is only enabled for events where all of the following are true:

- `agent.type` is `endpoint`
- `process.entity_id` exists

### Context passed to Resolver

The only context passed to `Resolver` is the `_id` of the event (when the user clicks `Investigate in Resolver`)

### What's next?

- @oatkiller will replace the placeholder text shown in the screenshots above with the actual call to Resolver in a separate PR
- I will follow-up this PR with additional tests
- The action text `Investigate in Resolver` may be changed in a future PR
- Hide the `Add to case` action in timeline-based views (it's currently visible, but disabled)
2020-06-26 15:36:51 -06:00
Chris Cowan
938733e862
[Metrics UI] Fix EuiTheme type issue (#69735)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:36 -07:00
Brian Seeders
e4aaed6926 skip failing suite (#70104) (#70103) 2020-06-26 15:06:49 -04:00
Paul Tavares
0bdff15297
[ENDPOINT] Hide the Timeline Flyout while on the Management Pages (#69998)
* hide timeline on Management pages
* adjust managment page view styles
* Added additional tests for validating no timeline button on management views
* centralize API Path responses and reuse across some tests
* Fix state being reset incorrectly
2020-06-26 14:59:13 -04:00
Christos Nasikas
6808903d57
[SIEM][CASE] Persist callout when dismissed (#68372) 2020-06-26 21:31:41 +03:00
Yara Tercero
e4043b736b
[SIEM][Exceptions] - Cleaned up and updated exception list item comment structure (#69532)
### Summary

This PR is a follow up to #68864 . That PR used a partial to differentiate between new and existing comments, this meant that comments could be updated when they shouldn't. It was decided in our discussion of exception list schemas that comments should be append only. This PR assures that's the case, but also leaves it open to editing comments (via API). It checks to make sure that users can only update their own comments.
2020-06-26 14:15:35 -04:00
Nathan Reese
8aa2206e04
[Maps] remove indexing state from redux (#69765)
* [Maps] remove indexing state from redux

* add indexing step

* tslint

* tslint fixes

* tslint item

* clear preview when file changes

* review feedback

* use prevState instead of this.state in setState

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:12:35 -06:00
CJ Cenizal
497dfc7af3
Add API integration test for deleting data streams. (#70020) 2020-06-26 10:59:59 -07:00
Dmitry Lemeshko
6ebf56ba66
Adding saved_objects_page in OSS (#69900)
* add savedObjects own PO

* fix usage

* simplify functions

* fix test

* fix title parsing

* add missing await

* improve parsing

* wait for table is loaded

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 19:02:30 +02:00
Marta Bondyra
7440eea3dc
[Lens] Use accordion menus in field list for available and empty fields (#68871) 2020-06-26 18:43:35 +02:00
Anton Dosov
3ac5bc5323
Dynamic uiActions & license support (#68507)
This pr adds convenient license support to dynamic uiActions in x-pack.
Works for actions created with action factories & drilldowns.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 18:33:32 +02:00
Angela Chuang
100a5fd18b
[SIEM] Update readme for timeline apis (#67038)
* update doc

* update unit test

* remove redundant params

* fix types

* update readme

* update readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:12:21 +01:00
John Dorlus
4845bef181
Fixed issue where promise chain was broken. (#70004)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 11:59:50 -04:00
Walter Rafelsberger
eea33a0db2
[ML] Transforms: Adds functional tests for transform cloning and editing. (#69933)
Adds functional tests for transform cloning and editing.
2020-06-26 17:03:00 +02:00
Marta Bondyra
2a68dc7c6b
[Lens] Last used Index pattern is saved to and retrieved from local storage (#69511) 2020-06-26 16:33:09 +02:00
Jean-Louis Leysens
c8089a5aa2
[Ingest Pipelines Editor] First round of UX improvements (#69381)
* First round of UX tweaks

- Fixed potential text overflow issue on descriptions
- Removed border around text input when editing description

* Updated the on-failure pipeline description copy

* Properly encode URI component pipeline names

* use xjson editor in flyout

* also hide the test flyout if we are editing a component

* add much stronger dimming effect when in edit mode

* also added dimming effect to moving state

* remove box shadow if dimmed

* add tooltips to dropzones

* fix CITs after master merge

* fix nested rendering of processors tree

* only show the tooltip when the dropzone is unavaiable and visible

* keep white background on dim

* hide controls when moving

* fix on blur bug

* Rename variables and prefix booleans with "is"

* Remove box shadow on all nested tree items

* use classNames as it is intended to be used

* Refactor SCSS values to variables

* Added cancel move button

- also hide the description in move mode when it is empty
- update and refactor some shared sass variables
- some number of sass changes to make labels play nice in move
  mode
- changed the logic to not render the buttons when in move mode
  instead of display: none on them. The issue is with the tooltip
  not hiding when when we change to move mode and the mouse event
  "leave" does get through the tooltip element causing tooltips
  to hang even though the mouse has left them.

* Fixes for monaco XJSON grammar parser and update form copy

- Monaco XJSON worker was not handling trailing whitespace
- Update copy in the processor configuration form

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 16:25:50 +02:00
Kevin Qualters
9ebf41c77c
[Endpoint] use rbush to only render to DOM resolver nodes that are in view (#68957)
* [Endpoint] use rbush to only render resolver nodes that are in view in the DOM

* Add related events code back

* Change processNodePositionsAndEdgeLineSegments selector to return a function that takes optional bounding box

* Refactor selectors to not break original, and not run as often

* Memoize rtree search selector, fix tests

* Update node styles to use style hook, update jest tests

* Fix type change issue in jest test
2020-06-26 09:42:10 -04:00
Alejandro Fernández Haro
ae7e9d9ad5
[License Management] Do not break when telemetry.enabled:false (#69711)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 13:57:17 +01:00
Xavier Mouligneau
09e3f75bc3
[SECURITY] Redirect app/security to app/security/overview (#70005)
* redirect app/security to app/security/overview

* missing re-naming initialization

* add unit test for intialization value of indicesExists

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 08:56:09 -04:00
Vadim Dalecky
684aa68f17
"Explore underlying data" in-chart action (#69494)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2020-06-26 14:26:35 +02:00
Devon Thomson
52223da44f
prep state transfer for passing embeddables by value to editor and back (#69991)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:12 +01:00
Gidi Meir Morris
1ab5b4ab8b
[alerting] migrates the old alerting consumer to be alerts (#69982)
This PR migrates all old alerts with the `alerting` consumer to have `alerts` instead.
This is because in 7.9 we changed the feature ID and we need these to remain in sync otherwise the RBAC work (https://github.com/elastic/kibana/pull/67157) will break old alerts.
2020-06-26 12:04:42 +01:00
Cauê Marcondes
41ecf39539
[APM]Create API to return data to be used on the Overview page (#69137)
* Adding apm data fetcher

* removing error rate

* chaging observability dashboard routes

* APM observability fetch data

* fixing imports

* adding unit test

* addressing PR comments

* adding processor event in the query, and refactoring theme

* fixing ts issues

* fixing unit tests
2020-06-26 11:11:42 +02:00
Marta Bondyra
8448ae8b4b
[Lens] Fix delete button position in dimension panel for long labels (#69495) 2020-06-26 09:50:13 +02:00
Joe Reuter
67e48527e7
[Lens] Add toolbar api (#69263) 2020-06-26 09:38:35 +02:00
Nathan Reese
be3886b77f
[Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths (#69723)
* [Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths

* rename methods

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 20:25:05 -06:00
Nathan Reese
0465e86bf3
[Maps] Fix icon palettes are not working (#69937)
* [Maps] Fix icon palettes are not working

* unit test mapbox icon-image expression

* fix unit test expect statements
2020-06-25 20:20:59 -06:00
Nicolas Chaulet
7163c678bd
[Ingest Manager] Fix typo in constant name (#69919) 2020-06-25 20:32:29 -04:00
Jonathan Budzenski
0f9efa8d60
[test] skip status.allowAnonymous tests on cloud (#69017)
* skip cloud status page

* move skipcloud to describe block

* merge includeFireFox and skipCloud

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 19:10:27 -05:00
Tim Sullivan
e143905223
[Reporting] ReportingStore module (#69426)
* Add store class

* fix tests

* fix the createIndex bug

* add reportingstore test

* change function args

* nits

* add test for automatic index creation failure recovery
2020-06-25 14:52:30 -07:00
Josh Dover
77df036558
Add featureUsage API to licensing context provider (#69838) 2020-06-25 15:28:48 -06:00
Zacqary Adam Xeper
3b9bbdb1a0
Fix uncaught typecheck merge conflict (#70001) 2020-06-25 15:03:09 -05:00
Rudolf Meijering
61a69f3825
Use TS to discourage SO mappings with dynamic: false / dynamic: true (#69927)
* Use TS to discourage SO mappings with dynamic

* Some unrelated docs changes
2020-06-25 21:44:57 +02:00
Robert Austin
c7aec6ec08
Rename Resolver types to include 'Resolver' (#69926)
Include the word 'Resolver' in some Resolver specific types in order to
improve readability and ease of auto-importing.
2020-06-25 14:54:05 -04:00
István Zoltán Szabó
d25ced2dd3
[ML] Changes create DFA job page title (#69925) 2020-06-25 19:37:25 +02:00
Steph Milovic
4eafb8e1b0
[Security Solution] [Timeline] fix bug for filter manager #69870 2020-06-25 11:32:15 -06:00
Rashmi Kulkarni
e79e84c3fb
Search profiler functional test -- using "test_user" with limited role. (#69841)
* using test_user with limited read permission to search profiler test

* gitcheck

* search profiler test using test_user
2020-06-25 10:20:28 -07:00
Søren Louv-Jansen
86895ef89f
[APM] Add callout to inform users of high cardinality in unique transaction names (#69112)
* [APM] Add callout

Showing a callout to inform the user we have detected a high cardinality in unique transaction names and enabling them how to fix it.

* Changed color and icon

* Updated copy and styling

* Check number of returned buckets

* Add translations and docs

* Update docs link

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

* Fix tests

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2020-06-25 19:11:47 +02:00
Zacqary Adam Xeper
71ea1a05c3
[Metrics UI] Prefill alerts from the global dropdown (#68967)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 12:00:58 -05:00
Aaron Caldwell
40c746e3fd
[Maps] Remove maps-telemetry saved object as it is no longer in use (#69871) 2020-06-25 10:38:53 -06:00
Gidi Meir Morris
68cf857193
[Encrypted Saved Objects] Adds support for migrations in ESO (#69513)
Introduces migrations into Encrypted Saved Objects.

The two main changes here are:
1. The addition of a createMigration api on the EncryptedSavedObjectsPluginSetup.
2. A change in SavedObjects migration to ensure they don't block the event loop.
2020-06-25 17:23:31 +01:00
patrykkopycinski
ef496ff6fa
[SIEM] Replace WithSource with useWithSource hook (#68722) 2020-06-25 18:08:17 +02:00
nnamdifrankie
a854067fb0
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events (#69708)
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events
2020-06-25 11:50:16 -04:00
Xavier Mouligneau
ff3ee41e79
rename old siem kibana config to securitySolution (#69874)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 11:30:25 -04:00
Robert Austin
eb5afccfd0
Remove unused Resolver code (#69914)
* embeddable
* embeddable factory
* a file called 'sample'
* resolver/index (it was just importing and re-exporting stuff)
2020-06-25 11:20:18 -04:00
Cauê Marcondes
9d9df2b6c1
[Observability] Fixing dynamic return type based on the appName (#69894)
* fixing generic return type

* addressing pr comments
2020-06-25 17:19:38 +02:00
Candace Park
1daa2f4a54
[SECURITY SOLUTION][INGEST] Task/endpoint list tests (#69419)
endpoint func tests for endpoint details to ingest, edit datasource to policy, bug fix for security link
2020-06-25 11:10:39 -04:00
Dario Gieselaar
589d6ffd22
[APM] Catch annotations index permission error and log warning (#69881)
Relates to #69642. If the user doesn't have the appropriate privileges for the annotations index, instead of failing with a 500, we now catch the error and log a warning to the console.
2020-06-25 16:55:46 +02:00
Paul Tavares
8ff45caa76
[Endpoint][Ingest Manager] minor code cleanup (#69844)
* Ingest: Rename datasource Layout prop to `onCancel`
* Endpoint: Policy list - swap use of endpoint package hook for redux middleware
* Endpoint: Add tests cases for `sendGetEndpointSecurityPackage()` method
* Endpoint: add policy list store tests for new action
2020-06-25 10:51:05 -04:00
Alejandro Fernández
14ac056be9
[Logs UI] Logs ui context menu (#69915) 2020-06-25 16:27:17 +02:00
Yara Tercero
f7acbbe7a1
[SIEM][Detection Engine] - Update DE to work with new exceptions schema (#69715)
* Updates list entry schema, exposes exception list client, updates tests

* create new de list schema and unit tests

* updated route unit tests and types to match new list schema

* updated existing DE exceptions code so it should now work as is with updated schema

* test and types cleanup

* cleanup

* update unit test

* updates per feedback
2020-06-25 09:47:05 -04:00
Brent Kimmel
0ef7bb84bc
PR: Provide limit warnings to user when API limits are reached. (#69590)
* Provide facilties to raise limit warnings for user when API limits are reached.
2020-06-25 09:38:16 -04:00
Thomas Neirynck
6556ccf564
[Maps] Remove broken button (#69853) 2020-06-25 09:36:12 -04:00
Christos Nasikas
6929f674ac
[SIEM][CASE] Improve Jira's labelling (#69892)
* Change labeling

* Improve word
2020-06-25 16:12:42 +03:00
Felix Stürmer
44d60c5fd2
[Logs UI] Access ML via the programmatic plugin API (#68905)
This modifies the routes related to log rate and category analysis to use the new programmatic APIs provided by the `ml` plugin to access the results index and job info. Because that access is facilitated via the request context, the log analysis lib was converted from classes to plain functions.

At the same time the routes have been updated to use the most recent validation and error handling patterns.
2020-06-25 15:06:27 +02:00
Melissa Alvarez
ac3a1a33fa
[ML] DF Analytics: Creation wizard part 3 (#69456)
* update clone tests

* validate advanced params with explain

* disable button while fetching validation data

* comment out clone tests for now
2020-06-25 09:05:55 -04:00
Robert Austin
a51ad2dfd2
Update Resolver generator script documentation (#69912) 2020-06-25 08:52:25 -04:00
István Zoltán Szabó
ac172dae44
[ML] Changes View results button text on new job page (#69809)
* [ML] Changes View results button text on new job page.

* [ML] Puts back translation lines.
2020-06-25 14:10:33 +02:00
John Schulz
2685654cdc
[Ingest Manager] Kibana, not EPR, controls removable packages (#69761)
* Kibana, not EPR, controls removable packages

* Add 'removable' property to OpenAPI PackageInfo schema

* Undo changes to example /packages API output

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 06:35:57 -04:00
MadameSheema
e1cc40ed75
unskips 'Events columns' test (#69684) 2020-06-25 12:01:03 +02:00
István Zoltán Szabó
cf96249cf3
[ML] Changes the ML overview empty analytics panel text (#69801) 2020-06-25 11:54:51 +02:00
Alejandro Fernández
f6c9ca20ed
[Logs UI] ML log integration splash screen (#69288)
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 10:18:32 +02:00
Dario Gieselaar
42b87c0154
[APM] Script for metric aggregation (#67964)
* [APM] Script for metric aggregation

* Retry mechanism

* Docs/comments

* compress histogram; support --filter & --only parameters

* Add flag for significant figures

* Ignore apm scripts

* Add tsconfig project for apm/scripts
2020-06-25 09:20:19 +02:00
igoristic
1ae5d32652
Fixed links missing a hash (#69861)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 00:22:58 -04:00
CJ Cenizal
b48c8bf355
Add delete data stream action and detail panel (#68919)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 19:30:12 -07:00
Catherine Liu
8ed4f7f91f
Adds link for Cloud deployment settings (#66486)
Co-authored-by: Michail Yasonik <michail@yasonik.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 15:08:37 -07:00
Clint Andrew Hall
8e363e5d61
Convert Positionable, RenderToDom and RenderWithFn to functional/hooks/no recompose. (#68202)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 17:18:28 -04:00
Oliver Gupte
e3598cbeca
[APM] Pulls legacy ML code from service maps and integrations (#69779)
* Pulls out existing ML integration from the service maps

* - removes ML job creation flyout in integrations menu on the service details UI
- removes ML searches and transforms in the transaction charts API
- removes unused shared functions and types related to the legacy ML integration

* removes unused translations for APM anomaly detection

* Adds tags to TODOs for easy searching later
2020-06-24 13:31:02 -07:00
Nicolas Chaulet
14f975c899
[IngestManager] Expose agent authentication using access key (#69650)
* [IngestManager] Expose agent authentication using access key

* Add unit tests to authenticateAgentWithAccessToken service
2020-06-24 15:53:38 -04:00
Paul Tavares
a104e5ab0e
[Ingest Manager] Support registration of server side callbacks for Create Datasource API (#69428)
* Ingest: Expose `registerExternalCallback()` method out of Ingest server `start` lifecycle
* Ingest: Add support for External Callbacks on REST `createDatasourceHandler()`
* Ingest: expose DatasourceServices to Plugin start interface
* Endpoint: Added Endpoint Ingest handler for Create Datasources
  - Also moved the temporary logic from the middleware
    to the handler (still temporary)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 15:16:15 -04:00
Shahzad
904be0249b
[Uptime] Fix charts dark theme (#69748) 2020-06-24 20:45:20 +02:00
Melissa Alvarez
94321ccdd0
[ML] DF Analytics Creation: add progress indicator (#69583)
* add progress indicator to creation wizard page

* only show progress bar if job is started immediately

* add title and switch to timeout

* fix progress check

* clean up interval on unmount

* fix types

* clear interval if stats undefined. show progress if job created
2020-06-24 14:36:37 -04:00
Joel Griffith
ba9aed4b4e
Don't set a min-length on encryption key for reportin (#69827) 2020-06-24 11:19:13 -07:00
Aaron Caldwell
a89fa3c1f8
[Maps] New mappings: maps-telemetry -> maps (#69816) 2020-06-24 12:14:55 -06:00
Alison Goryachev
34307c8d13
[IM] Move common step containers to shared (#69713) 2020-06-24 12:36:24 -04:00
Ryland Herrick
b614dbc720
[Security][Network] Exclude glob-only (*) Index Pattern from map layers (#69736)
* Exclude glob-only (*) index pattern from map layers

This pattern is a special case that our map should ignore, as including
it causes all indexes to be queried.

* Ignore CCS glob pattern in our embedded map

Users may have this pattern for cross-cluster search, and it should
similarly be excluded when matching Security indexes.
2020-06-24 11:16:09 -05:00
Ryland Herrick
1eede3f128
Add lists plugin to optimized security_solution TS config (#69705)
As security_solution continues to integrate with lists, the absents of
these types will lead to lots of implicit anys and false positives.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:13:50 -05:00
Joe Reuter
b708b2a953
[Lens] Stabilize filter popover (#69519)
* stabilize filter popovwer

* remove text exclusion
2020-06-24 18:08:27 +02:00
Clint Andrew Hall
9e00da35b8
[pre-req] Convert Palettes and Components (#69065)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:47:56 -04:00
John Schulz
5e3798ccd9
[Ingest Manager] Do not await in start. Return a Promise (#69505)
1. Do not `await` in the public `start` lifecycle method. Fixes https://github.com/elastic/kibana/issues/66125
PR based on https://github.com/elastic/kibana/issues/66125#issuecomment-640790837 & https://github.com/elastic/kibana/issues/66125#issuecomment-642218799
  2. Change `success` to be Promise
2020-06-24 09:54:44 -04:00
Cauê Marcondes
82df228c95
adding Stats interface with type (#69784) 2020-06-24 14:20:32 +02:00
Nathan L Smith
2e078dbab9
[APM] Storybook theme fixes (#69730)
* [APM] Storybook theme fixes

The changes adding theme support in #69362 broke some of the Storybook stories.

Add decorators to wrap some of the stories in the theme context.

This should be done in a global decorator, but our current storybook setup doesn't support this. It also would be nice to be able to switch between light/dark mode, but that's something we can add in the future.

* Remove unused import

* Adds missing decorator to cytoscape examples + adds a new real-world example

Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 06:54:01 -05:00
Mikhail Shustov
778136f3bf
expose DocLinks API from start only (#68745)
* exose DocLinks API from start only

* update docs

* fix type errors

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:42:54 +02:00
Joe Reuter
d1a6fa26b8
Properly redirect legacy URLs (#68284) 2020-06-24 11:26:19 +02:00
Aleh Zasypkin
fc9df7244b
Redirect to Logged Out UI on SAML Logout Response. Prefer Login Selector UI to Logged Out UI whenever possible. (#69676) 2020-06-24 10:39:39 +02:00
Pete Harverson
b270321ff3
[ML] Fixes anomaly chart and validation for one week bucket span (#69671)
* [ML] Fixes anomaly chart and validation for one week bucket span

* [ML] Fix interval Jest tests
2020-06-24 09:20:38 +01:00
Aleh Zasypkin
33fb3e832c
Support deep links inside of RelayState for SAML IdP initiated login. (#69401) 2020-06-24 08:05:02 +02:00
Brandon Morelli
e2ab94060a
[Obs] Update Observability landing page text (#69727) 2020-06-23 17:22:32 -07:00
Zacqary Adam Xeper
6a016d0b57
[Metrics UI] Add inventory alert preview (#68909)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 18:34:17 -05:00
Xavier Mouligneau
e3d01bf450
remove scroll in drag & drop context (#69710) 2020-06-23 17:56:58 -04:00
Xavier Mouligneau
29fbdd56d9
[SECURITY] Add endpoint alerts url (#69707)
* Add back endpoint alerts url

* hack to move on

* fix type

* fix test
2020-06-23 17:47:59 -04:00
Jean-Louis Leysens
3e113151ad
[Index Management] Fix API Integration Test and use of timestamp_field (#69666)
* fix types and functional api integration test

* access timestamp field name in object

* temporarily skip the API integration test and fix ts issue
2020-06-23 14:42:09 -07:00
Aaron Caldwell
c87b00dc94
[Maps] Remove extra layer of telemetry nesting under "attributes" (#66137)
* Return attributes when telemetry created instead of whole saved object. Update integration test

* Change 'maps-telemetry' to 'maps'

* No need to create a saved object anymore. This is leftover from task manager telemetry mgmt

* Add test confirming attrs undefined. Change tests to check for 'maps' iso 'maps-telemetry'

* Add two more tests confirming expected telemetry shape

* Review feedback. Use TELEMETRY_TYPE constant and set to APP_ID
2020-06-23 15:33:43 -06:00
Josh Dover
200957bb63
Add plugin API for customizing the logging configuration (#68704) 2020-06-23 14:45:47 -06:00
MadameSheema
71d54c8cae
adds kibana navigation tests (#69733) 2020-06-23 22:30:02 +02:00
Melissa Alvarez
e87a4b2a31
fix link to analytics results from management (#69550) 2020-06-23 16:19:07 -04:00
Quynh Nguyen
22d09a3bbd
[ML] Transform: Enable force delete if one of the transforms failed (#69472)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:05:44 -05:00
Quynh Nguyen
1158be9264
[ML] Transform: Table enhancements (#69307)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:04:24 -05:00
Chris Roberson
b2d3833313
[Monitoring] Love for APM (#69052)
* Fix broken colors for APM

* Use default derivative

* Fix UI issues with APM

* Add new charts

* Fix tests

* Use EUI color palette

* Remove old translations

* PR feedback

* Fix tests

* Fix up overview page

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:14:40 -04:00
Clint Andrew Hall
f3fbf31f3a
[chore] TS 3.9: convert ts-ignore to ts-expect-error (#69541)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:13:21 -04:00
Yuliia Naumenko
29714aa614
Disabled multiple select for preconfigured connectors to avoid requesting bulk delete on them (#69459) 2020-06-23 12:12:39 -07:00
MadameSheema
1cdeec07b2
completes top-level navigation tests (#69694) 2020-06-23 18:51:20 +02:00
Jonathan Buttner
5fb206f67f
[Security_Solution] Split up indices (#69589)
* Fixing resolver alert generation

* Splitting indices up

* Removing tests that could randomly fail because of the generation code

* Adding support for multiple indices

* Updating archives with the new index names

* Removing alerts data stream

* Switching to process instead of fake

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 12:35:02 -04:00
Devon Thomson
98a897736b
Remove App communication from URL (#67064)
Removed all inter-app communication via url in favour of a new service in the embeddable start contract called the state transfer service.
2020-06-23 12:21:48 -04:00
Marco Liberati
65c3114abc
Fix Advanced Settings Panel number editing in Graph (#69672) 2020-06-23 18:09:07 +02:00
Lisa Cawley
0e2f9fc365
Updates swim lane UI text (#69454) 2020-06-23 08:59:32 -07:00
Dario Gieselaar
8956a33e4c
[APM] Use asPercent to format breakdown chart (#69384)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 16:34:50 +02:00
Dima Arnautov
43ed4e2043
[ML] fix ml api services (#69681) 2020-06-23 15:55:58 +02:00
Cauê Marcondes
572d006d9f
[Observability]Adding specific Return APIs for each plugin (#69257)
* Adding specific apis for each plugin

* adding metric hosts stat

* addressing PR comment

* addressing PR comments

* changing series to key/value

* exporting interfaces

* adding label to stat

* refactoring types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:08:17 +02:00
Alexey Antonov
6cc8ea1861
Migrate dashboard mode (#69305)
Closes: #67469

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 14:38:39 +03:00
Alison Goryachev
b00deeb754
[IM] Move template wizard steps to shared directory + update legacy details panel (#69559) 2020-06-23 06:55:03 -04:00
patrykkopycinski
cc4c1729d1
Bump jest related packages (#58095) 2020-06-20 21:05:09 +02:00
Xavier Mouligneau
73af8404e4
[SECURITY] Introduce kibana nav (#68862)
* Change the bootstrap of the app

* rename SiemPageName to SecurityPageName

* modify alerts routes

* modify cases routes

* modify hosts routes

* modify network routes

* modify overview routes

* modify timelines routes

* wip change management route

* change route for common

* some fixing from the first commit

* modify route for management

* update url format hook to use history

* bug when you click on external alerts from host or network

* improvement from josh feedback

* redirect siem to security solution

* a little clean up

* Fix types

* fix breadcrumbs

* fix unit test

* Update index.tsx

* Fix cypress

* bug remove timeline when you are in case configure

* Fix functionel test for management

* Fix redirect siem + ml

* fixes some cypress tests

* adds 'URL compatibility' test

* bring ml back to alerts

* review I

* Fix memory leak in timelines page

* fix storage bug for timeline search bar

* fix endpoint merge + functional test

* avoid timeline flyout toggle

* Fix link to ml score

* Fix breadcrumb

* Fix management url

* fix unit test

* fixes typecheck issue

* fixes remaining url cypress tests

* fixes timeline scenario

* fix link to details rule from timeline

* review remove absolute path for consistency

* Fixing resolver alert generation (#69587)

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

* [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (#69264)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

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

* fix cypress test

* skip failing suite (#69595)

* [Endpoint] Fix flaky endpoints list unit test (#69591)

* Fix flaky endpoints list unit test
* un-skip test

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

* remove flaky test

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2020-06-20 07:31:28 -04:00
Paul Tavares
9a41c1d0e7
[Endpoint] Fix flaky endpoints list unit test (#69591)
* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 18:47:47 -04:00