Commit graph

40503 commits

Author SHA1 Message Date
Devon Thomson dc4e94e0ba
[Time to Visualize] Unsaved Changes Badge (#91073)
* Added unsaved changes badge to dashboards. Removed (unsaved) from the dashboard title
2021-02-16 13:47:25 -05:00
Nathan Reese 0ecac0cabb
[Maps] fix reporting jobs fail when Elastic Maps Service (EMS) is unavailable (#90834)
* [Maps] fix Reporting jobs fail when Elastic Maps Service (EMS) is unavailable

* clean up test case names

* make tests more explicit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 11:47:04 -07:00
Nathan L Smith 3e7ce0c53e
TS project references for monitoring plugin (#91498)
Fixes #89293.
2021-02-16 12:44:15 -06:00
Spencer 9d8376d890
ship @kbn/ui-shared-deps metrics in separate step (#91504)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-16 11:42:26 -07:00
Kevin Logan 5686d85ac1
[Security Solution] add unsupported type to Endpoint Policy response (#91295)
* add unsupported type

* update types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 13:41:34 -05:00
Wylie Conlon d4f3420b41
[Docs] Clarify KQL and Lucene docs (#91065)
* [Docs] Clarify KQL and Lucene docs

* Code review suggestions
2021-02-16 13:06:25 -05:00
Devon Thomson 6f857dd7f3
[Time to Visualize] Combine Discard & Cancel (#91267)
* recombined discard and cancel button functionality
2021-02-16 13:03:56 -05:00
Larry Gregory d5aea9378a
Further optimize check privileges response validation (#90631) 2021-02-16 13:02:15 -05:00
Constance f2e4cce0a2
[App Search] Set up Curations routes & complete 'Edit Query' action in Analytics tables (#91052)
* Set up Curations routes

* Update EngineRouter/Nav with Curations

* Set up Curations find_or_create API

* [bug] Fix view action not working correctly for "" query

* Add Edit query action
- to call find_or_create curation API & navigate to curation page

+ fix copy string, only just noticed this :doh:

* Add/update unit tests for action column

- Refactor out into a single shared test helper file that both AnalyticsTable and RecentQueriesTable simply calls & runs (instead of copying and pasting the same tests twice into 2 diff files)
- note: test file can't be `.test.tsx` or Jest tries to automatically run it, which we don't want

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 10:00:29 -08:00
Shahzad a1a9769f83
[Uptime] increase flaky alert retry time (#91455) 2021-02-16 18:53:33 +01:00
Brian Seeders 95e6d13590
[CI] Use custom github action for backport (#91523) 2021-02-16 10:48:30 -07:00
Dmitry 2fe0d05375
[coverage] fix jest merging (#90915)
* [coverage] fix jest merging

* fix path to functional results

* revert wrong change

* fix ingest script

* fix ingest script

* [coverage plugin] change id to camelCase

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 18:02:56 +01:00
Anton Dosov 6569117b06
[Expressions] Cancel nested executions when main execution is canceled (#91486) 2021-02-16 17:52:03 +01:00
Wylie Conlon 16d86b022f
[Lens] Support histogram mapping type for all numeric functions (#90357)
* [Lens] Support histogram mapping type

* Fix field stats and allow max/min

* Fix types

* Revert to regular sample data

* Simplify server code

* Add test for edge case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 11:51:03 -05:00
Matthew Kime 5f500a3c69
Improved painless error toasts (#91346)
* better painless error modal
2021-02-16 10:47:30 -06:00
Shahzad 689c9fac70
[Uptime] Fix alert loading on error (#91453) 2021-02-16 17:47:10 +01:00
Wylie Conlon be17efd704
[Docs] Add note about TSVB axis scaling (#91211)
* [Docs] Add note about TSVB axis scaling

* Apply suggestions
2021-02-16 11:40:22 -05:00
Dario Gieselaar 9ae8ba8964
[APM] Add setup instructions for PHP agent (#91381)
Co-authored-by: Sergey Kleyman <sergey.kleyman@elastic.co>
Co-authored-by: Sergey Kleyman <SergeyKleyman@users.noreply.github.com>
2021-02-16 17:11:54 +01:00
renovate[bot] a59f49e506
Update dependency @elastic/charts to v24.6.0 (#91382)
* Update dependency @elastic/charts to v24.6.0

* Update donut chart snapshot

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2021-02-16 16:58:05 +01:00
Shahzad 1c093c9760
[User Experience app] fix e2e tests (#91423) 2021-02-16 16:54:50 +01:00
Nicolas Chaulet e8fea280bc
[Fleet] Create default Fleet Server policy with fleet server package (#90973) 2021-02-16 10:48:03 -05:00
Sonja Krause-Harder 58849bca38
[Fleet] Escape YAML string values if necessary (#91418)
* Use js-yaml.safeDump() to escape string values.

* Add unit test.

* Explicitly check for YAML special characters.

* Remove unnecessary imports.

* Use RegExp.prototype.test() for speed.
2021-02-16 16:23:53 +01:00
Quynh Nguyen bb653a40ae
[ML] Fix import missing range for File Data Visualizer, Discover card visible when disabled, texts (#91352)
This PR fixes several issues related to the Data Visualizer
2021-02-16 16:05:01 +01:00
Wylie Conlon f4714d1667
[TSVB] Add a new "Series Agg" to count the number of series (#91225)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 10:00:00 -05:00
Tiago Costa 86e035544e
chore(NA): assure bazel bin is available on kbn clean and reset commands (#91406) 2021-02-16 14:50:33 +00:00
Kerry Gallagher aa1f02489e
[Logs UI] Check for privileges with user management links (#91134)
* Wrap users management link with privileges check
2021-02-16 14:50:21 +00:00
Gidi Meir Morris 3a05b681ae
[Docs][Alerting] fixed link to TM settings (#91368)
Fixed link to TM settings doc
2021-02-16 14:49:07 +00:00
Maja Grubic 7fc56131c0
[Discover] Making source filters test run with fields API (#91404) 2021-02-16 13:27:25 +00:00
James Gowdy bfba5070a5
[ML] Adding index pattern runtime fields to anomaly detection wizards (#91168)
* [ML] Adding index pattern runtime fields to anomaly detection wizards

* hook refactor

* small refactor of search json

* fixing mml estimation error

* changes based on review

* sorting fields in metric selection

* using useMemo rather than useState

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 13:24:02 +00:00
Joe Reuter 7f1071149d
fix readonly error (#91104) 2021-02-16 13:46:02 +01:00
Joe Portner 2ef468ef82
Fixes session idle timeout (#91070)
* Fix calls to `/api/saved_objects_tagging/tags`

Seen on all pages.

* Fix calls to `/api/ui_counters/_report`

Seen on all pages.

* Fix calls to `/api/index_management/indices/reload`

Seen on page: /app/management/data/index_management

* Fix calls to `/api/watcher/watches`

Seen on page: /app/management/insightsAndAlerting/watcher/watches

* Fix calls to `/api/rollup/jobs`

Seen on page: /app/management/data/rollup_jobs/job_list

* Fix calls to `/api/cross_cluster_replication/follower_indices`

Seen on page: /app/management/data/cross_cluster_replication/follower_indices

* Fix calls to `/api/cross_cluster_replication/auto_follow_patterns`

Seen on page: /app/management/data/cross_cluster_replication/auto_follow_patterns

* Fix calls to `/api/transform/transforms` and `/api/transform/transforms/_stats`

Seen on page: /app/management/data/transform

* Fix calls to `/api/console/proxy`

Seen on page: /app/dev_tools#/console

* Fix calls to `/api/monitoring/v1/clusters` and `/api/monitoring/v1/elasticsearch_settings/check/cluster`

Seen on page: /app/monitoring
2021-02-16 07:19:41 -05:00
Stratoula Kalafateli 7169714bf7
[TSVB] Fixes the timeseries legend, renders the metric, gauge charts for series with empty strings (#90760)
* [TSVB] Fixes the legend for empty values and renders the metric, gauge charts

* Change i18n id

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 14:00:07 +02:00
Lukas Olson f06e722a99
[Search Sessions] Search session UI telemetry (#89950)
Co-authored-by: Liza K <liza.katz@elastic.co>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-02-16 11:28:13 +01:00
Joe Reuter 22bb8d39f0
switch to es archiver fixtures instead of sample data (#91397) 2021-02-16 11:27:33 +01:00
Stratoula Kalafateli 52cd0d94d5
[TSVB] Fixes chart scroll when legend has many items (#91394)
* [TSVB] Fixes chart scroll when legend has many items

* Fix functional test

* Follow another approach to work well with FF
2021-02-16 09:12:56 +02:00
Alejandro Fernández Gómez 7fab0e63bc
[Logs UI] Replace custom useInterval with react-use version (#90966)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 16:46:38 -05:00
Dima Arnautov a8e1e47de6
[ML] Anomaly Detection alert initialisation from the ML app (#91283) 2021-02-15 20:47:00 +01:00
John Schulz 0a5e054fdc
[Fleet] Don't upgrade agent(s) in a managed policy (#91303)
## Summary

 - Make sure any agents requesting to be upgraded, are not enrolled in a managed policy.
 - `force: true` will only bypass agent / kibana version checks. It will not bypass managed policy check. To workaround, the enrolled policy should be changed to unmanaged (`is_managed: false`) as we do with enroll, reassign, etc.
 - Took more efficient approach to bulk actions. One `bulkGet` for N agents/policies vs N `get`s  approach used for bulk reassignment of agents. See discussion in https://github.com/elastic/kibana/pull/88688/files#r568941761
 - [x] API
 - [ ] UI
 - [x] tests

### 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


### Manual tests
#### upgrade one
```
curl --location --request POST 'http://localhost:5601/api/fleet/agents/8d9748e0-6d52-11eb-8cbd-47e38cd1c8de/upgrade' --header 'kbn-xsrf: <string>' --header 'Content-Type: application/json' --header 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' --data-raw '{
    "version": "8.0.0"
}'
{"statusCode":400,"error":"Bad Request","message":"Cannot upgrade agent 8d9748e0-6d52-11eb-8cbd-47e38cd1c8de in managed policy bf319100-6d50-11eb-8859-15a87f509a99"}
```

```
curl --location --request POST 'http://localhost:5601/api/fleet/agents/8d9748e0-6d52-11eb-8cbd-47e38cd1c8de/upgrade' --header 'kbn-xsrf: <string>' --header 'Content-Type: application/json' --header 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' --data-raw '{
    "version": "8.0.0", "force": true
}'
{"statusCode":400,"error":"Bad Request","message":"Cannot upgrade agent 8d9748e0-6d52-11eb-8cbd-47e38cd1c8de in managed policy bf319100-6d50-11eb-8859-15a87f509a99"}
```

#### bulk upgrade
```
curl --location --request POST 'http://localhost:5601/api/fleet/agents/bulk_upgrade' --header 'kbn-xsrf: <string>' --header 'Content-Type: application/json' --header 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' --data-raw '{
    "version": "8.0.0",
    "agents": [
        "8d9748e0-6d52-11eb-8cbd-47e38cd1c8de"
    ]
}'
{}
```

```
curl --location --request POST 'http://localhost:5601/api/fleet/agents/bulk_upgrade' --header 'kbn-xsrf: <string>' --header 'Content-Type: application/json' --header 'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==' --data-raw '{
    "version": "8.0.0",
    "agents": [
        "8d9748e0-6d52-11eb-8cbd-47e38cd1c8de"
    ], "force": true
}'
{"statusCode":400,"error":"Bad Request","message":"Cannot update agent in managed policy bf319100-6d50-11eb-8859-15a87f509a99"}```
```
2021-02-15 13:36:39 -05:00
Pierre Gayvallet f1f206b2c8
Legacy ES client: use config.httpAuth instead of config.hosts.auth (#91276)
* Use httpAuth instead of host.auth

* NIT
2021-02-15 18:34:46 +01:00
Vadim Dalecky 8ed1c3ca3e
Url template editor (#88577)
* feat: 🎸 set up Storybook for URL template editor

* feat: 🎸 add basic syntax highlighting

* feat: 🎸 add autocompletion example

* feat: 🎸 add Handlebars language

* fix: 🐛 first register language

* feat: 🎸 add url and handlebars language parsing

* feat: 🎸 use simple Handlebars language

* refactor: 💡 move <VariablePopover> to a separate file

* feat: 🎸 add Monaco editor to URL drilldown

* feat: 🎸 remove editor line numbers

* feat: 🎸 allow user to provide Handlebars variables

* feat: 🎸 wire in URL drilldown variables into Monaco editor

* feat: 🎸 add metadata to event level variables

* feat: 🎸 allow to specify Handlebars variable kind

* feat: 🎸 add global variables to autocompletion

* refactor: 💡 restructure event and context variable code

* feat: 🎸 sort variables by scope group

* feat: 🎸 add meta information to context variables

* docs: ✏️ use correct variable labels

* feat: 🎸 fix component demo props

* feat: 🎸 improve highlighting of URL parts

* feat: 🎸 improve syntax highlighting colors

* feat: 🎸 improve highlighting colors

* feat: 🎸 add color to url query parameter key

* feat: 🎸 improve visual layout url editor

* feat: 🎸 highlight URL slashes with light color

* feat: 🎸 connect URL editor to state

* feat: 🎸 tweak URL parameter colors

* feat: 🎸 improve URL schema color

* feat: 🎸 insert variables on click in variable dropdown

* fix: 🐛 fix unit tests and translation

* test: 💍 fix drilldown tests after refactor

* feat: 🎸 add dark mode support to URL template editor

* test: 💍 fix URL drilldown test after adding dark mode support

* fix: 🐛 use text color which can be converted to dark mode

* test: 💍 fill in URL template in monaco editor

* fix: 🐛 fix translation key

* chore: 🤖 update license headers

* chore: 🤖 update license headers

* feat: 🎸 preview values of global variables

* feat: 🎸 preview values of context variables

* chore: 🤖 fix url editor Storybook config

* fix: 🐛 make translation key unique

* feat: 🎸 stop Esc key propagation in URL editor

* feat: 🎸 reduce editor height

* feat: 🎸 set example URL once URL drilldown is created

* feat: 🎸 add word wrapping to URL editor

* feat: 🎸 use EUI variable in SCSS

* feat: 🎸 add "Example: " prefix to default template

* feat: 🎸 do not insert extra brackets

* feat: 🎸 make URL param values same color as text

* perf: ️ make URL drilldown config component lazy loaded

* test: 💍 remove default URL drilldown template

* fix: 🐛 disable autocompletion popup while typing

* style: 💄 don't use "Example: " prefix in default URL
2021-02-15 18:24:58 +01:00
Alexey Antonov 4d01440012
[Discover] Could not expand cell content in DiscoverGrid (#91289)
Closes: #90796

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 20:17:21 +03:00
Ahmad Bamieh 643794eb9f
fix ui counters flaky test (#91372)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 19:06:40 +02:00
Yulia Čech 91d3a6ac94
[ILM] Copy update (#91100)
* Added copy adjustments, fixed wrong capitalization of titles and swap primary buttons back to correct order

* Apply suggestions from code review

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: debadair <debadair@elastic.co>

* Fixed eslint issues and added labels for buttons

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: debadair <debadair@elastic.co>
2021-02-15 18:00:47 +01:00
Maja Grubic 4d4856c9ce
[Discover] Fix icon for conflicting fields (#90641)
* [Discover] Fix icon for conflicting fields

* Fix tooltip text a bit

* Fix failing snapshot

* Minor code fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 16:47:28 +00:00
Rudolf Meijering bbc24b375e
Debug flaky test (#90762)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 16:55:36 +01:00
Marta Bondyra 8127103a71
[Lens] Fix partial move on datatable (#90630)
* [Lens] Fix partial move on datatable

* test

* fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 16:16:39 +01:00
Joe Reuter 0817e98032
[Lens] Make sure telemetry shape is always the same (#91129) 2021-02-15 16:14:50 +01:00
Lukas Olson 42e11e6763
[data.search.session] Server telemetry on search sessions (#91256)
* [data.search.session] Server telemetry on search sessions

* Update telemetry mappings

* Added tests and logger

Co-authored-by: Liza K <liza.katz@elastic.co>
2021-02-15 16:48:16 +02:00
Matthias Wilhelm 2db193b4ed
[Discover] Fix toggling multi fields from doc view table (#91121) 2021-02-15 15:12:24 +01:00
Walter Rafelsberger 2f845dd9f9
[ML] Data Frame Analytics: ROC Curve Chart (#89991)
Adds the ROC curve chart to the results page for classification jobs in the evaluate section.
2021-02-15 14:49:20 +01:00