Commit graph

60248 commits

Author SHA1 Message Date
Ahmad Bamieh
e5fa891d21
[Telemetry] Fix telemetry-tools TS parser for packages (#149819)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Closes https://github.com/elastic/kibana/issues/139389
Closes https://github.com/elastic/kibana/issues/100544
2023-01-31 04:09:09 +03:00
christineweng
dda650f91b
[Security Solution] KPI visualizations on Alerts Page (#149173)
## Summary

This PR is a part 2 of https://github.com/elastic/kibana/pull/146938
that populates the remaining 2 charts for the summary section on Alerts
Page.

Capabilities added

- Alerts by type: alert count by rule and by type (prevention vs.
detection)
- Top alerts: top 10 alert grouping based on user selected drop down

Changes from previous PR

- Refactor `useSeverityChartData` to `useSummaryChartData` so that it
can be used by all 3 charts to fetch data
- Move `SeverityLevel` chart up one level to `alerts_kpi` folder to
better isolate components for testing.

Feature flag: `alertsPageChartsEnabled`


![image](https://user-images.githubusercontent.com/18648970/213945018-57a15c60-ed53-4e86-90f5-c1909e88420d.png)

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 16:27:26 -07:00
Jiawei Wu
4a4138dc3a
[RAM][Flapping] Add flapping alert status to alert table (#149176)
## Summary
Resolves: https://github.com/elastic/kibana/issues/148759

Adds a new component that will display an alert's flapping status in
addition to its `active/recovered` status in the alerts table. This
component is used both in the O11Y alert table and the stack management
alerts table.

This PR also allows the new alert status badge component to be
shareable.

### Alerts Table: Active

![active](https://user-images.githubusercontent.com/74562234/213611338-151985f8-f320-4b04-86fe-4b25956c8b07.png)

### Alerts Table: Flapping

![flapping](https://user-images.githubusercontent.com/74562234/213611388-b969058d-b47f-4cb4-86b7-472d4996ae94.png)

### Alerts Table: Recovered (Recovered is preferred over flapping)

![recovered](https://user-images.githubusercontent.com/74562234/213611401-0b54e7a2-5b7e-4a33-b7f1-daead94188d6.png)

### Stack Management Alerts List:

![alertsList](https://user-images.githubusercontent.com/74562234/213612245-466a14a3-be0f-4c79-9c45-cc51f8eff83c.png)

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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-01-30 16:20:14 -07:00
Nathan Reese
4e66e01c73
unskip Failing test: Chrome UI Functional Tests.test/functional/apps/dashboard/group4/dashboard_empty·ts (#149889)
Fixes https://github.com/elastic/kibana/issues/149256

Flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1824

Fix in https://github.com/elastic/kibana/pull/149582. `await
kibanaServer.importExport.unload(kbnDirectory);` is getting the `error
ECONNRESET`. Underlining cause determined to be @pgayvallet "Yeah, so
apparently it's related to the fact that
kibanaServer.importExport.unload calls bulkDelete with the summary from
the import file, which is not a valid SO. Not sure why it doesn't
constantly crashes on master though, as my changes in
https://github.com/elastic/kibana/pull/149582 makes it quite obvious"
2023-01-30 15:38:14 -07:00
Brandon Morelli
b90ddba882
docs: remove xpack.apm.searchAggregatedTransactions (#149896)
### Summary

This PR reverts https://github.com/elastic/kibana/pull/82379 and removes
`xpack.apm.searchAggregatedTransactions` from the documentation. This is
for https://github.com/elastic/apm-server/pull/10140:

> Removing transaction metrics config as they are not officially
supported.
2023-01-30 14:33:03 -08:00
Rachel Shen
58cd6370a2
[Shared UX] Migrate code editor from kibana_react plugin to shared_ux package (#148550) 2023-01-30 15:13:38 -07:00
Spencer
e07a65ef05
[serverless] add support for loading serverless specific config locally (#149878)
This adds the `--serverless` CLI arg (only available in dev mode, you
can also use `yarn start-serverless`), which will load the new
`config/kibana.serverless.yml` file. For now, this file is not included
in the build artifact, though we might include a `--serverless` flag
which replaces the `kibana.yml` file with `kibana.serverless.yml`.
@jbudz will follow up after this PR with the build related changes to
get this working with PR cloud deploys, which will be enough changes for
us to start iterating on UI specific changes based on running in a
serverless environment.

Additionally, support for the undocumented `KBN_CONFIG_PATHS` env var is
added, which should contain a comma-separated list of paths to kibana
config files. These files are loaded, in the specified order, before any
of the config files listed in the CLI but after the kibana.yml config
file.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 15:12:46 -07:00
Achyut Jhunjhunwala
214eb97949
fix locally broken unit tests (#149811)
## Summary

Due to an old Pull request, 2 of the Unit Tests started to fail locally.
Somehow they won't fail on the CI which made them tough to identify
initially.

This PR fixes those broken unit tests.
2023-01-30 15:09:39 -07:00
Brandon Morelli
61992632ec
APM: Update documentation of PHP APM agent support for service maps (#149584) (#149893)
# Backport

This will backport the following commits from `8.6` to `main`:
- [Update documentation of PHP APM agent support for service maps
(#149584)](https://github.com/elastic/kibana/pull/149584)

<!--- Backport version: 8.1.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT {commits} BACKPORT-->

Co-authored-by: Emily S <emily.s@elastic.co>
2023-01-30 23:07:39 +01:00
Jiawei Wu
987cb6be76
[RAM] [Flapping] Allow rules settings to be access when users have no rules (#149656)
## Summary
Resolves: https://github.com/elastic/kibana/issues/149366

Move the rules settings link to the page header area so users can access
the rules settings even when they have no rules. Also make the rules
settings available on the logs page.

This change means we no longer have a purpose for the
`showCreateRuleButton` prop since we're no longer showing the "Create
Rule" button alongside the rule filters. So that prop has been removed.

This PR also adds small enhancements to our queries to no longer fetch
on windows focus as it was creating a slight flicker of the spinner when
the user has no rules. Refetching on focus is a little too aggressive
anyways since we already have a timed refetcher.

## Rules page (no rules)

![move_settings](https://user-images.githubusercontent.com/74562234/214997907-034f32fb-f9c6-4b90-8d60-7cc1746b1329.png)

## Rules page (with rules)

![withrule](https://user-images.githubusercontent.com/74562234/214997956-05de257e-41e2-423c-9f95-5928632b8dda.png)

## Logs page

![movesettingslogs](https://user-images.githubusercontent.com/74562234/214997928-5b1702ac-572b-4953-a95b-2e4143f3f17e.png)

### Checklist
- [ ] [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: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-01-30 14:00:12 -08:00
Jiawei Wu
7608dfb023
[RAM][Flapping] Make rules settings link with flapping settings shareable (#149564)
## Summary
Resolves: https://github.com/elastic/kibana/issues/148760

Makes the rules setting link that opens up the flapping settings modal
shareable from the `triggers_action_ui` plugin (`getRulesSettingsLink`).

Also adds storybook entires for this component (`rulesSettingsLink`). 

To view locally, run `yarn storybook triggers_actions_ui`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-01-30 13:59:19 -08:00
Nicolas Chaulet
e2e58635a3
[Fleet] Restrict output type for Fleet Server (#149873) 2023-01-30 14:58:30 -07:00
Marshall Main
4d353f0876
[Security Solution][Alerts] Alert suppression time window (#148868)
## Summary

Adds ability to specify a time window with alert suppression on Query
rules. If more alerts are detected with the same value in the "group by"
field in subsequent rule executions, the existing alert will be updated
to reflect the new doc count and suppression end time rather than
creating a new alert.

### Create Rule

![image](https://user-images.githubusercontent.com/55718608/212997145-cee96a7d-fc3b-4b08-8845-5a9c7876fa0a.png)

### Rule Details

![image](https://user-images.githubusercontent.com/55718608/212997293-69d93392-f74e-4e4e-925a-befbee531659.png)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2023-01-30 13:11:13 -08:00
Achyut Jhunjhunwala
065dfa1297
Disable navigation to _other bucket and show warning tooltip (#148641)
Closes https://github.com/elastic/kibana/issues/146650

### Summary

This PR disables the link for the `_other` bucket on Services List page
and instead shows a Warning Tooltip with the message.

### Changes

 - `service_link.tsx` prevents the navigation to the bucket
- `other_service_group_bucket.ts` - Syntrace for the `_other` bucket
generation
 
### Demo



https://user-images.githubusercontent.com/7416358/211568522-e10bcf01-d07f-4259-996b-b3b612c7807d.mov

- When kibana limit has been reached
<img width="1561" alt="image"
src="https://user-images.githubusercontent.com/1313018/214614001-0bd8a5d9-c2fe-48c7-a231-0b0805708bce.png">


- When having only `_other`
<img width="1569" alt="image"
src="https://user-images.githubusercontent.com/1313018/214614142-0d47d5b1-40d6-40f5-9a0d-5f5e596f9b98.png">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yngrid Coello <yngrid.coello@elastic.co>
2023-01-30 22:04:17 +01:00
renovate[bot]
66794ac2c4
Update dependency selenium-webdriver to ^4.8.0 (main) (#149869)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[selenium-webdriver](https://togithub.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver#readme)
([source](https://togithub.com/SeleniumHQ/selenium)) | [`^4.7.1` ->
`^4.8.0`](https://renovatebot.com/diffs/npm/selenium-webdriver/4.7.1/4.8.0)
|
[![age](https://badges.renovateapi.com/packages/npm/selenium-webdriver/4.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/selenium-webdriver/4.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/selenium-webdriver/4.8.0/compatibility-slim/4.7.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/selenium-webdriver/4.8.0/confidence-slim/4.7.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>SeleniumHQ/selenium</summary>

###
[`v4.8.0`](a379331ad6...267030adea)

[Compare
Source](a379331ad6...267030adea)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTYuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNi4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 15:02:31 -06:00
Jon
d485f2be68
[build] Build canvas runtime before copying source files (#149872)
The canvas runtime build needs to be completed before source files are
copied so that it's available in the final distribution.
2023-01-30 15:00:39 -06:00
renovate[bot]
8af9f3d97f
Update babel to ^7.20.13 (main) (#149790)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/parser](https://babel.dev/docs/en/next/babel-parser)
([source](https://togithub.com/babel/babel)) | [`^7.20.7` ->
`^7.20.13`](https://renovatebot.com/diffs/npm/@babel%2fparser/7.20.7/7.20.13)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.20.13/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.20.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.20.13/compatibility-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fparser/7.20.13/confidence-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/runtime](https://babel.dev/docs/en/next/babel-runtime)
([source](https://togithub.com/babel/babel)) | [`^7.20.7` ->
`^7.20.13`](https://renovatebot.com/diffs/npm/@babel%2fruntime/7.20.7/7.20.13)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fruntime/7.20.13/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fruntime/7.20.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fruntime/7.20.13/compatibility-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fruntime/7.20.13/confidence-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/traverse](https://babel.dev/docs/en/next/babel-traverse)
([source](https://togithub.com/babel/babel)) | [`^7.20.12` ->
`^7.20.13`](https://renovatebot.com/diffs/npm/@babel%2ftraverse/7.20.12/7.20.13)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.20.13/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.20.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.20.13/compatibility-slim/7.20.12)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2ftraverse/7.20.13/confidence-slim/7.20.12)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/parser)</summary>

### [`v7.20.13`](https://togithub.com/babel/babel/releases/tag/v7.20.13)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.20.7...v7.20.13)

##### v7.20.13 (2023-01-21)

##### 🐛 Bug Fix

- `babel-helpers`, `babel-plugin-proposal-decorators`,
`babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;15332](https://togithub.com/babel/babel/pull/15332) Ensure
class decorators can access decorated non-static members
([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-plugin-transform-typescript`
- [#&#8203;15349](https://togithub.com/babel/babel/pull/15349) fix:
Preserve `import {type T} from 'x'` when `onlyRemoveTypeImports:true`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- [#&#8203;15344](https://togithub.com/babel/babel/pull/15344) fix:
Properties that are `abstract` should not be initialized.
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-parser`
- [#&#8203;15338](https://togithub.com/babel/babel/pull/15338) Allow
negative number in ambient const initializer
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### ↩️ Revert

- `babel-plugin-transform-react-inline-elements`,
`babel-plugin-transform-react-jsx-development`,
`babel-plugin-transform-react-jsx`
- [#&#8203;15355](https://togithub.com/babel/babel/pull/15355) Reverts
"Re-use common JSX element transform for <>...\</>"
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### Committers: 4

-   Babel Bot ([@&#8203;babel-bot](https://togithub.com/babel-bot))
-   Huáng Jùnliàng ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- Nicolò Ribaudo
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   [@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu)

</details>

<details>
<summary>babel/babel (@&#8203;babel/runtime)</summary>

###
[`v7.20.13`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v72013-2023-01-21)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.20.7...v7.20.13)

##### 🐛 Bug Fix

- `babel-helpers`, `babel-plugin-proposal-decorators`,
`babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;15332](https://togithub.com/babel/babel/pull/15332) Ensure
class decorators can access decorated non-static members
([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-plugin-transform-typescript`
- [#&#8203;15349](https://togithub.com/babel/babel/pull/15349) fix:
Preserve `import {type T} from 'x'` when `onlyRemoveTypeImports:true`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- [#&#8203;15344](https://togithub.com/babel/babel/pull/15344) fix:
Properties that are `abstract` should not be initialized.
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-parser`
- [#&#8203;15338](https://togithub.com/babel/babel/pull/15338) Allow
negative number in ambient const initializer
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### ↩️ Revert

- `babel-plugin-transform-react-inline-elements`,
`babel-plugin-transform-react-jsx-development`,
`babel-plugin-transform-react-jsx`
- [#&#8203;15355](https://togithub.com/babel/babel/pull/15355) Reverts
"Re-use common JSX element transform for <>...\</>"
([@&#8203;JLHwung](https://togithub.com/JLHwung))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTYuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNi4xIn0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2023-01-30 14:57:52 -06:00
Nathan Reese
53b50c5400
unskip Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/input_control_vis/dynamic_options·ts (#149874)
Fixes https://github.com/elastic/kibana/issues/98974

Flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1820
2023-01-30 13:31:13 -07:00
Kyle Pollich
fe34d7f27e
[Fleet] Update experimental indexing features text + allow disabling TSDB (#149594)
## Summary

Closes #149591

Making some needed improvements/changes to our experimental data stream
features:
- Improve copy to better explain what these features are and what they
do
- Add explainer + link to
https://www.elastic.co/guide/en/elasticsearch/reference/master/use-a-data-stream.html#manually-roll-over-a-data-stream
for current need around manual rollovers
(https://github.com/elastic/kibana/issues/143448 coming soon for
automating this)


![image](https://user-images.githubusercontent.com/6766512/214857301-bb522d2a-f241-4c34-8bf5-bd96e610a139.png)

## Screen recording


https://user-images.githubusercontent.com/6766512/214861783-0efdbab9-51de-44f0-93ba-86011d6e9612.mov

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 13:24:38 -07:00
Shahzad
a489d221dd
[Synthetics] Some ui code clean up (#149821) 2023-01-30 20:30:20 +01:00
Kaarina Tungseth
be498a5c58
[DOCS] Fixes formatting in the Osquery manager APIs (#149871)
## Summary

Fixes the formatting of the rogue `Query parameters` sections.
2023-01-30 12:41:10 -06:00
Jonathan Buttner
aba0b3037c
[Cases] Adding new bulk create attachments operation for auditing (#149744)
This PR adds a new authorization log operation for the bulk create
attachments API.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 13:35:08 -05:00
Kibana Machine
ec293bfc28 skip failing test suite (#148386) 2023-01-30 13:22:35 -05:00
Kibana Machine
18e157a1a0 skip failing test suite (#148388) 2023-01-30 13:22:10 -05:00
Spencer
376bed5d16
implement "plugin" package type (#149370)
This PR updates the core discovery logic to support loading plugins from
packages. This logic is additive, so that the existing plugins in the
repo and third-party plugins can continue to be loaded via the existing
mechanism, but with https://github.com/elastic/kibana/pull/148130 we
will be automatically migrating all plugins in the repo to packages,
which will use this logic.

The logic is already in-use in that PR, and was developed there, but
extracted here for easier review.

The logic is relatively simple, where a list of packages in the repo are
attached to the core `Env` and then filtered by core before converting
all plugin packages to `PluginWrapper`. The `PluginWrapper` still
exposes the plugin manifest to the rest of the code, and it is used in
many places, so rather than making changes to the `PluginWrapper` I'm
faking a legacy plugin manifest with the plugin package manifest.

@elastic/kibana-core: I'm going to need some help identifying what we
need to get test coverage for. This is a pretty simple addition to the
core IMO, and if it didn't work then nothing would work, so I'm pretty
confident in it, but would still appreciate your feedback.
2023-01-30 10:47:53 -07:00
Cauê Marcondes
ad75d900c9
[APM] Alert rules: The transaction type and environment options are not filtered by the selected service (#149849)
closes https://github.com/elastic/kibana/issues/128257



https://user-images.githubusercontent.com/55978943/215530743-46577bb1-5cdd-459c-990e-aae00f604720.mov

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 12:40:04 -05:00
Mark Hopkin
b9a999f7f8
[Fleet] Add Agent logs panic messages from last hour to telemetry (#149825)
## Summary

Closes https://github.com/elastic/ingest-dev/issues/1486

Add `agent_logs_panics_last_hour` telemetry field which contains the
message and timestamp of all log messages containing the word panic that
ocurred in the last hour.

Capped at 100 messages.
2023-01-30 17:20:08 +00:00
Christiane (Tina) Heiligers
91c3e5d31d
[uiSettings] Fix and uiSettings api-integration tests for global settings (#149798) 2023-01-30 10:19:26 -07:00
Sander Philipse
8251c7632f
[Enterprise Search] Fix pagination issue on indices page (#149833)
## Summary

Fixes a bug where the fetch indices request was incorrectly reporting
the page size
2023-01-30 18:18:26 +01:00
Nathan Reese
0a31ddae4e
unskip jest tests due to unhandled promise rejections (#149648)
Fixes https://github.com/elastic/kibana/issues/126000

Unskip tests in
/Users/nreese/projects/kibana/src/plugins/dashboard/public/dashboard_container/component/grid/dashboard_grid.test.tsx

viewport/dashboard_viewport.test.tsx removed in
https://github.com/elastic/kibana/pull/144332.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 09:22:25 -07:00
Pierre Gayvallet
e70fceaf9d
[FTR] KbnClientSavedObjects improvements (#149582)
## Summary

Follow-up of https://github.com/elastic/kibana/pull/149188


- Use the bulkDelete API for `KbnClientSavedObjects.bulkDelete`
- Create a dedicated `/_clean` endpoint for
`KbnClientSavedObjects.clean` and
`KbnClientSavedObjects.cleanStandardList`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 09:05:53 -07:00
Julia Bardi
3a961fb132
[Fleet] changed diagnostics query to speed up (#149812)
## Summary

Changed query of diagnostics files to speed up seeing the files. This is
because the agent has a delay of about 4m to ack the action, this has to
be fixed separately, see here
https://github.com/elastic/elastic-agent/pull/1703#issuecomment-1408250493

Related to https://github.com/elastic/kibana/issues/141074

We can search for the diagnostics file by `agent_id` and `action_id`, so
don't have to wait for the `upload_id` which comes from
`.fleet-actions-results`.


https://user-images.githubusercontent.com/90178898/215451881-bfaa9e86-e055-4490-87b1-dc1d1076a738.mov

Displaying error from agent when diagnostics failed:

<img width="839" alt="image"
src="https://user-images.githubusercontent.com/90178898/215476207-5db7e935-28dd-432e-a6a6-195da162028a.png">


E.g. `.fleet-files-agent`

```
{
        "_index": ".fleet-files-agent-000001",
        "_id": "8a004559-0731-4b8f-b29e-d7405ca0d68c.3a1f21b3-4559-4d3f-aae0-58356c269a92",
        "_score": null,
        "_source": {
          "action_id": "8a004559-0731-4b8f-b29e-d7405ca0d68c",
          "agent_id": "3a1f21b3-4559-4d3f-aae0-58356c269a92",
          "contents": null,
          "file": {
            "ChunkSize": 4194304,
            "Status": "READY",
            "ext": "zip",
            "hash": {
              "md5": "",
              "sha256": ""
            },
            "mime_type": "application/zip",
            "name": "elastic-agent-diagnostics-2023-01-30T10-13-33Z-00.zip",
            "size": 577178
          },
          "src": "agent",
          "upload_id": "988da8ad-9d92-4d18-b5b0-b2a7e77f5a81",
          "upload_start": 1675073615066,
          "transithash": {
            "sha256": "8a417cc8a73e32723ff449b603412113f319c7447044e81acab3f57d4e8226c8"
          }
        },
```

Changed the style to be more consistent:

<img width="898" alt="image"
src="https://user-images.githubusercontent.com/90178898/215492173-7362fab7-15e6-4de9-824b-239164512231.png">



### 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
2023-01-30 09:04:35 -07:00
Kevin Delemme
894b195f60
feat(slo): manage slo state (#149546) 2023-01-30 11:02:33 -05:00
Jonathan Buttner
b76b23536b
[Cases] Adding basic integration test for get connectors API (#149764)
This PR adds a single test for the get connectors API. Since nearly all
the tests create a connector they need to live under the trial license
configuration.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 11:02:10 -05:00
Paul Tavares
0eb7ed8e7c
[Security Solution][Endpoint] Re-enable FTR tests for Endpoint Responder (#149538)
## Summary

Re-enables FTR tests for Endpoint Response console. Tests seemed to be
failing only when checking functionality from an alert details panel
when displayed in either the Alerts page or the Timeline. No other
errors were seen on the failing jobs, so this PR only increases the
timeout value for how long we'll wait for alerts
2023-01-30 09:01:23 -07:00
Kevin Lacabane
d9adcca543
[Stack Monitoring] implement baseline elasticsearch api tests for package and metricbeat data (#149161)
### Summary

Part of https://github.com/elastic/kibana/issues/148303
Closes https://github.com/elastic/kibana/issues/146067
Closes https://github.com/elastic/kibana/issues/146068

I investigated the failing tests but couldn't get to the root cause
quickly enough so I took the opportunity to port the tests to the
[monitoring_api_integration](https://github.com/elastic/kibana/tree/main/x-pack/test/monitoring_api_integration)
suite. This reimplements all the existing tests (plus missing ones for
the `ml_jobs` api) with fresh data.
By using the new testing approach we can remove the archived mappings
which greatly reduce execution times.

### Testing
- The suite was executed against by the [flaky test
runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1804)
multiple times with no failures
- Test data is bundled in two archives (one for metricbeat and one for
package data) and can be loaded to verify their content: `node
scripts/es_archiver.js load
x-pack/test/monitoring_api_integration/archives/elasticsearch/single_node/(package|metricbeat)
--es-url=http://elastic:changeme@localhost:9200
--kibana-url=http://elastic:changeme@localhost:5601`

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 17:01:00 +01:00
Kevin Delemme
c4ea96e5ce
feat(slo): improve index selection input (#149786) 2023-01-30 10:58:35 -05:00
Shahzad
15ddb87cdf
[Synthetics] Disable test now for private location (#149585)
Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
Fixes https://github.com/elastic/kibana/issues/137473
2023-01-30 16:04:02 +01:00
Kevin Delemme
a16806d90d
chore(slo): Improve fixtures and storybook cases (#149639) 2023-01-30 09:43:56 -05:00
Matthew Kime
a64027deed
[discover] Enable data view editing from flyout (#149453)
## Summary

Currently, changes to a data view require a round trip to management
when you're in discover. This PR allows editing of data views via flyout
from within discover.

Closes https://github.com/elastic/kibana/issues/144801


### Checklist

Delete any items that are not applicable to this PR.

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

---------

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 08:42:58 -06:00
Yngrid Coello
3d3a885ad7
[APM] Show warning if transaction groups are dropped (#148625)
Closes https://github.com/elastic/kibana/issues/146648.

### Changes
- `transaction_detail_link.tsx` prevent navigation to tx details when
bucket name is other and display the warning tooltip
- `xpack.apm.ui.transactionGroupBucketSize` ui setting was removed and
now we have a hardcoded limit of `1000` buckets when querying
transactions.

**After this change**


https://user-images.githubusercontent.com/1313018/214321647-e0ae59d6-0761-4d9e-a0fe-ef21397aeff7.mov


- When kibana limit has been reached
<img width="1391" alt="image"
src="https://user-images.githubusercontent.com/1313018/214321902-05fbfa6c-7c99-4b21-a67b-7e134c14ab73.png">

- When having only `_other`
<img width="1390" alt="image"
src="https://user-images.githubusercontent.com/1313018/214332887-d6fd59a2-d1ef-4b61-b6ed-79a6d458f0a0.png">

### Test instructions
1. Checkout PR branch
2. Execute Synthtrace scenario
    a. For reaching kibana limit callout
        ```
node scripts/synthtrace --clean other_transaction_group_bucket.ts
--scenarioOpts.txGroups=1001
        ```
    b. For `_other` callout
        ```
node scripts/synthtrace --clean other_transaction_group_bucket.ts
        ```

---------

Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
2023-01-30 15:40:25 +01:00
claracruz
1a0538872c
Implement "completed" guide animation (#149530)
Fixes #147387

### Screenshots

<img width="522" alt="Screenshot 2023-01-27 at 14 49 09"
src="https://user-images.githubusercontent.com/91763/215115481-beab7f69-60c6-48f5-8ab0-d8dcb67fabb7.png">

<img width="559" alt="Screenshot 2023-01-27 at 14 49 52"
src="https://user-images.githubusercontent.com/91763/215115506-5bf328a0-7b47-44d5-b9db-62f5a30dfed7.png">
2023-01-30 14:37:34 +00:00
Julia Rechkunova
82a4c5e6e0
[Discover] Show "Copy value" button for any grid cell (#149525)
Closes https://github.com/elastic/kibana/issues/108857

## Summary

Before we had "Copy to clipboard" only for cell popovers with JSON
content. This PR adds it also for any other cell values.

![Jan-25-2023
18-23-03](https://user-images.githubusercontent.com/1415710/214636400-b347e856-8bf0-4038-bc41-aae23df5e5a9.gif)

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-01-30 15:34:09 +01:00
Sébastien Loix
24765997bb
[Content management] Setup plugin (#149813) 2023-01-30 08:26:23 -06:00
Julia Rechkunova
86b38a824d
[Discover] Unskip flaky a11y tests (#149827)
Closes https://github.com/elastic/kibana/issues/147186

100x
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1811
2023-01-30 15:18:24 +01:00
Shahzad
3406d4aba1
[Synthetics] Fix tooltip styling (#149804)
Fixes https://github.com/elastic/kibana/issues/148432
2023-01-30 14:49:53 +01:00
Elastic Machine
2ffabeabb8
[main] Sync bundled packages with Package Storage (#149822)
Automated by
https://internal-ci.elastic.co/job/package_storage/job/sync-bundled-packages-job/job/main/1558/

Co-authored-by: apmmachine <infra-root+apmmachine@elastic.co>
2023-01-30 06:49:00 -07:00
Sander Philipse
00dd82366a
[Enterprise Search] Fix bug updating connector configuration (#149810)
## Summary

This fixes a bug registering a connector configuration, caused by having
removed the connection between the configuration Redux logic and the API
Redux logic.
2023-01-30 08:05:53 -05:00
Mike Côté
c0891f7392
Fix flaky test where process_alerts_duration_ms can sometimes equal zero (#149602)
Resolves https://github.com/elastic/kibana/issues/148092

In this PR, I'm changing the event log metrics assertion on
`process_alerts_duration_ms` to ensure the value is >=0 instead of > 0.
There are times where `process_alerts_duration_ms` will run super fast
and the metrics only report `0ms`.

Flaky test runner:
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1808

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 07:46:43 -05:00
Kevin Lacabane
870f79df8c
[Stack Monitoring] support entsearch package (#148668)
### Summary

Update stack monitoring to read from data streams created by the
[enterprisesearch
package](https://github.com/elastic/integrations/pull/4926)

### Testing
- build [enterprisesearch
package](https://github.com/elastic/integrations/pull/4926)
- start stack: `elastic-package stack up -v -d --version
8.7.0-SNAPSHOT`; make sure your image contains [this
change](https://github.com/elastic/elastic-agent/pull/2121)
- start enterprisesearch service: `elastic-package service up -v`
- install elasticsearch integration with variables
- `hosts: http://host.docker.internal:9201; username: elastic; password:
changeme`
- install enterprisesearch integration with variables
- `hosts: http://host.docker.internal:3002; username: elastic; password:
changeme`
- connect [local
kibana](2d893bf40b/x-pack/plugins/monitoring/dev_docs/how_to/work_with_packages.md (connecting-a-local-kibana))
- navigate to Stack Monitoring on the local kibana, enterprise search
section shows up with populated graphs

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-30 13:43:13 +01:00