Commit graph

39090 commits

Author SHA1 Message Date
Cauê Marcondes
7a5c3b482c
[APM] Fix Transaction duration distribution barchart clickarea (#84394)
* [APM] select transaction distribution by clicking on the entire bucket

* fixing margins and bucket click

* changing annotation color

* adding tooltip placement bottom

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 18:29:18 +01:00
Chris Roberson
6ae00fb514
[Monitoring] Convert Beats-related server files that read from _source to typescript (#85193)
* Beats to TS

* PR feedback

* Fix types

* Fix types

* Fix failing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 12:12:11 -05:00
Nathan Reese
8b6831a55a
[Maps] fix color-style disappears when mapping by percentiles when breaks are identical (#85654)
* [Maps] fix color-style disappears when mapping by percentiles when breaks are identical

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 10:05:59 -07:00
Walter Rafelsberger
a6e6b62658
[ML] Transforms: Support for missing_bucket in transform advanced pivot editor (#85758)
Adds support for missing_bucket with group-by configurations in the advanced editor for pivot configurations.
Previously, the editor would allow you to add the setting, but it would be stripped from the config once the transform gets created.
2020-12-14 17:51:18 +01:00
Sonja Krause-Harder
1b3a1bb385
Don't rollback on saved objects conflict errors. (#85131) 2020-12-14 17:36:25 +01:00
Yulia Čech
8858749ce4
[ILM] Added readonly field in hot phase (#85419)
* [ILM] Added readonly field in hot phase

* [ILM] Added readonly field in warm phase

* Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared_fields/readonly_field.tsx

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/schema.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Updated labels for the form

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2020-12-14 17:27:56 +01:00
Shahzad
eed6844004
[Uptime] Display tags in monitor list and details page (#85168) 2020-12-14 17:26:53 +01:00
Rudolf Meijering
8a34942f3f
Fix dead links to functional testing docs (#85097) 2020-12-14 17:00:53 +01:00
Yulia Čech
a8d088febd
Added hidden filter to data streams tab (#85028)
* Added hidden filter to data streams tab

* Fix i18n import

* Fixed tests

* hidden ds pr feedback

* Added includeHidden query to data streams list

* Changed how badge group renders data streams badges

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 16:54:06 +01:00
Cauê Marcondes
542a8aa1d4
[APM] Latency chart for overview (#84634)
* adding latency chart

* adding loading indicator

* fixing unit test

* fixing y-axis format

* fixing some stuff

* using urlhelpers

* adding latency aggregation type on the transactions overview api

* fixing transaction group overview route

* fixing merge problems

* breaking /transactions/charts into /latency and /thoughput

* adding unit tests

* fixing UI

* fixing i18n

* addressing pr comments

* fix api test

* refactoring some stuff

* addressing pr comments

* addressing pr comments

* adding latecy chart

* fixing test

* fixing api tests

* fixing api test

* fixing build

* addressing pr comments

* addressing pr comments

* refactoring some stuff

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 16:45:54 +01:00
Xavier Mouligneau
0dfcbe92ed
[SECURITY SOLUTIONS] Ask user to save timeline before leaving the app + bugs (#85693)
* fix clicking on host on netwrok detail page

* Fetch signal index at plugin level to avoid weird behavior

* bing back full screen timeline

* Show health check on timeline

* fix focus on modal of description and title

* fix focus on modal of description and title

* allow to know the next appId

* if user leave security solution and timeline has not been saved, ask them if they want to save it before leaving

* fix test + types

* Fix siem signal loading on plugin + UX on timeline with no data

* Add a callback to cleaner from solution + test

* fix bug + improve prompt leaving msg

* update note

* css improvements

* fix code to be true to our test

* miss one test

* update test

* fix unit test

* core review

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2020-12-14 10:33:59 -05:00
Alexander Wert
e458263ae4
Added transaction_ignore_urls as central config for the Python, .NET and Ruby APM agents (#85734) 2020-12-14 16:16:28 +01:00
Marco Liberati
1ff233189f
[Lens] Better disabled messages for Value labels popup (#85592)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 15:23:10 +01:00
Robert Oskamp
d4f4a2c94f
[ML] API integration tests - security_linux and security_windows modules (#85743)
This PR adds API integration tests to create and setup the security_linux and security_windows modules.
2020-12-14 15:17:25 +01:00
Shahzad
a06b8d1a7b
[Uptime] Log es queries in kibana logs on debug flag (#85387)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 15:01:05 +01:00
Nathan L Smith
1c16bcf851
Fix UX E2E tests (#85722)
They look for `.kbnLoadingIndicator` which is no longer there in the new loading indicator design. This changes it to look for an element that does exist and makes it a function in utils.

Change not.be.visible to not.exist in places where the element does not exist at in that state.
2020-12-14 07:34:54 -06:00
ymao1
ab07a003d4
Increasing default api key removalDelay to 1h (#85576)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 07:58:32 -05:00
Mikhail Shustov
fbb83af63d
align cors settings names with elasticsearch (#85738)
* align cors settings names with elasticsearch

* server.cors.origin: * --> server.cors.origin: ["*"]
2020-12-14 13:57:28 +01:00
Joe Reuter
4f48401b20
unskip tests and make sure submit is not triggered too quickly (#85567) 2020-12-14 13:35:01 +01:00
Vadim Dalecky
b01a327076
Row trigger 2 (#83167)
* feat: 🎸 add ROW_CLICK_TRIGGER

* feat: 🎸 wire row click event to UI Actions trigger in Lens

* feat: 🎸 add row click trigger to url drilldown

* feat: 🎸 add datatable to row click context

* feat: 🎸 pass in row index in row click trigger context

* feat: 🎸 add columns to row click trigger context

* feat: 🎸 fill values and keys event scope array

* feat: 🎸 generate correct row scope variables

* fix: 🐛 report triggers from lens embeddable

* feat: 🎸 add sample preview for row click trigger

* feat: 🎸 remove url drilldown preview box

* chore: 🤖 remove mock variable generation functions

* feat: 🎸 generate context and global variable lists

* feat: 🎸 preview event variable list

* feat: 🎸 show empty url error on blur

* feat: 🎸 add ability to always show popup for executed actions

* refactor: 💡 rename multiple action execution method

* fix: 🐛 don't add separator befor group on no main items

* feat: 🎸 wire in uiActions service into datatable renderer

* feat: 🎸 check each row if it has compatible row click actions

* feat: 🎸 allow passing data to expression renderer

* feat: 🎸 add isEmbeddable helper

* feat: 🎸 pass embeddable to lens table renderer

* feat: 🎸 hide lens table row actions which are empty

* feat: 🎸 re-render lens embeddable when dynamic actions chagne

* feat: 🎸 hide actions column if there are no row actions

* feat: 🎸 re-render lens embeddable on view mode chagne

* fix: 🐛 fix TypeScript errors

* chore: 🤖 fix TypeScript errors

* docs: ✏️ update auto-generated docs

* feat: 🎸 add hasCompatibleActions to expression layer

* feat: 🎸 remove "data" from expression renderer handlers

* fix: 🐛 fix TypeScript errors

* test: 💍 fix Jest tests

* docs: ✏️ update autogenerated docs

* fix: 🐛 wrap event payload into data

* test: 💍 add "alwaysShowPopup" test

* chore: 🤖 add comment requested in review

https://github.com/elastic/kibana/pull/83167#discussion_r537340216

* test: 💍 add hasCompatibleActions test

* test: 💍 add datatable renderer test

* test: 💍 add Lens embeddable input change tests

* test: 💍 add embeddable row click test

* fix: 🐛 add url validation

* test: 💍 add url drilldown tests

* docs: ✏️ remove url drilldown preview from docs

* docs: ✏️ remove preview from url templating

* docs: ✏️ add row click description

* chore: 🤖 move 36.5 KB bundle balance to url_drilldown

* test: 💍 simplify test case

* style: 💄 change types places

* refactor: 💡 clean up panel variable generation

* test: 💍 add getPanelVariables() tests

* fix: 🐛 generate runtime variables correctly

* fix: 🐛 improve getVariableList() and add tests for it

* feat: 🎸 add translation, improve types
2020-12-14 13:28:23 +01:00
Thom Heymann
5a8a5bfd4c
Add session id to audit log (#85451)
* Add session id to audit log

* fix naming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 11:34:52 +00:00
Alexey Antonov
3f7f0be2a0
[TSVB] Fields lists do not populate all the times (#85530) 2020-12-14 14:20:52 +03:00
Stratoula Kalafateli
acdca75563
[Visualize] Removes the external link icon from OSS badges (#85580)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 11:02:08 +02:00
MadameSheema
a719990616
fixes EQL tests (#85712)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 03:08:34 -05:00
Andrew Wilkins
ae64fc2592
[APM] enable 'log_level' for Go (#85511)
https://github.com/elastic/apm-agent-go/pull/859 adds
central config support for 'log_level' to the Go agent,
so we can now enable it in the UI too.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 13:47:35 +08:00
Joe Portner
7c9bc47bf8
ini 1.3.5 -> 1.3.7 (#85707) 2020-12-13 15:36:21 -05:00
Larry Gregory
96bb72f68d
Fix fleet route protections (#85626)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-13 12:40:50 -05:00
Chris Roberson
1e8f2f66eb
[Monitoring] Some progress on making alerts better in the UI (#81569)
* Some progress on making alerts better in the UI

* Handle edge case

* Updates

* More updates

* Show kibana instances alerts better

* Stop showing missing nodes and improve the detail alert UI

* WIP

* Fix the badge display

* Okay I think this is finally working

* Fix type issues

* Fix tests

* Fix tests

* Fix alert counts

* Fix setup mode listing

* Better detail page view of alerts

* Feedback

* Sorting

* Fix a couple small issues

* Start of unit tests

* I don't think we need this Mock type

* Fix types

* More tests

* Improve tests and fix sorting

* Make this test more resilient

* Updates after merging master

* Fix tests

* Fix types, and improve tests

* PR comments

* Remove nextStep logic

* PR feedback

* PR feedback

* Removing unnecessary changes

* Fixing bad merge issues

* Remove unused imports

* Add tooltip to alerts grouped by node

* Fix up stateFilter usage

* Code clean up

* PR feedback

* Fix state filtering in the category list

* Fix types

* Fix test

* Fix types

* Update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-13 10:20:29 -05:00
Patryk Kopyciński
95beef7637
[Security Solution] Refactor Timeline Notes to use EuiCommentList (#85256)
* [Security Solution] Refactor Timeline Notes to use EuiCommentList

* notes

* fix types

* unit tests

* selector

* uncomment Pinned tab

* note event details

* cleanup

* cleanup

* transparent background

* don't display elastic as an owner when note is created

* review + bugs fixed found

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-12-12 21:25:24 -05:00
Madison Caldwell
9719932297
[Security Solution][Detections][Threshold Rules] Threshold rule exceptions (#85103)
* Threshold rule exceptions

* Clean up

* Disable value lists for threshold rule exceptions

* lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-12 20:36:06 -05:00
Angela Chuang
7b32835226
[Security Solution] Alerts details (#83963)
* init alert details tab

* styles

* readMore button

* readmore btn

* field mappings

* add unit tests

* unit test

* fix unit test

* functional test

* isolate lineClamp component

* review

* unit test

* fix rule name in events table

* originalvalue

* unit test

* add close event details button

* rollback cypress configs

* cypress

* close events details

* remove Ip

* review

* review

* review

* review

* review

* review

* review

* fix i18n check

* fix import

* fix eslint

* use connect

* close flyout when expanded event doesn't exist in the list

* Update x-pack/plugins/security_solution/public/timelines/components/timeline/expandable_event/index.tsx

Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>

* fix types

* unit test

* fix rule status badge

* isolate host name renderer

* fixup

* cypress

* cypress

* defaultModel

* review comments

* unit test

* replace findIndex with some

* review

* remove defaultModel from toggle event action

* review

* cleanup defaultModel

* unit test

* rollback handleClearSelection

* fixup

* fix i18n

* cleanup defaultmodel

* cleanup

* summary value

* fix showing timeline details

* layout

* fix timeline memoization

* fix long query

* styling

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2020-12-12 08:24:32 +00:00
Tiago Costa
f28a80fd29
skip flaky suite (#62060) 2020-12-12 00:15:58 +00:00
Tiago Costa
d135b426af
skip flaky suite (#85098) 2020-12-12 00:10:44 +00:00
Tiago Costa
a1f5668577
skip flaky suite (#84020) 2020-12-12 00:00:25 +00:00
Tiago Costa
63cafd7cbf
skip flaky suite (#85671) 2020-12-11 23:56:35 +00:00
Tiago Costa
13d9753bef
skip flaky suite (#61612) 2020-12-11 23:51:39 +00:00
Tiago Costa
d7d9e06f37
skip flaky suite (#79389) 2020-12-11 23:47:01 +00:00
Jason Stoltzfus
31a1cc0541
[App Search] Add a Result Component (#85046) 2020-12-11 14:00:38 -05:00
Pierre Gayvallet
a4caffae2f
Improve and cleanup chrome helpMenu links (#82300)
* Improve and cleanup chrome helpMenu links

* update doc due to merge

* remove dev dependencies from test plugin

* update generated doc after merge

* update generated doc

* generated doc

* generated doc
2020-12-11 11:38:25 +01:00
Felix Stürmer
efe62acd80
[Logs UI] Add helper hooks with search strategy request cancellation (#83906) 2020-12-11 11:25:45 +01:00
Justin Ibarra
e5c7134925
[Detection Rules] Add 7.11 rules (#85506) 2020-12-10 21:45:44 -09:00
Frank Hassanabad
28738e6b4b
[Security Solution] Fixes CIDR, float, long, integer, array, and text based issues when using value lists in exceptions (#85191)
## Summary

Fixes different bugs/issues when using exceptions with value based lists for both the UI, the backend, and the large value based lists. See https://github.com/elastic/kibana/issues/79516, but this also fixes several other bugs found mentioned below.

For the front end UI:
* Adds the ability to specify value based lists that are IP Ranges when the source event is an IP. Before you could only match IP to IP and the IP Ranges lists could not be used. 
* Breaks down a few functions into smaller functions for unit test writing abilities.

You can now add ip ranges as list values for the UI when before it would not show up:
<img width="1035" alt="Screen Shot 2020-12-07 at 2 15 39 PM" src="https://user-images.githubusercontent.com/1151048/101406552-d6819b00-3896-11eb-9fb5-4c7c2ad93b2e.png">

For value based lists:
* Fixes text data type to use "and" between matching using `operator: 'and'` and changes it from a `terms query to a `match` query
* Adds new API for searching against types called `searchListItemByValues ` so that numeric, text, array based, and other non-stringable types can be sent and then the value based lists will push that to ElasticSearch. This shifts as many corner cases and string/numeric coercions to ElasticSearch rather than Kibana client side code.
* Adds ability to handle arrays within arrays through a `flatten` call.
* Utilizes the `named queries` from ElasticSearch for the new API so that clients can get which parts matched and then use that for their exception list logic rather than in-memory string to string checks. This fixes CIDR and ranges as well as works with arrays.

For the backend exception lists that used value based lists:
* Broke down the `filterEventsAgainstList` function into a folder called `filters` and the functions into other files for better unit based testing.
* Changed the calls from `getListItemByValues` to `searchListItemByValues` which can return exactly what it matched against and this will not break anyone using the existing REST API for `getListItemByValues` since that REST API and client side API stays the same.
* Cleaned up extra promises being used in a few spots that async/await automatically will create. 
* Removed the stringabilities and stringify in favor of just a simpler exact check using `JSON.stringify()`

For the tests:
* Adds unit tests to broken down functions
* Adds ip_array, keyword_array, text_array, FTR tests for the backend.
* Adds more CIDR and range based FTR tests for the backend.
* Unskips and fixes all the numeric tests and range tests that could not operate previously from bugs.

### Checklist

Delete any items that are not applicable to this PR.

- [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2020-12-10 18:07:47 -07:00
Trent Mick
2ea0816e57
[APM] add sanitize_field_names & transaction_ignore_urls vars to Node.js agent remote config (#85655) 2020-12-10 16:41:48 -08:00
John Dorlus
434d29795d
Skipped verifying license management tab on cloud in upgrade assistant and license management. (#85650)
* Added a check for the assertion that checks the number of tabs in the side nav. The License Management tab should not be on cloud since the app is disabled.

* add semicolon.

* We opted to skip the test on cloud.

* Removed unused var declaration.
2020-12-10 19:05:49 -05:00
Candace Park
4e4e55029c
[Security Solution][Endpoint][Admin] Api guard for paid policy features (#84667) 2020-12-10 18:53:55 -05:00
Tyler Smalley
c0f9de1f5a
Converts some Mocha unit tests to Jest (#85514)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-10 15:51:25 -08:00
Aaron Caldwell
8b2faf77a5
Add test handling for alert instantiation (#85632) 2020-12-10 16:25:55 -07:00
Pete Harverson
bf869422e1
[ML] Only show _doc_count for anomaly detection job summary count field (#85444)
* [ML] Only show _doc_count for anomaly detection job summary count field

* [ML] Use array filter for removing _DOC_COUNT field
2020-12-10 22:30:39 +00:00
Michael Olorunnisola
5897017ac5
[Security_Solution][Resolver] Update resolver load experience and disabled text (#85618) 2020-12-10 17:12:41 -05:00
Devon Thomson
ac189b8c25
Deangularize Dashboard (#82909)
Deangularized dashboard application
2020-12-10 16:46:50 -05:00