Commit graph

43898 commits

Author SHA1 Message Date
Kibana Machine
cd5459a2a0
[Home app] Fix this references (#110207) (#110244)
* [Home app] Fix `this` references

* More readable if

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-08-26 16:43:35 +00:00
Kibana Machine
8875ce2a9a
[Lens] Inspect flyout should be available in editor mode. (#109656) (#110243)
* [Lens] Inspect flyout should be available in editor mode.

* fix typo

* add test

* add functional tests for inspector

* toMatchInlineSnapshot -> toMatchSnapshot

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

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-26 12:42:45 -04:00
Kaarina Tungseth
1ceb2e833c
[7.x] [DOCS] Adds additional index pattern attributes (#110287) 2021-08-26 11:37:39 -05:00
Kibana Machine
09b5ca0a82
Persistent demo deployment for tracked branches (#109714) (#110286)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-08-26 12:33:35 -04:00
Kibana Machine
1dafba3c5b
[APM] Traces list: Decrease link size and impact indication (#110188) (#110241)
* [APM] Decrease link size on Traces list

* [APM] Change impact column size to fixed

Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-08-26 12:23:53 -04:00
Kibana Machine
8a2114727f
[Seciurity Solutions] Add additional tests for endpoint middleware (#109792) (#110237)
Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-08-26 12:18:25 -04:00
Kaarina Tungseth
7f7943f1e5
[DOCS] Adds index pattern attributes (#109933) 2021-08-26 11:06:44 -05:00
Kibana Machine
02035cfbc7
[Security Solution][RAC] Hide filters on case view (#110090) (#110230)
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2021-08-26 15:52:49 +00:00
Kibana Machine
fdce851b6e
[RAC] Populate common rule fields in alert helpers (#108679) (#110232)
Co-authored-by: mgiota <panagiota.mitsopoulou@elastic.co>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
Co-authored-by: mgiota <panagiota.mitsopoulou@elastic.co>
2021-08-26 15:50:24 +00:00
Kibana Machine
3cee7e5a56
[7.x] [RAC] [APM] removes hardcoded alerts as data index from apm integration test (#109715) (#110109)
* [RAC] [APM] removes hardcoded alerts as data index from apm integration test (#109715)

* removes hardcoded index from apm integration tests

* adds integration tests for rule registry's get index route

* more cleanup

* fail try-catch if response is not empty, adds comments as to why index refresh catch block is empty

* fix index name

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2021-08-26 15:39:03 +00:00
Ignacio Rivas
047fe77093
[Upgrade Assistant] Add checkpoint feature to Overview page (#109449) 2021-08-26 16:52:37 +02:00
Kibana Machine
5c3b8baf57
[Security solution] Correct memory protections label to memory manipulation protection (#110179) (#110209)
Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-08-26 10:12:51 -04:00
Kibana Machine
fa3083f1f7
[DataViews] filter apm- sources when deciding which empty state to show(#110094) (#110201)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-08-26 08:55:20 -04:00
Kibana Machine
f601fdc1b3
[DataViews] Fix checking remote clusters in empty state (#110054) (#110194)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-08-26 12:45:21 +00:00
Kibana Machine
d9cb5224db
Remove onClear on date range picker inputs (#110035) (#110190)
fixes elastic/kibana/issues/108864

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

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-08-26 12:42:46 +00:00
Kibana Machine
8811419530
[Discover] Fix performance regression in sidebar (#109999) (#110186)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-08-26 07:54:11 -04:00
Kibana Machine
25fb660113
[APM] Show hostname in JVM view (#109651) (#110185)
* [APM] Show hostname in JVM view

* [APM] delete no needed param

* [APM] fix linting

* [APM] changes after review

* [APM] changes after review part deux

* [APM] fix snapshot

* [APM] improve guard on api response

Co-authored-by: Miriam <31922082+MiriamAparicio@users.noreply.github.com>
2021-08-26 07:43:41 -04:00
Kibana Machine
24f2b702e2
[Stack monitoring] Add global state context and routeInit component (#109790) (#110181)
* Add global state to stack monitoring react app

* Add type for state

* Add some todos

* Add route_init migration

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

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-08-26 07:30:46 -04:00
Jean-Louis Leysens
3797202169
[Reporting/Dashboard] Update integration to use v2 reports (#108553) (#110177)
* very wip, updating dashboard integration to use v2 reports. at the moment time filters are not working correctly

* added missing dependency to hook

* added tests and refined ForwadedAppState interface

* remove unused import

* updated test because generating a report from an unsaved report is possible

* migrated locator to forward state on history only, reordered methods on react component

* remove unused import

* update locator test and use panel index number if panelIndex does not exist

* ensure locator params are serializable

* - moved getSerializableRecord to locator.ts to ensure that the
  values we get from it will never contain something that cannot
  be passed to history.push
- updated types to remove some `& SerializableRecord` instances
- fixed embeddable drilldown Jest tests given that we no longer
  expect state to be in the URL

* update generated api docs

* remove unused variable

* - removed SerializedRecord extension from dashboard locator params
  interface
- factored out state conversion logic from the locator getLocation

* updated locator jest tests and SerializableRecord types

* explicitly map values to dashboardlocatorparams and export serializable params type

* use serializable params type in embeddable

* factored out logic for converting panels to dashboard panels map

* use "type =" instead of "interface"

* big update to locator params: type fixes and added options key

* added comment about why we are using "type" alias instead of "interface" declaration

* simplify is v2 job param check

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 06:12:37 -04:00
Gloria Hornero
8a8c251aee
fixes 'Marking alerts as acknowledged' test (#110032) (#110173)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 05:15:33 -04:00
Kibana Machine
2aaad55843
Fix flakey test (#110154) (#110171)
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-08-26 07:52:11 +00:00
Tim Sullivan
b16d53fee7
[Reporting] Fix ability to export CSV on searched data with frozen indices (#109976) (#110162)
* use include frozen setting in csv export

* add api integration test

* add fixes

* Update x-pack/test/reporting_api_integration/reporting_and_security/search_frozen_indices.ts

* test polish

* update per feedback
2021-08-25 22:30:25 -04:00
Kibana Machine
b82c629c6c
[Osquery] Fix scheduled query status (#106600) (#110160)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-08-25 21:10:05 -04:00
Tiago Costa
bdd059e150
chore(NA): enables @babel/plugin-transform-runtime to decrease output size (#109843) (#110157)
* chore(NA): enables @babel/plugin-transform-runtime to decrease output size

* chore(NA): update @kbn/pm bundle

* chore(NA): missing config on corejs for runtime

* fix(NA): flaky unit test

* chore(NA): update limits file

* chore(NA): remove corejs

* chore(NA): old config files

* chore(NA): update limmits file

* chore(NA): updated yarn lock file

* chore(NA): update limits

* chore(NA): restore original test file

* chore(NA): skip flaky test

* chore(NA): skip another failing test
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-08-25 20:34:56 -04:00
spalger
bcbe434c0e skip all tests in failure config (#110153)
(cherry picked from commit c43429c13b)
2021-08-25 17:22:25 -07:00
Kibana Machine
5cf87d5c55
Preserve timeline data when navigating between tabs (#106716) (#109951)
Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
2021-08-26 00:18:11 +00:00
Kibana Machine
14cb5a32f2
[APM] Change username in readme (#109604) (#109645)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-08-26 00:11:23 +00:00
Alison Goryachev
ec09a417c2
[Upgrade Assistant] Address design feedback for ES deprecations page (#109726) 2021-08-25 19:40:48 -04:00
Kibana Machine
06e9f66c89
chore(NA): moving @kbn/securitysolution-io-ts-alerting-types to babel transpiler (#109745) (#110104)
* chore(NA): moving @kbn/securitysolution-io-ts-alerting-types to babel transpiler

* chore(NA): correct deps on runtime

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-25 23:31:25 +00:00
Kibana Machine
a21db57702
Remove EuiCodeEditor from service map stories (#109290) (#110151)
Replace with Monaco-based `CodeEditor` from kibanaReact.

Fixes #106927.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-08-25 19:21:31 -04:00
Kibana Machine
32807685e5
[Fleet] Fix upgrades for packages with restructured inputs (#109887) (#110150)
* Fix upgrades for packages with restructured inputs

Addresses errors surfaced when testing upgrades from AWS 0.6.1 to 0.10.4.
Namely, when inputs are removed from a package between versions,we were
initially throwing errors for each input in the new package that didn't
exist on the outdated package version. Now, we instead simply skip over
cases like this in which an input no longer exists on the new package version.

* Add basic test cases for restructured packages

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-08-25 19:11:41 -04:00
Kibana Machine
923bf4090b
convert ftr runners into TS (#110057) (#110139)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-08-25 18:31:33 -04:00
Kibana Machine
bc8bbd9580
Update dependency @elastic/charts to v34.2.1 (master) (#109678) (#110134)
* Update dependency @elastic/charts to v34.2.1


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2021-08-25 17:57:17 -04:00
Tim Sullivan
5e313f8330
[Reporting] Add SavedReport class (#109568) (#110131)
* [Reporting] Add SavedReport class

* add unit test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 17:49:10 -04:00
spalger
91bf123af0 skip failing suite (#110153)
(cherry picked from commit 562c3cc67c)
2021-08-25 14:46:20 -07:00
Kibana Machine
d39268d52d
[Security Solution] Bugfix for disable state of External Alert context menu (#109914) (#110129)
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2021-08-25 17:16:17 -04:00
Kibana Machine
5280e3523d
Open in dev tools button for request inspector (#109923) (#110123)
Add a "Open in Dev Tools" link to the request inspector.

Allow the dev tools to open data uris that are lz-string encoded (the same method used by TypeScript Playground, which are a lot shorter than a base64 encoded string.)

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-08-25 17:06:29 -04:00
spalger
d01f7a7dab skip flaky suite (#106650)
(cherry picked from commit 2849b31d28)
2021-08-25 13:35:35 -07:00
Kibana Machine
15e6d9202c
[RAC][Rule Registry] Implement versioning and backing indices (#109276) (#110126)
**Ticket:** https://github.com/elastic/kibana/issues/109293

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR fixes the indexing implementation in `rule_registry`. It implements the suggestions for backwards compatibility described in the ticket:

- changes the naming scheme and introduces the concept of "backing indices", so that names of the concrete ("backing") indices != names of their aliases
- adds versioning based on the current Kibana version

TODO:

- [x] Change index naming (implement the concept of backing indices)
- [x] Include Kibana version into the index template metadata
- [x] Include Kibana version into the document fields
- [x] Remove `version` from `IndexOptions` (parameters provided by solutions/plugins when initializing alerts-as-data indices)
- [x] Fix CI

### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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

Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
2021-08-25 16:27:01 -04:00
CJ Cenizal
7d786c3f41
Provide guidance on how to retrieve current cloudId. (#109935) (#110119) 2021-08-25 16:12:57 -04:00
Brandon Morelli
1177ab422e
docs: remove tabbed widget code (#109944) (#110140) 2021-08-25 16:11:59 -04:00
Kibana Machine
62a1417b59
change windowSize (#110083) (#110121)
Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
2021-08-25 16:04:22 -04:00
Kibana Machine
53ed133ed0
[Security Solution][Endpoint][Host Isolation] Fixes bug where Isolate Host option is missing from alert details take actions menu (#109991) (#110106)
Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
2021-08-25 15:32:33 -04:00
Kibana Machine
132a67cd8f
[ML] Fix bytes formatting and default message in the Anomaly detection jobs health rule type (#110069) (#110111)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-08-25 15:27:57 -04:00
Kibana Machine
0360fc13d0
[Fleet] Do not show upgrade available on latest version of package (#110066) (#110102)
* fix: use package policy ID when checking hasUpgrade

* fix: latest package version broken link

* refactor: use set for collecting unique namespace values

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-08-25 19:14:17 +00:00
Kibana Machine
807f647b87
Small improvements around Reason field and AlertCountTable draggable fields (#109239) (#109630)
* Make count table field and alert table event renderer undraggable

* Remove tooltip from alert count table

* Remove DefaultDraggable wrapper from reason field

* Fix unit test and remove unused props

I am not 100% sure, but apparently, the test was broken due to a long import chain loop.
I cut the import chain by extracting some constants to a file.

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

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
2021-08-25 19:07:19 +00:00
Kaarina Tungseth
0b627d891c
[DOCS] Fixes Get Task Manager health API formatting (#109541) 2021-08-25 13:52:44 -05:00
Corey Robertson
0a7b8cad18
[Canvas] Fix reports embeddables (#93482) (#109952)
* wip

* WIP

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 14:42:45 -04:00
Kibana Machine
0897999f91
[Uptime/UX] Fixes page template wrapper (#110058) (#110092)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-08-25 18:40:40 +00:00
Kibana Machine
121d28c589
Remove unused deprecated api (#109921) (#110089)
* remove unused deprecated apis

* Update legacy docs

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-08-25 14:28:50 -04:00