Commit graph

43027 commits

Author SHA1 Message Date
Kibana Machine
395428e4ed
[7.x] Add ability for types to define an excludeOnUpgrade hook (#106534) (#106930)
* 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

* Update fixture for 7.x

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-28 05:48:43 +00:00
Kibana Machine
92a4a4e843
[Detection Rules] Add 7.14 rules (#106933) (#106946)
Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
2021-07-28 00:30:06 -04:00
Kibana Machine
dfba2c2947
[Uptime] fix alerts flyout flaky tests (#106925) (#106944)
* 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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-07-27 23:59:18 -04:00
Greg Thompson
ac63973ffa
Upgrade EUI to v36.0.0 (#106334) (#106893)
* 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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 23:23:57 -04:00
Kibana Machine
c149db80b7
updates UX of threat intel tab (#106609) (#106939)
Co-authored-by: Ece Özalp <ozale272@newschool.edu>
2021-07-27 21:22:12 -04:00
Kibana Machine
246a2e24d2
add off switches (#106861) (#106937)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-07-27 21:12:51 -04:00
Kibana Machine
fc066ca25c
[Observability RAC] Alerts table post-EuiDataGrid style updates (#106349) (#106923)
## [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

Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
2021-07-27 23:06:23 +00:00
Kibana Machine
69d0a7aa30
chore(NA): moving @elastic/datemath to babel transpiler (#106860) (#106921)
* 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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-07-27 19:05:42 -04:00
Kibana Machine
cfa379fd68
skips test (#106889) (#106915)
Co-authored-by: Ece Özalp <ozale272@newschool.edu>
2021-07-27 18:49:43 -04:00
Kibana Machine
38f4e64917
[APM] Return default error message when log and exception are not available (#106890) (#106917)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-07-27 18:46:11 -04:00
Tyler Smalley
2a9853c02b skip flaky suite (#106650) 2021-07-27 15:36:05 -07:00
Kibana Machine
ce3eec734f
[build] Add task to build example plugins (#104194) (#106903)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-07-27 18:28:14 -04:00
Byron Hulcher
a361ce2e85
[7.x] [App Search] Backport Domains Table and Add Domain Flyout for Crawler Overview (#101176) (#106894)
* [App Search] Initial logic for Crawler Overview (#101176)

* New CrawlerOverview component

* CrawlerRouter should use CrawlerOverview in dev mode

* New CrawlerOverviewLogic

* New crawler route

* Display domains data for CrawlerOverview in EuiCode

* Update types

* Clean up tests for Crawler utils

* Better todo commenting for CrawlerOverview tests

* Remove unused div from CrawlerOverview

* Rename CrawlerOverviewLogic.actios.setCrawlerData to onFetchCrawlerData

* Cleaning up CrawlerOverviewLogic

* Cleaning up CrawlerOverviewLogic tests

* Fix CrawlerPolicies capitalization

* Add Loading UX

* Cleaning up afterEachs across Crawler tests
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_router.test.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_router.tsx

* App Search: Domains Table for Crawler Overview (#101515)

* Add delete route for crawler domains

* Added deleteDomain action to CrawlerOverviewLogic

* New DomainsTable component

* Replace EuiCode with DomainsTable in CrawlerOverview

* Fixing mock imports

* Fix spleling

* Fix i18n tag

* Clean up DomainsTable

* Clean up DomainsTable tests

* Clean up CrawlerOverview tests

* Clean up i18n tag in CrawlerOverviewLogic

* Utilize Kibana i18n and React for timestamp display

* Use elastic.co domain in tests

* Remove unneeded type casting

* Adjusting isDateToday check

* Apply suggestions from code review

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts

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

* [App Search] New Add Domain Flyout for Crawler (#106102)

* Added /api/app_search/engines/{name}/crawler/domains to Crawler routes

* New AddDomainLogic

* New AddDomainFormSubmitButton component

* New AddDomainFormErrors component

* New AddDomainForm component

* New AddDomainFlyout component

* Add AddDomainFlyout to CrawlerOverview

* Use exact path for CrawlerOverview in CrawlerRouter

* Clean-up AddDomainFlyout

* Clean-up AddDomainForm

* Clean-up AddDomainFormSubmitButton

* Extract getErrorsFromHttpResponse from flashAPIErrors

* Clean-up AddDomainLogic

* Remove unused imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [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>

* Fix import

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 18:03:33 -04:00
Kibana Machine
f5c750e7fa
[ML] Model memory state test for Anomaly Detection jobs health rule type (#106763) (#106898)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-07-27 16:58:50 -04:00
gchaps
3f8df2e715
[DOC] server.basePath vs server.rewriteBasePath (#106798) (#106906)
* 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>

Co-authored-by: Stef Nestor <steffanie.nestor@gmail.com>
2021-07-27 16:23:46 -04:00
Kaarina Tungseth
f0cff51ba4
[DOCS] Updates Monitoring images (#106902) (#106904) 2021-07-27 16:21:46 -04:00
Kibana Machine
d8c2d9a20a
[Enterprise Search] Set up automated a11y tests (#106765) (#106886)
* Set up a11y test/config

* Add product card checks

* Add setup guide checks

* Add documentation

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-27 16:06:20 -04:00
Eric Davis
a2e0a5f9d1
update Fleet api docs branch linking in 7.x line from master to 7.x (#106899) 2021-07-27 15:46:46 -04:00
Kyle Pollich
84cabc978b
[Fleet] Add package policy upgrade API (#103017) (#106882)
* 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>

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 15:22:08 -04:00
Kibana Machine
be6b333d24
Fix breadcrumbs on agent policy sub-tabs (#106844) (#106875)
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-07-27 13:59:37 -04:00
Alexey Antonov
77ac5df1e6
[TSVB] [Table] js -> ts conversion (#105094) (#106865)
* table js -> ts

* remove any's

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 13:26:14 -04:00
Kibana Machine
e9c7a729c6
Allow editing of APM rules (#106598) (#106864)
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.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-07-27 13:25:38 -04:00
Stratoula Kalafateli
1bc4d31758
[TSVB] Fixes firefox flakiness on index pattern mode functional test (#106825) (#106855) 2021-07-27 12:12:13 -04:00
Stratoula Kalafateli
bf706ba5c9
[Lens] Allows the users to change the axis orientation (#106369) (#106849)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 11:31:31 -04:00
Lisa Cawley
fe55903695
[DOCS] APM latency correlations (#104564) (#106866) 2021-07-27 11:19:29 -04:00
Yulia Čech
7b4ddb01c0
[ILM] Server to use new in_use_by property returned by ES API (#106243) (#106841)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 10:35:48 -04:00
Michael Olorunnisola
b727371a17
[Security Solution][Analyzer] - Remove beta badge (#106752) (#106836) 2021-07-27 09:28:38 -04:00
Christos Nasikas
a278b6a88d
[Cases] Add Swimlane & ServiceNow SecOps to README (#106742) (#106832) 2021-07-27 08:37:38 -04:00
Tiago Costa
0f0c3b786b
skip flaky suite (#106651) 2021-07-27 13:25:24 +01:00
Kibana Machine
4598805bdd
fix deeplink url (#106697) (#106726)
Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
2021-07-27 11:38:09 +00:00
Kibana Machine
488bec4831
Update index patterns/field formatters kibana.json with owner and description (#106705) (#106820)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-27 06:58:43 -04:00
Kibana Machine
cdd1fca575
[ML] Fix correlation chart y-axis labels for APM Latency Correlations. (#106818)
- 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

Co-authored-by: Walter Rafelsberger <walter@elastic.co>
2021-07-27 06:49:58 -04:00
Diana Derevyankina
4a80088ed2
[TSVB] Add more functional tests for Timeseries (#106100) (#106812)
* [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 05:10:10 -04:00
Kibana Machine
e05c89b6b6
[ML] Functional tests - some stability fixes for cloud test execution (#106686) (#106811)
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

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-07-27 04:51:00 -04:00
Kibana Machine
b792063b02
[Canvas] AdvancedFailure refactor. (#106523) (#106809)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-27 04:32:00 -04:00
Kibana Machine
4340d8d102
[Canvas] Expression metric (#104390) (#106808)
* Added `expression_metric` plugin.

* Update src/plugins/expression_metric/README.md

Co-authored-by: Corey Robertson <crob611@gmail.com>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
Co-authored-by: Corey Robertson <crob611@gmail.com>
2021-07-27 04:24:14 -04:00
Kibana Machine
6661844cc9
[Canvas] ArgForm HOC refactored. (#106639) (#106723)
* Refactored `ArgForm` hoc from `recompose` to `react hooks`.

* Refactored from `connect` to `useSelector`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-27 08:19:38 +00:00
Kibana Machine
cfc749f5cf
[Fleet] Do not display add agent from the integration table in agent policy (#106785) (#106800)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-07-26 20:45:50 -04:00
Kibana Machine
598dffc049
[Uptime] Fix invalid non-null assertion (#106595) (#106795)
* Fix invalid non-null assertion.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-07-26 19:34:24 -04:00
Kibana Machine
add2d1ccf5
[Buildkite] Sync with master updates since Buildkite was disabled (#106766) (#106789)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-07-26 19:20:13 -04:00
gchaps
7b6131bb39
[DOCS][DEV TOOLS] Uses task-oriented titles (#106796) (#106803) 2021-07-26 18:58:16 -04:00
Kibana Machine
1775b06848
[7.x] [Observability] adjust FieldValueSuggestions test to prevent flakiness (#106420) (#106605)
* [Observability] adjust FieldValueSuggestions test to prevent flakiness (#106420)

* Click to open flyout

* Adjust formatting

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2021-07-26 17:39:37 -04:00
Kibana Machine
92aadfa55d
[Telemetry] application usage views: allow tracking on any component and fix unmounting issues (#106507) (#106777)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-07-26 17:24:13 -04:00
Kibana Machine
ab1838ebc1
[ci] raise the max-old-space-size for scripts/build_api_docs (#106735) (#106774)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-26 17:01:00 -04:00
Kibana Machine
d3076aa1bd
[APM] Beta message more prominant in APM schema settings with callout (#105651) (#106743) (#106769)
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
2021-07-26 20:16:58 +00:00
Kibana Machine
c3c363e08c
[Deprecations service] Add requireRestart field (#106701) (#106762)
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-07-26 15:36:00 -04:00
Kaarina Tungseth
3a54d7d494
[DOCS] Updates server status page image (#106772) (#106778) 2021-07-26 15:26:44 -04:00
Kibana Machine
b0ca99fa08
[Dashboard] Adds migration smoke tests for TSVB panels on dashboard (#105655) (#106745)
* Adds migration smoke tests for TSVB panels on dashboard

* Adds index pattern TSVB panel

* Update 7.13.3 export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-07-26 14:11:44 -04:00
Kibana Machine
e103f1ae49
Display full featured header when creating policies from policy page (#106715) (#106738)
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-07-26 13:21:20 -04:00
Christos Nasikas
c49c4199b8
[Cases] Fix action type naming on field mapping (#106695) (#106731) 2021-07-26 13:06:32 -04:00