Commit graph

34206 commits

Author SHA1 Message Date
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
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
patrykkopycinski 82fd107fc2
Fix typo in bootstrap command (#69976) 2020-06-30 15:55:15 +02:00
Dmitry Lemeshko 6027451687
[code coverage] ingest correct coveredFilePath for mocha (#70215)
* [code coverage] ingest correct coveredFilePath for mocha

* export variable globally so it is availble in node script
2020-06-30 15:27:39 +02:00
Maja Grubic 7c352c0702
[Dashboard] Add visualization by value to dashboard (#69898)
* Plugging in DashboardStart dependency

* Create embeddable by reference and navigate back to dashboard

* Trying to feature flag the new flow

* Feature flagging new visualize flow

* Removing unnecessary console statement

* Fixing typescript errors

* Adding a functional test for new functionality

* Adding a functional test for new functionality

* Fixing test name

* Changing test name

* Moving functional test to a separate folder

* Trying to fix the config file

* Adding an index file

* Remove falsly included file

* Adding aggs and params to vis input

* Serializing vis before passing it as an input

* Incorporating new state transfer logic

* Remove dashboardStart as a dependency

* Trying to get the test to run

* Remove unused import

* Readding spaces

* Fixing type errors

* Incorporating new changes
2020-06-30 12:38:12 +01: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
Marco Liberati a40e58e898
[Discover] Deangularize Skip to bottom button (#69811)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 10:59:14 +02:00
Pierre Gayvallet 8485d2fbac
Implement recursive plugin discovery (#68811)
* implements recursive scanning in plugin discovery system

* update optimizer to find plugins in sub-directories

* update renovate

* update optimizer IT snapshot

* refactor processPluginSearchPaths$ and add test for inaccessible manifest

* add symlink test

* add maxDepth to the optimizer

* adapt mockFs definitions

* remove `flat` usage
2020-06-30 07:51:12 +02: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