Commit graph

37908 commits

Author SHA1 Message Date
Marco Liberati
d3d3fa7bd2
[Lens] New value labels config option for bar charts (#81776)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 16:34:30 +01:00
Wylie Conlon
03ee1a6476
[Lens] Fix bug in terms formatting (#82776) 2020-11-06 09:54:37 -05:00
Frank Hassanabad
b6d661f9c3
[Security Solutions][Detection Engine] Fixes critical clashing with source indexes that already contain a "signal" field (#82191)
## Summary

Fixes: https://github.com/elastic/kibana/issues/82148


We have errors and do not generate a signal when a source index already has utilized and reserved the "signal" field for their own data purposes. This fix is a bit tricky and has one medium sized risk which is we also support "signals generated on top of existing signals". Therefore we have to be careful and do a small runtime detection of the "data shape" of the signal's data type. If it looks like the user is using the "signal" field within their mapping instead of us, we move the customer's signal into "original_signal" inside our "signal" structure we create when we copy their data set when creating a signal.   

To help mitigate the risks associated with this critical bug with regards to breaking signals on top of signals I have:

* This adds unit tests
* This adds end to end tests for testing generating signals including signals on signals to help mitigate risk

The key test for this shape in the PR are in the file:

```
detection_engine/signals/build_event_type_signal.ts
```

like so:
```ts
export const isEventTypeSignal = (doc: BaseSignalHit): boolean => {
  return doc._source.signal?.rule?.id != null && typeof doc._source.signal?.rule?.id === 'string';
};
```
 
Example of what happens when it does a "move" of an existing numeric signal keyword type:

```ts
# This causes a clash with us using the name signal as a numeric.
PUT clashing-index/_doc/1
{
  "@timestamp": "2020-10-28T05:08:53.000Z",
  "signal": 1
}
```

Before, this was an error. With this PR it now will restructure this data like so when creating a signal along with additional signal ancestor information, meta data. I omitted some of the data from the output signal for this example. 

```ts
{
... Other data copied ...
"signal": 
{
    "original_signal": 1 <--- We "move it" here now
    "parents": 
    [
        {
            "id": "BhbXBmkBR346wHgn4PeZ",
            "type": "event",
            "index": "your-index-name",
            "depth": 0
        },
    ],
    "ancestors":
    [
        {
            "id": "BhbXBmkBR346wHgn4PeZ",
            "type": "event",
            "index": "your-index-name",
            "depth": 0
        },
    ],
    "status": "open",
    "depth": 1,
    "parent":
    {
        "id": "BhbXBmkBR346wHgn4PeZ",
        type: "event",
        "index": "your-index-name",
        "depth": 0
    },
    "original_time": "2019-02-19T17:40:03.790Z",
    "original_event": 
    {
        "action": "socket_closed",
        "dataset": "socket",
        "kind": "event",
        "module": "system"
    },
}

```

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2020-11-06 07:47:57 -07:00
Yulia Čech
71ec5bd36b
Add ILM url generator and use it in Index Management (#82165)
* Add ILM url generator and use in IM for cross linking to policy edit page

* Fix policy name in the link

* Add review suggestions

* Fix import

* Fix eslint error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 15:42:51 +01:00
Joe Reuter
94d0e60706
[Lens] Implement time scaling function (#82104) 2020-11-06 13:47:55 +01:00
ymao1
dae28519e6
[Alerting] Display Action Group in Alert Details (#82645)
* Adding action group id to event log. Showing action group as part of status in alert details view

* Simplifying getting action group id

* Cleanup

* Adding unit tests

* Updating functional tests

* Updating test

* Fix types check

* Updating test

* PR fixes

* PR fixes
2020-11-06 07:28:08 -05:00
Sonja Krause-Harder
1046fc299c
[Ingest Manager] Add tests to verify field parsing behavior. (#82809)
* Add tests to verify field parsing behavior.

* Verify behavior for multiple field redefinitions.
2020-11-06 13:16:03 +01:00
Larry Gregory
3da6efcc73
Bump trim to 0.0.3 (#82800) 2020-11-06 07:06:11 -05:00
Shahzad
8d5ee265b4
[Uptime] Display response headers for a ping (#82332) 2020-11-06 12:51:38 +01:00
Joe Reuter
d83167629c
fix underlying data drilldown for Lens (#82737) 2020-11-06 12:18:54 +01:00
Rudolf Meijering
b0eb277983
Add steps to migrate from a legacy kibana index (#82161)
* Add steps to migrate from a legacy kibana index

* Clarify data loss from legacy index to alias with same name

* Use aliases api to safely add a .kibana alias to a legacy index
2020-11-06 11:57:12 +01:00
Patryk Kopyciński
8146034559
[Security Solution] Bump why-did-you-render (#82591) 2020-11-06 11:18:42 +01:00
Marco Liberati
1b65a674d0
[Dashboard] Fix cloning panels reactive issue (#74253)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 11:17:01 +01:00
Alexey Antonov
0faf8c24ee
Use monacco editor in the inspector request panel (#82272)
* Use monacco editor in the inspector request panel

Closes: #81921

* insRequestCodeViewer -> insRequestCodeViewer

* remove uiSettings from props

* fix functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 11:34:57 +03:00
Catherine Liu
e378555971
Revert "Adds cloud links to user popover (#66825)" (#82802)
This reverts commit 8cdf56636a.
2020-11-05 21:25:57 -07:00
Nathan L Smith
d6200462c6
Add APM OSS README (#82754) 2020-11-05 19:05:41 -06:00
Mike Côté
1ecd12cdf3
Add description and documentation link in alert flyout (#81526)
* Add description and documentation URL in alert flyout

* Add unit tests

* Fix type check

* Add horizontal rule

* Design fixes

* Fix uptime alert link

* Fix uptime urls

* Add anchor tag

* Fix jest test failures

* Fix monitoring links
2020-11-05 19:50:50 -05:00
Xavier Mouligneau
f3599fec4c
[SECURITY SOLUTIONS] Keep context of timeline when switching tabs in security solutions (#82237)
* try to keep timeline context when switching tabs

* fix popover

* simpler solution to keep timelien context between tabs

* fix timeline context with relative date

* allow update on the kql bar when opening new timeline

* keep detail view in context when savedObjectId of the timeline does not chnage

* remove redux solution and just KISS it

* add unit test for the popover

* add test on timeline context cache

* final commit -> to fix context of timeline between tabs

* keep timerange kind to absolute when refreshing

* fix bug today/thiw week to be absolute and not relative

* add unit test for absolute date for today and this week

* fix absolute today/this week on timeline

* fix refresh between page and timeline when link

* clean up

* remove nit

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-11-05 19:45:10 -05:00
Catherine Liu
8cdf56636a
Adds cloud links to user popover (#66825)
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2020-11-05 17:41:07 -07:00
Patryk Kopyciński
26f79a6a29
[Security Solution] Unskip Overview cypress tests (#82782) 2020-11-05 17:30:47 -06:00
gchaps
2287376aeb
[DOCS] Updates field formatters (#82667)
* [DOCS] Updates field formatters

* Update docs/management/managing-fields.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* [DOCS] Minor edits

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-11-05 12:37:58 -08:00
John Schulz
ca04175ae9
Combine related getBuffer* functions. Add tests (#82766)
## Summary
Move logic from `getBufferExtractorForContentType` into `getBufferExtractor` & change the interface so one function can be used.

### Diff showing old vs new call
```diff
-  getBufferExtractorForContentType(contentType);
+  getBufferExtractor({ contentType });
```
```diff
-  getBufferExtractor(archivePath);
+  getBufferExtractor({ archivePath });
```

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2020-11-05 15:29:33 -05:00
Constance
4a8f42603b
[Enterprise Search] Fix/update MockRouter helper to return specific routes/paths (#82682)
* Fix tests failing for route files that have more than 2 router registrations of the same method

- This fix allows us to specify the route call we're testing via a path param

* Update all existing uses of MockRouter to pass path param

* Add helpful error messaging

- e.g., in case a path gets typoed
2020-11-05 12:18:06 -08:00
Corey Robertson
64371392b0
[Fleet] Remove asterix from test file name (#82721)
* Revert "Revert "[Fleet] Allow snake cased Kibana assets (#77515)" (#82706)"

This reverts commit bc05e79b85.

* Rename test index pattern
2020-11-05 15:06:31 -05:00
Brian Seeders
c584376ef7 Skip failing suite (#81848) 2020-11-05 14:58:31 -05:00
Stuart Tettemer
eeebe580e3
Docs: Remove references to Goovy, JS and Py scripted fields (#82662) 2020-11-05 13:30:15 -06:00
Cauê Marcondes
62443a6a05
[APM] Filtering by "Type" on error overview sometimes causes an error 2020-11-05 16:29:27 -03:00
Patryk Kopyciński
9bff56df7d
[Security Solution] Fix Overview cypress tests (#82761) 2020-11-05 12:37:21 -06:00
Zacqary Adam Xeper
250fe67828
[Metrics UI] Add full custom metric UI to inventory alerts (#81929)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 12:23:57 -06:00
Constance
074ef6f4d8
[App Search] Implement initial Engine routing/navigation (#82549)
* [Setup] Update routes + role privileges

Routes: use generatePath to better match ent-search
Roles: We're using "Search UI" in the nav copy now, so we should update our vars accordingly

* Add new EngineNav and EngineRouter components

* Update existing components to use new EngineRouter/EngineNav

* Add App Search engine label & new SideNavItem component

* Add EngineRouter breadcrumbs

* [Refactor] DRY out i18n constants
2020-11-05 09:51:41 -08:00
Scotty Bollinger
ccc3e23620
[Workplace Search] Refactor nav constants (#82646)
* Move NAV constants to top level

This was only needed locally in Groups but we can to store all  nav constants in the global constants file

* Extract remaining nav constants

* Fix links to NAV in routers

* Use constant for path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 11:48:43 -06:00
Thom Heymann
1f37816d35
Filter out read access to config and telemetry obj (#82314)
* Filter out read access to config and telemetry obj

* Fix eslint errors
2020-11-05 17:39:54 +00:00
Alison Goryachev
340f85cdf7
[Watcher] Retain search and pagination values when watch list refreshes (#82651) 2020-11-05 11:58:29 -05:00
Devon Thomson
7c66880a11
[Time to Visualize] Embeddable Error Handling Without ReplacePanel (#82201)
Fixed embeddable error handling so that fatal errors are caught and displayed with an errorEmbeddable no matter when they occur.
2020-11-05 11:11:29 -05:00
Tyler Smalley
a89176e265
[build] Use 8.2 tag of ubi-minimal (#82688)
In kibana#82475 we prevented the update of crypto-policies as it's
currently not compatible with libnss. This recent latest tag includes
the crypto-policies which we need to avoid for now.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 08:01:20 -08:00
Scotty Bollinger
894e76f79e
[Enterprise Search] Write tests groups routes (#82669)
* Remove validation from groups route responses

Since this is a migration of known good endpoints, these aren’t necessary.

* Add tests for groups routes

* Remove unused types

* Remove registerWSGroupRoutes from groups test

This was removed in another commit and is no longer needed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 10:01:00 -06:00
Scotty Bollinger
7e5ca2944e
[Enterprise Search] Migrate shared SourceConfigFields component (#82608) 2020-11-05 10:00:43 -06:00
Bill McConaghy
6cf53a075c
[DOCS] Adding better documentation for required RBAC settings for alerting (#82375)
* Adding better documentation for required RBAC settings for alerting

* Bolding feature name and spelling out ampersand

* clarifying explanation of action privileges needed
2020-11-05 10:58:29 -05:00
Xavier Mouligneau
ef5287f901
[SECURITY SOLUTIONS] Bring Async Search Back (#82650)
* bring async search back to the security solutions

* remove id for timeline details searchStrategy

* fix events count

* fix total count

* update units

* update integration tests

Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-11-05 10:30:47 -05:00
Jonathan Budzenski
3c99839cf7 disable test 'allows to assign tags to the new visualization' 2020-11-05 08:37:16 -06:00
Alison Goryachev
ea0736e74a
[Remote clusters] Refactor tests (#82517) 2020-11-05 09:01:42 -05:00
Thomas Neirynck
051ed13858
[Maps] Convert ES-sources to typescript (#81951) 2020-11-05 08:56:11 -05:00
James Gowdy
f4386fc5b0
[ML] Updating analysis config schema (#82703)
* [ML] Updating analyss config schema

* better schema order
2020-11-05 13:41:16 +00:00
Kim S. Ly
52e8d1459c
[Lens] Remove visible title in workspace panel (#82234) 2020-11-05 14:33:56 +01:00
Corey Robertson
bc05e79b85
Revert "[Fleet] Allow snake cased Kibana assets (#77515)" (#82706)
This reverts commit 1cd477a793.
2020-11-05 07:19:36 -05:00
Jean-Louis Leysens
db8f98cc0c
[ILM] Fix breadcrumbs (#82594)
* added breadcrumb service and call on ILM pages

* add notices to legacy pattern services

* fix jest tests and create mock
2020-11-05 11:24:54 +01:00
Shahzad
7558fe1409
[UX]Swap env filter with percentile (#82246)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 11:22:15 +01:00
Pierre Gayvallet
926fe8915d
Add platform's missing READMEs (#82268)
* add missing readme

* update ascidoc
2020-11-05 10:40:15 +01:00
Maja Grubic
ef650f4be0
[Discover] Adding uiMetric to track Visualize link click (#82344)
* [Discover] Adding uiMetric around Visualize link click

* Change metric name

* Fixing wrong merge

* Applying PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-05 09:30:01 +00:00
Matthias Wilhelm
abc6abc95f
[Search] Add used index pattern name to the search agg error field (#82604) 2020-11-05 08:22:08 +01:00