Commit graph

39498 commits

Author SHA1 Message Date
Alejandro Fernández Gómez
1a9836b296
[Logs UI] Add <LogStream/> documentation to the infra Storybook (#87169)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-01-12 17:33:50 +01:00
Joe Reuter
807e8bdeb2
Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
Alexey Antonov
0b7e83f736
[TSVB] Allow custom label for fields via index pattern field management (#84612)
* [TSVB] Allow custom label for fields via index pattern field management

Closes: #84336

* replace saveObject, elasticsearch client to new one

* fix CI

* update schema

* fix Top Hit

* some changes

* partially move getting fields into client side

* fix PR comments

* fix issue with getting fields

* move SanitizedFieldType to common types

* fix issue on changing index pattern

* fix issue

* fix regression

* some work

* remove extractFieldName, createCustomLabelSelectHandler

* request/response processors should be async

* some work

* remove tests for createCustomLabelSelectHandler

* fix table

* fix placeholder

* some work

* fix jest

* fix CI

* fix label for table view

* test: visualize app visual builder switch index patterns should be able to switch between index patterns

* fix functional tests

* fix sorting

* fix labels for entire timerange mode

* add createFieldsFetcher method

* table view - fix pivot label

* fix PR comments

* fix issue with selecting buckets scripts

* fix types

* Update create_select_handler.test.ts

* fix PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 19:28:45 +03:00
igoristic
ef441cca24
Alerts Status on clusters listing page (#87969) 2021-01-12 11:06:48 -05:00
Trent Mick
48efd29a53
Bump elastic-apm-node to v3.10.0 for @elastic/elasticsearch instrumentation (#87952) 2021-01-12 07:57:55 -08:00
Davis Plumlee
25bac19321
[Security Solution][Detection Rules] Fixes Threshold rule schema validator (#87946) 2021-01-12 08:57:06 -07:00
Bohdan Tsymbala
752a2bd943
Extracted some parts of server side validation from schema into shared space. Changed the schema structure a bit to avoid casting inside validation code. (#87523) 2021-01-12 16:31:35 +01:00
Nathan L Smith
3113d84c0f
Fix link in README (#87943)
Was using an MD link but fixed it to use an asciidoc one.
2021-01-12 08:48:31 -06:00
Tiago Costa
638b5e2a08
skip flaky suite (#87968) 2021-01-12 14:42:04 +00:00
Anton Dosov
d3303f28bb
[Search] Search Sessions with relative time range (#84405) 2021-01-12 14:51:04 +01:00
Paul Tavares
02695ef5ad
[Fleet] Show Count of Agent Policies on Integration Details (#86916)
* component to show count of agent policies for integration
* API route and service to return stats of package usage
2021-01-12 07:56:05 -05:00
Aleh Zasypkin
31e66979b9
Do not embedd credentials into ES URL and enable anonymous tests. (#87987) 2021-01-12 13:51:54 +01:00
Dima Arnautov
83e8fe8ef0
[Transform] Show destination index mapping warning for the latest transform (#87858)
* [Transform] show callout for the latest transform

* [Transform] fix flex styles

* [Transform] change to vertical layout, update warning message

* [Transform] fix messages
2021-01-12 13:03:47 +01:00
renovate[bot]
5598df9f7d
Update dependency vega to ^5.18.0 (#87921)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 12:07:16 +02:00
Joe Reuter
94b02d97ed
[Lens] Implement deep linking and embedding (#84416) 2021-01-12 10:45:53 +01:00
Alexey Antonov
7451288a81
Remove src/plugins/visualizations -> src/plugins/visualize cyclic dependencies (#87797)
* Remove src/plugins/visualizations -> src/plugins/visualize cyclic dependencies

Part of #84750

* fix types
2021-01-12 12:35:54 +03:00
Andrew Goldstein
46083c0973
[Security Solution] Accessibility (a11y) fixes (#87783)
## [Security Solution] Accessibility (a11y) fixes

This PR fixes the following accessibility (a11y) issues:

- Fixes an issue that prevented tabbing through all elements on pages with embedded Timelines
- Fixes an issue where the Timeline data providers popover menu was not displayed when Enter is pressed
- Fixes an issue where duplicate draggable IDs caused errors when re-arranging Timeline columns
- Fixes an issue where Timeline columns could not be removed or sorted via keyboard
- Fixes an issue where focus is not restored to the `Customize Columns` button when the `Reset` button is pressed
- Fixes an issue where filtering the `Customize Event Renderers` view via the input cleared selected entries
- Fixes an issue where the active timeline button wasn't focused when Timeline is closed
- Fixes an issue where the `(+)` Create / Open Timeline button's hover panel didn't own focus
2021-01-12 01:02:53 -07:00
Tiago Costa
5dca937c01
chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888)
* chore(NA): move reporting plugin test fixtures out of __tests__ folder

* fix(NA): fix a test import
2021-01-12 02:44:07 +00:00
Tiago Costa
e8285668a7
chore(NA): move missing apm plugin tests out of __tests__ folder (#87894) 2021-01-12 02:43:03 +00:00
Dominique Clarke
ca31bd80b6
[Uptime] Tests/uptime testing utils (#87650)
* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* update mock core

* combine wrappers into one custom render function

* split enzyme helpers and rtl helpers into different files and adjust types

* adjust types

* spread core on render function

* remove unnecessary items from MLJobLink test

* update use_monitor_breadcrumbs test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 20:02:23 -05:00
Phillip Burch
f54f155305
[Metrics UI] Add APM, uptime and create alert links to overlay (#87883)
* Add APM, uptime and create alert links to overlay

* Remove unused i18n
2021-01-11 18:36:39 -06:00
Nathan Reese
ddf1b67559
[Maps] move map embeddable display properties to map settings (#86395)
* [Maps] move map embeddable display properties to map settings

* update uptime EmbeddedMap

* tslint

* more cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:18:01 -07:00
Patryk Kopyciński
1e7c3f88ec
[Security Solution] Fix sorting on unmapped fields in Timeline Events… (#87241)
* [Security Solution] Fix sorting on unmapped fields in Timeline Events table

* set unmapped_type to the column type

* add missing types

* Update saved_object_mappings.ts

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-01-11 18:09:38 -05:00
Søren Louv-Jansen
7cd1fa3167
[APM] Cleanup: Remove isValidCoordinateValue and getResponseTimeTooltipFormatter (#87836) 2021-01-11 23:43:42 +01:00
Constance
cf086b678b
[App Search] Minor const cleanup (#87885)
* DRY out repeated DOCUMENTS_TITLE

* Move temporary title const's in engine folder to their own respective folders

- might as well get it set up early + prevents us from forgetting to clean this up later

* Update engine nav & engine router files
2021-01-11 13:52:24 -08:00
Dominique Clarke
02f7956db3
[Uptime] Waterfall Chart - enable timings for local files by leveraging total time (#87424)
* uptime waterfall enable timings for static files by leveraging total time

* update cases for when their is no waterfall timing available

* add showTooltip propertier to WaterfallDataSeriesConfigProperties

* remove content downloading from the legend

* add mime type to content downloading label

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:35:02 -05:00
ymao1
666af32be4
[Alerting] Showing confirmation modal on Alert Add/Edit when flyout closed without saving and changes made. (#86370)
* Adding hasChanged check and showing confirmation modal if something has changed

* Showing confirmation always on close

* Adding functional test

* Setting name and tags for APM alerts using initial values instead of setAlertProperty

* Checking for alert param changes separately

* Checking for alert param changes separately

* Fixing functional test

* Resetting initial alert params on alert type change

* Fixing duplicate import

* Cloning edited alert

* PR fixes

* PR fixes

* Updating modal wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:16:10 -05:00
Rudolf Meijering
3ef7bd3197
Workaround https://github.com/elastic/elasticsearch/issues/67147 (#87615)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 21:39:23 +01:00
Rudolf Meijering
f8b1cdd81d
Prevent kibana crashing when multiple processes start APM telemetry task in parallel (#87645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 21:38:54 +01:00
Dmitry
b10be9ec6f
[coverage] do not collect stats for mocha (#87859) 2021-01-11 21:00:00 +01:00
Joe Portner
1927556729
Update reporting docs (#87651) 2021-01-11 14:52:54 -05:00
Lisa Cawley
a9797999a1
[ML] Use documentation link service in more ML pages (#87389) 2021-01-11 11:39:04 -08:00
Chris Roberson
ff8d30bc6c
[Monitoring] Stop using constructor.name for logstash pipelines (#87386)
* Use typeString instead

* Used wrong type string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 14:32:19 -05:00
Nathan Reese
89e7cd6808
[maps] abort sync data if any data request fails (#87381)
* [maps] abort sync data if any data request fails

* review feedback

* fix broken rename of e to error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:28:24 -07:00
Frank Hassanabad
2658855cb7
Adds workaround for hapi h2o2 proxy issue for DELETE REST calls that have bodies in developer mode (#87270)
## Summary

When you run Kibana in developer mode you have 3 random digits assigned to your URL and we proxy things through a [h2o2 proxy](https://github.com/hapijs/h2o2) to help the developers with development with regards to proxies

```ts
node --max-old-space-size=2048 scripts/kibana --dev
```

However when you try to send a body with the DELETE verb in the browser such as using the `security_solution` and try to delete a rule:
<img width="640" alt="Screen Shot 2021-01-04 at 8 06 15 PM" src="https://user-images.githubusercontent.com/1151048/103602057-53b92380-4ec8-11eb-972c-7e57317bccab.png">

You get an error toaster showing up who's content is "Bad Request":
<img width="457" alt="Screen Shot 2021-01-04 at 8 03 14 PM" src="https://user-images.githubusercontent.com/1151048/103601947-05a42000-4ec8-11eb-94d9-0ea834a20310.png">

The reason for this bug looks to be from our proxy usage of `h2o2` when we are in development mode where it removes `content-length` when you send a body with a `DELETE`. I created a bug and workaround for the `h2o2` project directly:
https://github.com/hapijs/h2o2/issues/124

This fix here is the workaround applied to Kibana. With this workaround applied there should be no more error toasters for developers.

Additional fixes/improvements are:
* I ported the unit tests from `src/core/server/http/http_server.test.ts` to `src/core/server/http/base_path_proxy_server.test.ts` since the `base_path_proxy_server` did not have any unit tests. I also added additional unit tests to cover the specific use cases that are in `base_path_proxy_server`
* I fixed the placement of some tests from `src/core/server/http/http_server.test.ts` where there were a few that were under the wrong describe block and I changed a few `it` -> `test` as it looks like that file should be consistent with `test` instead of odd mixture of `it`.

### 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
2021-01-11 12:15:02 -07:00
Kevin Logan
379f9c9646
[Security Solution] ensure that license is preserved when loading policy details (#87780) 2021-01-11 13:55:15 -05:00
Gidi Meir Morris
f384c484b7
[Task Manager] adds additional polling stats to Task Manager monitoring (#87766)
Adds additional polling stats to Task Manager monitoring:

- **duration**: Running average of polling duration measuring the time from the scheduled polling cycle start until all claimed tasks are marked as running
- **claim_conflicts**: Running average of number of version clashes caused by the markAvailableTasksAsClaimed stage of the polling cycle
- **claim_mismatches**: Running average of mismatch between the number of tasks updated by the markAvailableTasksAsClaimed stage of the polling cycle and the number of docs found by the sweepForClaimedTasks stage
- **load** - Running average of the percentage of workers in use at the end of each polling cycle.
2021-01-11 18:32:24 +00:00
Chris Roberson
d4b3ea9c3d
Ensure we use the right duration for messaging on this alert (#87579)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:27:32 -05:00
Tyler Smalley
c2a556bb70
[CI] Ensure checkout is cleaned up in packer cache script (#87762)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 10:15:19 -08:00
Justin Ibarra
f12228e635
[Detection Rules] Add 7.11 rules (#87422)
* [Detection Rules] Add 7.11 rules
* add empty array for missing technique
2021-01-11 08:54:38 -09:00
renovate[bot]
03ef089236
Update dependency vega-tooltip to ^0.25.0 (#87472)
* Update dependency vega-tooltip to ^0.25.0

* Update yarn.lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2021-01-11 19:36:25 +02:00
Sandra Gonzales
61987df922
[Fleet] use package storage when getting a package (#85337)
* getPackageFromSource to use package storage

* fix type

* use bulkGet

* add data streams and policy templates to package info from storage

* fix merge conflict

* comment out policy_templates for now

* add policy_templates to package info, remove required inputs from parseAndVerifyPolicyTemplates

* add storage assets to cache

* tidy up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:35:11 -05:00
Cauê Marcondes
e3455ce35b
[APM] latencyAggregationType is not persisted when navigation to Transaction overview to detail (#87046)
* persisting latency aggregation type

* addressing PR comments

* removing useLatencyAggregationType hook

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 18:31:16 +01:00
Tiago Costa
183cf56fcd
chore(NA): move maps plugin test fixtures out of __tests__ folder (#87764)
* chore(NA): move maps plugin test fixtures out of __tests__ folder

* chore(NA): last missing __tests__ folders renamed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:14:46 +00:00
Alejandro Fernández Haro
e5c812e783
[Application Usage] Rollups: log.debug instead of log.warn (#87842) 2021-01-11 16:54:10 +00:00
Alejandro Fernández Haro
5a69310441
[Application Usage] TrackApplicationView without applicationUsageTracker (#86106)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:37:43 +00:00
Marco Liberati
628dd17be6
[Inspector] Use "untitled" filename for panels with no title in dashboard (#86333)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:51:32 +01:00
Marco Liberati
132e85144b
[Lens] Add specific IP and Range/Interval sorting to datatable (#87006)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:51:00 +01:00
Christos Nasikas
a1931acdc5
[Security Solution][Case] Attach alerts to cases: Tests (#86305)
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:44:35 +02:00
Thomas Watson
5c719e9ad9
Document how Node.js should be upgraded (#87450)
* Document how Node.js should be upgraded

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Don't show version numbers as code snippets

* Add information about .ci/Dockerfile edge-case

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-01-11 16:32:33 +01:00