Commit graph

34222 commits

Author SHA1 Message Date
James Gowdy
eafd2af6aa
[ML] Adding capabilities checks to shared functions (#70069)
* [ML] Adding capabilities checks to shared functions

* small refactor

* disabling capabilities checks for functions called by SIEM alerting

* testing git

* removing comment

* using constant for ml app id

* tiny type clean up

* removing check in ml_capabilities

* fixing types

* removing capabilities checks from ml_capabilities endpoint

* updating types

* better error handling

* improving capabilities check

* adding custom errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 17:45:36 +01:00
Chris Cowan
b7f33b94a8
[Metrics UI] Enhance Inventory View Tooltips (#69757)
* [Metrics UI] Enhance Inventory View Tooltips

* Fixing typos

* Removing toMetricOpt

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 09:45:21 -07:00
Robert Austin
652b11f270
Remove old endpoint routes redux (#70458)
Remove the legacy Endpoint Alerts feature
2020-07-01 12:45:15 -04:00
Charlie Pichette
9438f13939
Issue 63621 Fix Flaky Tests (#70344) 2020-07-01 12:37:42 -04:00
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
Josh Dover
7ed1fe05d7
Move logger configuration integration test to jest (#70378) 2020-07-01 08:05:59 -06:00
Jason Rhodes
1d1051b1e9
Changes observability plugin codeowner (#70439)
The observability plugin is now code-owned by a new observability-ui GH team to avoid pinging 4 separate teams for mandatory reviews when that plugin changes.
2020-07-01 10:04:21 -04: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
Peter Pisljar
5c98b11d73
expressions indexPattern function (#70315) 2020-07-01 10:56:05 +02:00
Marco Liberati
22a41c51e5
[Discover] Deangularization context error message refactoring (#70090)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 10:54:22 +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
Thomas Watson
6e268898f9
chore: add missing mjs extension (#70326) 2020-07-01 10:01:32 +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
Tre
f428b2dabe
[QA][Code Coverage] Drop catchError and use try / catch instead, (#69198)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 17:07:24 -06:00
Tre
175bdb588f
[QA] [Code Coverage] Integrate with Team Assignment Pipeline and Add Research and Development Indexes and Cluster (#69348)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 17:00:45 -06: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
Clint Andrew Hall
f3c393eaaf
[eslint][ts] Enable prefer-ts-expect-error (#70022)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 17:06:57 -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
Matthias Wilhelm
ad5ccfd7df
[Discover] Remove column from sorting array when removed from table (#65990) 2020-06-30 21:28:21 +02: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
Lisa Cawley
c979836665
[DOCS] Fixes mismatched tagged regions in glossary (#70348) 2020-06-30 11:26:40 -07: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
gchaps
8978ec8945
[DOCS] Adds glossary to documentation (#69721)
* [DOCS] Adds glossary to documentation

* [DOCS] Fixes build errors

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* [DOCS] Adds more terms to glossary

* [DOCS] Adds more terms to glossary

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: debadair <debadair@elastic.co>

* [DOCS] Incorporates review comments

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/glossary.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* [DOCS] Incorporates review comments

* [DOCS] Incorporates review comments

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: debadair <debadair@elastic.co>
2020-06-30 07:31:47 -07: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