Commit graph

44796 commits

Author SHA1 Message Date
Lukas Olson 196eb7b6a9
[data.search.autocomplete] Move autocomplete method to UI settings (#106331)
* [data.search.autocomplete] Move autocomplete method to UI settings

* Use select rather than boolean

* Add ftue tour

* Make a select rather than text box

* Only show when focused and first time page is loaded

* Add docs link

* Reverse order of sections

* Update docs/concepts/index.asciidoc

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

* Update docs/concepts/index.asciidoc

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

* Docs updates

* setting

* telemetry

* Add links to docs

* Fix translations

* Fix failing test

* Fix test

* Fix tests

* Revert changes to querybar service

* Fix discover query

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-07-27 20:57:12 -07:00
Ross Wolf b8522b7d70
[Detection Rules] Add 7.14 rules (#106933) 2021-07-27 19:58:29 -06:00
Dominique Clarke 0ad5f75bae
[Uptime] fix alerts flyout flaky tests (#106925)
* focus uptime tests

* update timeout time for alert confirm button

* await async requests

* check for alert name input before attempting to set value

* remove focused tests

* ensure that the alertNameInput exists after opening flyout
2021-07-27 21:36:17 -04:00
Ece Özalp 79edaf5dab
updates UX of threat intel tab (#106609) 2021-07-27 18:56:18 -04:00
Kevin Logan c8e8f9703f
add off switches (#106861)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 18:48:40 -04:00
Tyler Smalley f46b96a367 skip flaky suite (#106650) 2021-07-27 15:36:02 -07:00
Josh Dover 20c4716ced
Add ability for types to define an excludeOnUpgrade hook (#106534)
* Add ability for types to define an exclude from upgrade hook

* Update test to use 7.13 fixture

* Add 404 handling to oldest action task query

* Update api docs

* Update and add unit tests

* Rename deleteOnUpgrade to excludeOnUpgrade

* Disable reporting browser download for integration test

* Update exports and TSDocs

* Disable reporting plugin entirely

* Typo in config key name

* Update api docs

* Fix eslint

* Add timeouts for hooks

* Make adjustments to getOldestIdleActionTask

* Add type name to log messages for failed hooks

* Update api docs
2021-07-27 17:32:35 -04:00
Tiago Costa 1b8d8d183e
chore(NA): moving @elastic/datemath to babel transpiler (#106860)
* chore(NA): first custom rules for jsts_transpiler

* chore(NA): update jsts_transpiler macro

* chore(NA): moving @elastic/datemath to babel transpiler

* chore(NA): change gitignore rules for bazel
2021-07-27 16:44:36 -04:00
Andrew Goldstein 4d92dafa9e
[Observability RAC] Alerts table post-EuiDataGrid style updates (#106349)
## [Observability RAC] Alerts table post-`EuiDataGrid` style updates

This PR updates styles in the Observability `Alerts` table, as a follow-up to the [TGrid migrating to use `EuiDataGrid` for rendering](https://github.com/elastic/kibana/pull/106199), and [this PR](https://github.com/elastic/kibana/pull/105446), which improved the alerts table columns.

- The `Reason` column uses up the remaining width, a follow-up task from https://github.com/elastic/kibana/pull/105446
  - This task was originally tracked by https://github.com/elastic/kibana/issues/105227
- Increased the font weight and vertically aligned the `Actions` header with the other columns
- ~Removed the `Status` column~ (EDIT: we won't remove this, per a discussion w/ UX)
- Increased the width of the `Triggered` column
- ~Renamed the `Duration` column to `Alert duration`~ (EDIT: we won't rename this, per a discussion w/ UX)
- Eliminated the gap between actions
- Added truncation to the `Reason` column

### Before

![before](https://user-images.githubusercontent.com/4459398/126430458-89440150-c10b-43b1-b0b4-2044ddfc22a8.png)

### After

<img width="1280" alt="after" src="https://user-images.githubusercontent.com/4459398/126716690-be310fdf-3760-4014-998b-3c89099c2564.png">

### Desk testing

- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:

```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```

cc @mdefazio
2021-07-27 14:41:19 -06:00
Cauê Marcondes 2bbca69024
[APM] Return default error message when log and exception are not available (#106890) 2021-07-27 16:27:10 -04:00
Ece Özalp 864469d84b
skips test (#106889) 2021-07-27 16:21:29 -04:00
Kaarina Tungseth edafb6dfe2
[DOCS] Updates Monitoring images (#106902) 2021-07-27 15:12:30 -05:00
Jonathan Budzenski 4c3f86d1b2
[build] Add task to build example plugins (#104194)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 15:06:40 -05:00
Stef Nestor f66bf62e1f
[DOC] server.basePath vs server.rewriteBasePath (#106798)
* server.basePath vs server.rewriteBasePath

Moving content to make pronoun commentary applicable to correct nouns. Lined up to https://www.elastic.co/guide/en/kibana/6.8/settings.html

* Apply suggestions from code review

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-07-27 12:48:31 -07:00
Dima Arnautov b17200a2e6
[ML] Model memory state test for Anomaly Detection jobs health rule type (#106763) 2021-07-27 14:39:28 -04:00
Byron Hulcher 925c9006ef
[App Search] Attempt to add protocols to crawler urls when they are submitted for validation (#106764)
* Add validate_url route to crawler routes

* Add getDomainWithProtocol to crawler add domain form utils

* AddDomainLogic.actions.validateDomain now attempts to fix protocols for urls

* Apply suggestions from code review for AddDomain utils

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-27 14:26:00 -04:00
Dario Gieselaar 0d5d453af2
[APM] Update ES archive for tests (#106837) 2021-07-27 14:16:03 -04:00
Greg Thompson 566c16ac1b
Upgrade EUI to v36.0.0 (#106334)
* eui to v36.0.0

* i18n tokens

* remove temp styled-components types

* euiemptybutton size updates

* betanotification size prop

* i18n snapshot

* functional timeout

* beta badge unit test
2021-07-27 13:12:00 -05:00
gchaps a059395155
[DOCS] Adds terms to glossary (#106339) 2021-07-27 11:04:21 -07:00
Constance 63bedaa285
[Enterprise Search] Set up automated a11y tests (#106765)
* Set up a11y test/config

* Add product card checks

* Add setup guide checks

* Add documentation
2021-07-27 10:27:27 -07:00
Yuliia Naumenko f589c2fc29
[Alerting] Rename alertTypeRegistry to ruleTypeRegistry according to the new terminology. (#106519)
* [Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology.

* fixed path

* fixed type checks

* fixed type checks

* [Alerting] Rename alertTypeRegistry to ruleTypeRegistry.

* Apply suggestions from code review

Co-authored-by: ymao1 <ying.mao@elastic.co>

* fixed type checks

* fixed tests

* fixed merge issues

* fixed merge issues

* fixed tests

* fixed tests

* fixed functional tests

Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 10:03:00 -07:00
Kaarina Tungseth 833b12ecc1
[DOCS] Updates Lens and editor pages for 7.14 (#104756)
* [DOCS] Lens features and changes for 7.14

* Aggregation reference

* Formatting

* Fixes terminology

* Updates from 8-Jul meeting

* Terminology

* Updates terminology, images, and tutorial steps

* Update docs/user/dashboard/lens-advanced.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/user/dashboard/create-panels-with-editors.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/user/dashboard/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Comments from review

* Cleans up unused images

* Fixes image reference

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2021-07-27 11:58:42 -05:00
Zacqary Adam Xeper b5e553650d
[Fleet] Add package policy upgrade API (#103017)
* Add Integrations page callout for package upgades

* Fix props

* Add missing file

* Add integrations upgrade callout message

* Add link to updates available tab

* Fix merge

* Upgrade ppolicies UI WIP

* Initial upgrade dry run API

* Add upgrade method

* Move overridePackageInputs and use for upgrade method

* Add new variables to dry run diff

* Revert UI changes to uto upgrade wizard

* Add vars and streams to error keys

* Type fix

* Fix jest

* Fix types

* Fix typecheck

* Fix types

* Add integration test for dry run API

* Flesh out test cases

* Clean up error responses for dry runs

* Fix failing tests

* WIP: Add (failing for now) test case for package upgrade w/ error

* Add compiled_stream to test API payload

* Fix failing test case for automatic upgrade

* Fix compiled stream in package policy upgrade

* Remove fleet and agent setup from integration test

* Unload esarchiver fixtures in api integration test

Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 12:58:24 -04:00
Kyle Pollich b35d6b18a3
Fix breadcrumbs on agent policy sub-tabs (#106844) 2021-07-27 11:38:50 -04:00
Ignacio Rivas 374de9dbc5
[Ingest pipelines] Add copy_from to set processor (#104070)
* fix up validation conditions for fields

* add tests and fix prettier errors

* Small refactor and fix tests

* Fix copy surrounding error handling

* Clean up unnecessary boilerplate from tests

* Fix i18n error

* Keep optional select next to bound input

* Pass disabled prop as boolean

* fix test matchers

* No need to whitelist fields anymore

* Small CR changes

* Convert optional inputs to toggle state

* Fix testcase copy

* address CR suggestions

* address CR changes

* Fix i18n

* Fix labelAppend link alignment
2021-07-27 18:28:30 +03:00
Frank Hassanabad 5dd68dd7b3
[Security Solutions] Removes deprecated types in kbn-securitysolution-* for newer kbn-es-query types (#106801)
## Summary

Fixes https://github.com/elastic/kibana/issues/105731, by replacing these `any` types:

```json
type IFieldType = any;
type IIndexPattern = any;
type Filter = any;
```

With the types from `es-query` which are:
* IndexPatternFieldBase
* IndexPatternBase
* Filter

Note: I had to do a few creative casting to avoid having to use `FieldSpec` since that is not within the package `es-query` and is not planned to be within that package or another package for at least a while if ever.

### 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-07-27 09:12:02 -06:00
Alexey Antonov fcaa4aaf40
[TSVB] [Table] js -> ts conversion (#105094)
* table js -> ts

* remove any's

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 18:07:43 +03:00
Nathan L Smith a6211f86f2
Allow editing of APM rules (#106598)
By pulling out most of the things that depend on the URL into where we open the flyout and passing them in as metadata props, we can make it so editing rules while in Stack Management.

You cannot edit a rule's service name, transaction type, or environment once it has been created (#106786 has been created to allow editing of these other values), but all other values can be edited.

In order for useFetcher to work outside of the APM plugin, it has been changed to use useKibana instead of useApmContext for toast notifications. The notifications API from useKibana is slightly different and allows passing a react element instead of a mount point as the body.

Fixes #76316.
2021-07-27 10:05:39 -05:00
Lisa Cawley 76989b57eb
[DOCS] APM latency correlations (#104564) 2021-07-27 08:02:21 -07:00
Stratoula Kalafateli 12c8d2dfcb
[TSVB] Fixes firefox flakiness on index pattern mode functional test (#106825) 2021-07-27 16:51:05 +03:00
Stratoula Kalafateli c656608d85
[Lens] Allows the users to change the axis orientation (#106369)
* [Lens] Allows the users to change the axis orientation

* Disable orientation if ticklabels are off

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 16:14:03 +03:00
Tiago Costa 8d3007279e
skip flaky suite (#106651) 2021-07-27 13:24:50 +01:00
Yulia Čech d234acfbb5
[ILM] Server to use new in_use_by property returned by ES API (#106243)
* [ILM] Server to use new in_use_by property returned by ES API

* [ILM] Cleaning up the PR changes

* [ILM] Fixed functional test

* [ILM] Fixed 'modifiedDate' display in the table

* [ILM] Fixed sorting test

* [ILM] Removed a not needed function declaration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 14:17:54 +02:00
Thomas Watson dafb687860
Upgrade url-parse from v1.5.1 to v1.5.3 (#106827) 2021-07-27 08:16:34 -04:00
Christos Nasikas 61f1c90ce0
[Cases] Add Swimlane & ServiceNow SecOps to README (#106742) 2021-07-27 13:17:30 +03:00
Anton Dosov 713fcb3297
Update index patterns/field formatters kibana.json with owner and description (#106705) 2021-07-27 10:39:18 +02:00
Walter Rafelsberger 5f3f69221b
[ML] Fix correlation chart y-axis labels for APM Latency Correlations.
- Adjust the minimum value of the correlation chart's y axis.
- Adds Log-Log Plot to the section header to indicate the chart type.
- Adds a missing translation
2021-07-27 10:29:46 +02:00
Diana Derevyankina fa7fd32e24
[TSVB] Add more functional tests for Timeseries (#106100)
* [TSVB] Add more functional tests for Timeseries

* Fix failing test for timeseries

* Refactor visual_builder_page and _tsvb_time_series

* Add getChartItems to visual_builder_page

* Remove generic from getChartItems function
2021-07-27 09:51:11 +03:00
Robert Oskamp f9bdcd78d5
[ML] Functional tests - some stability fixes for cloud test execution (#106686)
This PR stabilizes some functional tests for cloud execution / execution in different order.

* Reset fleet setup after module tests
* Additional check and retry for anomaly explorer dashboard integration
* Stabilize DFA job wizard step navigation
2021-07-27 08:28:44 +02:00
Yaroslav Kuznietsov 8a42fdbf62
[Canvas] AdvancedFailure refactor. (#106523)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 09:07:06 +03:00
Yaroslav Kuznietsov 34ca277212
[Canvas] Expression metric (#104390)
* Added `expression_metric` plugin.

* Update src/plugins/expression_metric/README.md

Co-authored-by: Corey Robertson <crob611@gmail.com>
2021-07-27 09:05:24 +03:00
Nicolas Chaulet a3688b17ec
[Fleet] Do not display add agent from the integration table in agent policy (#106785) 2021-07-26 18:25:32 -04:00
gchaps 8115a76b8b
[DOCS][DEV TOOLS] Uses task-oriented titles (#106796) 2021-07-26 14:53:49 -07:00
Justin Kambic a898f75b0e
[Uptime] Fix invalid non-null assertion (#106595)
* Fix invalid non-null assertion.

* Add `aria-labl` and refactor unit tests.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 17:15:51 -04:00
Brian Seeders 7c2dc485e6
[Buildkite] Sync with master updates since Buildkite was disabled (#106766) 2021-07-26 17:01:25 -04:00
Brian Seeders 8837196851
[CI] Add GitHub action for fixing version label gaps (#106467) 2021-07-26 17:01:05 -04:00
Michael Olorunnisola b807776699
[Security Solution][Analyzer] - Remove beta badge (#106752) 2021-07-26 15:52:05 -04:00
Kaarina Tungseth 500cb492f2
[DOCS] Adds the 8.0.0-alpha1 release notes (#106599)
* [DOCS] Adds the 8.0.0-alpha1 release notes

* [DOCS] Adds the remaining breaking changes and deprecations content

* [DOCS] Comments out 8.0.0 release notes

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* Comments from reviews

* Comments from reviews

* Final changes

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-26 14:29:18 -05:00
Kaarina Tungseth 77b2d8ad12
[DOCS] Updates server status page image (#106772) 2021-07-26 14:18:15 -05:00
Clint Andrew Hall 4c79021596
Add initContext as optional service param; add Kibana version to Canvas (#106756)
* Add PluginInitializerContext as an optional services param; add Kibana version to Canvas

* Fix nit: initContext is not optional.
2021-07-26 15:16:08 -04:00