Commit graph

59021 commits

Author SHA1 Message Date
Yngrid Coello
d86313f2c5
[APM] Added env filter to agent explorer ui (#146326)
Relates to  https://github.com/elastic/kibana/issues/146019.

This PR added environment filter to Agent explorer view.


https://user-images.githubusercontent.com/1313018/203838057-0892c0e1-4023-400e-8217-b394002860df.mov

Since Agent explorer doesn't have a timeRange component, takes into
account always data from the last 24h, I added a `customTimeRange`
optional input to `EnvironmentsContextProvider`.

Apart from this the `serviceName`, `rangeFrom` and `rangeTo` that we use
in `EnvironmentSelect` are coming now from the context as well instead
of picking them from the url.
2022-11-29 09:02:57 -07:00
Marshall Main
3412b3e934
[Security Solution][Alerts] Include docs that don't populate the groupBy field for suppression (#145784)
## Summary

Updates custom query rule alert suppression logic to group all documents
that don't populate a groupBy field together instead of excluding them
from the results entirely.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-29 07:26:02 -08:00
Jonathan Budzenski
8038127a0e
Add jest to renovate config (#145877)
This adds a renovate config for core jest packages, but skips a few jest
related libraries. They need to be updated separately and then added to
the config. jest-styled-components breaks a bunch of snapshots, for
example.
2022-11-29 09:23:32 -06:00
Tiago Costa
20e6a850f6
skip flaky suite (#146450) 2022-11-29 14:57:39 +00:00
Terrance DeJesus
d4aff1626f
[Detection Engine] Adds 8.6 rules (#146402)
## Summary

Pull updates to detection rules from
0600b57565.

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

Co-authored-by: Dmitrii <dmitrii.shevchenko@elastic.co>
2022-11-29 09:33:20 -05:00
Alison Goryachev
fa320eb8d9
[Guided onboarding] Address design feedback (#146467) 2022-11-29 09:27:08 -05:00
Dominique Clarke
5d81d87e1d
[Uptime] monitor management - prevent showing delete toasts multiple times (#146477)
Resolves https://github.com/elastic/kibana/issues/146469

## Summary

Fixes a bug where multiple popovers were displayed after a monitor was
deleted from Uptime.

This fix ensures only 1 popover is displayed, and only one monitor is
deleted

### Testing
1. Create a few monitors
2. Delete a monitor
3. Ensure only that monitor is deleted and only one success popover
appears when deleting
2022-11-29 09:14:31 -05:00
Miriam
d5fec0a60d
[APM] Remove trace table in dependencies operations view (#146516)
Closes https://github.com/elastic/kibana/issues/144081


![image](https://user-images.githubusercontent.com/31922082/204505440-afe590c1-8ada-43b7-8885-c59ac8dfc4cf.png)
2022-11-29 15:12:50 +01:00
István Zoltán Szabó
4446dce8a9
[ML] Changes the name of a screenshot in the custom urls suite (#146519)
## Summary

This PR changes the name of a screenshot taken by the custom_url test
suite.
2022-11-29 14:37:35 +01:00
Sander Philipse
7c557a26cd
[Enterprise Search] Set featureset on native connector creation (#146534)
This moves setting native connector features to selecting a connector
type.
2022-11-29 06:16:26 -07:00
Pete Harverson
3a92e247a6
[ML] Fix caret direction for expanded state of table rows (#146451)
## Summary

Fixes the icons used to indicate the collapsed / expanded state of table
rows in the Data Frame Analytics, Trained Models and Explain Log Rate
Spikes pages in the ML plugin, and the Transforms list page. They are
now consistent with other tables, with a **right caret** to indicate a
**closed section** and a **down caret** for **open sections**.

### Data frame analytics jobs list
<img width="689" alt="image"
src="https://user-images.githubusercontent.com/7405507/204346940-e56436e1-2e21-4f4d-a618-2b243438a55f.png">

### Data frame analytics results
<img width="730" alt="image"
src="https://user-images.githubusercontent.com/7405507/204346993-32c600d1-f94c-4cb3-8740-e5344ecd6b4e.png">

### Trained models list
<img width="788" alt="image"
src="https://user-images.githubusercontent.com/7405507/204347063-2a50ac16-456c-4ca0-a446-b8535f5ba5cb.png">

### Nodes list
<img width="506" alt="image"
src="https://user-images.githubusercontent.com/7405507/204347215-970a07fe-062c-4c6f-bdfc-ed0f473e9681.png">

### Explain Log Rate Spikes grouped results
<img width="809" alt="image"
src="https://user-images.githubusercontent.com/7405507/204347302-10975598-5e88-42ac-a648-eae64976ed84.png">

### Transform management
<img width="1063" alt="image"
src="https://user-images.githubusercontent.com/7405507/204347393-124a366e-f5a9-44ba-8bfc-94788f334ba9.png">



Fixes #142898
2022-11-29 11:58:23 +00:00
Juan Pablo Djeredjian
033dcceb8b
[Security Solution] Add loading overlay during bulk edit preflight requests (#145905)
## Summary (outdated, see discussion in comments below)

Relates to: https://github.com/elastic/kibana/issues/144264

- Adds additional `isDryRun` boolean option to the `setLoadingRules`
state setter provided by `RulesTableContextProvider`. It is optional and
defaults to `false`.
- Set loading state during pre-flight (dry run) bulk edit requests to
`true`, in order for the loading overlay to display over the Rules Table
while the dry run is executed.

## Context

We currently [have a check that prevents the loading
overlay](https://github.com/elastic/kibana/blob/main/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/rules_table/rules_table_context.tsx#L199)
to display during bulk `edit` API requests (also `enable` and `disable`)
, since that is the current expected UX.

However, we want the loading overlay to display during `dryRun`
requests, but not in the subsequent requests, when the `edit`ing is
actually being done. That is why we need to differentiate the two types
of requests, while maintaining backwards compatibility with the logic
already present. Therefore, the proposal of the optional `isDryRun`
boolean option.

## Before


https://user-images.githubusercontent.com/5354282/203136754-53fb657b-f594-4e91-980f-95de7c11579d.mp4

## After


https://user-images.githubusercontent.com/5354282/203136922-7e90f10d-64d8-4907-8aae-16e7d759107b.mp4

### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] 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))
- [ ] 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)
2022-11-29 12:41:52 +01:00
Joseph McElroy
7f8b1f6383
[Enterprise Search] [Behavioral Analytics] UX Improvement for collection name + Slight Data model refactor (#146378)
## Summary

fixes https://github.com/elastic/enterprise-search-team/issues/3314

Updates the data model to have a name (now free form text field) and an
id (generated from the name)

- name is now no longer treated as an id. Name is free form and can
accept any value
- id is generated from name. This is lowercased, prefix / postfix
underscores are stripped, special chars are stripped. Generally fit to
be an index name
- we create the name for the eventsDatastream at collection creation
time. This means we can display this in the UI + change the name in
future.
- If a name that creates an id which already exists, an error will be
displayed so the developer can choose another name.

**Advantages**
- better UX
- id is a faster / safer creation & lookup


https://user-images.githubusercontent.com/49480/204269407-53322fd3-ccc2-4c97-857b-888dfe585b12.mov
2022-11-29 10:09:09 +00:00
Gabriel Landau
414ca82060
Add some 8.6 Endpoint telemetry fields (#146459)
## Summary

Add some fields to Endpoint telemetry which are mistakenly stripped by
the PII filter. These fields enable the Endpoint Protections team to
better triage alerts and create exceptions.

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

### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-29 09:54:57 +00:00
Katerina Patticha
77659389cf
[APM] Disable service metrics and remove the option to enable it in settings (#146376)
## Summary
closes https://github.com/elastic/kibana/issues/145745 

The feature Service Metrics was released and marked as a technical
preview in 8.5 and it was disabled by default.

As we expect to have some breaking changes in the following releases, we
disable and remove the feature so it would simplify the backward
compatibility.


The PR includes:
1. Disable service metrics
2. Remove the option to enable it from labs and advanced settings.
2022-11-29 10:45:53 +01:00
Cauê Marcondes
9cadd361de
[APM][AWS] fix compute usage calc (#146328)
closes https://github.com/elastic/kibana/issues/146206

**Before** we were averaging the memory and billed duration and then we
calculated the compute usage.
**Now** We first calculate the compute usage then get the average and
then convert to GB-Sec.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-29 10:42:59 +01:00
mohamedhamed-ahmed
6e4f22d12d
Fixes issue in sorting using TX and RX columns (#145994)
## Summary
closes #142667
More details about the issue can be found
[here](https://github.com/elastic/kibana/issues/142667)

## Problem 

The problem here is the use of bucket script in the query which doesn't
return a single metric value and thus can't be used for pipeline
aggregation.
```
bucket_script: {
              buckets_path: {
                value: 'rx_avg',
                period: 'rx_period>period',
              },
              script: {
                source: 'params.value / (params.period / 1000)',
                lang: 'painless',
              },
              gap_policy: 'skip'
              }
```

## Proposed Solutions:

1. Using
[Runtime](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html)
field as below:
```
"runtime_mappings": {
    "rx_bytes_per_period": {
      "type": "long",
      "script": {
        "source": """
          emit(doc['host.network.ingress.bytes'].size()==0 ? -1 : (doc['host.network.ingress.bytes'].value/doc['metricset.period'].value));
          """
      }
    }
    }
```

2. Using
[Scripted_Metric](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html):

```
scripted_metric": {
        "init_script": "state.bytes_per_period = []",
        "map_script": "state.bytes_per_period.add(doc['host.network.ingress.bytes'].value/(doc['metricset.period'].value/1000))",
        "combine_script": "double avg_bytes_per_period = 0; for (t in state.bytes_per_period) { avg_bytes_per_period += t } return avg_bytes_per_period/state.bytes_per_period.size()",
        "reduce_script": "double result = 0; for (a in states) { result += a) } return result/states.size()"
      }
```

## Conclusion

I decided to go with the runtime field as its a bit more concise and
easier to understand and performance wise it was slightly faster than
the scripted metric in most times.

### Testing

Navigate to `Observability` -> `Overview` -> `Hosts Table` try to filter
with Rx and Tx columns
2022-11-29 10:41:18 +01:00
Milton Hultgren
5c13741663
[Stack Monitoring] Remove visible semicolon from LoadingPage (#146500)
Fixes #146342

There was a semicolon added to the JSX markup which would show on slower
devices where loading takes longer.
Please refer to the issue for a screenshot of that.
2022-11-29 02:17:29 -07:00
Boris Kirov
1d75430642
[APM] Dark mode fix for Service icon buttons (#146485)
## Summary

Simple fix to remove the custom styles for the service icon buttons, and
use `EuiButtonIcon`. That way we easily support the dark mode and we
also close an issue that was created. #127249


![image](https://user-images.githubusercontent.com/13353203/204390284-0b77cc72-bef9-48f4-ac7d-0c4413ddbed6.png)

![image](https://user-images.githubusercontent.com/13353203/204390311-aecec8fe-f9b2-4910-bd3c-562152d37c1c.png)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-29 10:14:13 +01:00
Luke Gmys
22fbb58ddf
[TIP] Extend preselected categories list (#146373)
## Summary

Preselected categories list is now extended with `agent`, `base` and
`event` fields.


![preselected](https://user-images.githubusercontent.com/11671118/204263661-f2add53d-6d47-4b94-a1b3-5e105aa81e8a.png)

- [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
2022-11-29 09:53:25 +01:00
Julia Bardi
585bf36765
added telemetry with most common error from agent logs (#146107)
## Summary

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

Merged: [elasticsearch
change](https://github.com/elastic/elasticsearch/pull/91701) to give
kibana_system the missing privilege to read logs-elastic_agent* indices.

## Top 3 most common errors in the Elastic Agent logs

Added most common elastic-agent and fleet-server logs to telemetry.

Using a query of message field using sampler and categorize text
aggregation. This is a workaround as we can't directly do aggregation on
`message` field.
```
GET logs-elastic_agent*/_search
{
    "size": 0,
    "query": {
        "bool": {
            "must": [
                {
                    "term": {
                        "log.level": "error"
                    }
                },
                {
                    "range": {
                        "@timestamp": {
                            "gte": "now-1h"
                        }
                    }
                }
            ]
        }
    },
    "aggregations": {
        "message_sample": {
            "sampler": {
                "shard_size": 200
            },
            "aggs": {
                "categories": {
                    "categorize_text": {
                        "field": "message",
                        "size": 10
                    }
                }
            }
        }
    }
}
```

Tested with latest Elasticsearch snapshot, and verified that the logs
are added to telemetry:
```
   {
      "agent_logs_top_errors": [
         "failed to dispatch actions error failed reloading q q q nil nil config failed reloading artifact config for composed snapshot.downloader failed to generate snapshot config failed to detect remote snapshot repo proceeding with configured not an agent uri",
         "fleet-server stderr level info time message No applicable limit for agents using default \\n level info time message No applicable limit for agents using default \\n",
         "stderr panic close of closed channel n ngoroutine running Stop"
      ],
      "fleet_server_logs_top_errors": [
         "Dispatch abort response",
         "error while closing",
         "failed to take ownership"
      ]
   }
```

Did some measurements locally, and the query took a few ms only. I'll
try to check with larger datasets in elastic agent logs too.


### 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>
2022-11-29 09:42:41 +01:00
Jean-Louis Leysens
5a86b583df
[Files] Move <FileUpload /> and <FilePicker /> 👉🏻 packages/shared-ux/file (#146284)
## Summary

This is a refactor:

* Move `FilesContext`, `FilePicker` and `UploadFile` components to
`packages/shared-ux/file` as packages
* Renamed `UploadFile` to `FileUpload` for more consistency
* Also created `packages/shared-ux/file/types` and added
`useBehaviourSubject` to `packages/shared-ux/file/util` (we can consider
moving this elsewhere since that function is not necessarily tied to the
files domain).
* Removed the storybook config from `files` public plugin since there
are no more components there

## How to test

👉🏻 `yarn storybook shared_ux` to see the components in a lab environment

OR

👉🏻 `yarn start --run-examples` then "Developer examples" > "Files
example" to see the components being used in Kibana

Look out for any regressions: for example, in the `FileImage` component
importing `import bh from 'blurhash'` caused a regression because
blurhash does not expose a default export. This was fixed by doing:
`import * as bh from 'blurhash`.

## Notes

* With this change, we needed to move `FilesClient` interface to
packages since it is used by the components. However, we also wanted to
keep `FilesClient` interface as it is currently exported from `files`
plugin because it exposes methods that only the server of `files` plugin
should know about (e.g., the metrics endpoint). I created the
`BaseFilesClient` in the packages directory that is extended in the
`files` plugin as needed. This is a snapshot of the types as they are
provided from the server implementation and will need to be
updated/maintained by hand from here on out.
* With `BaseFilesClient` in `packages`, we lost the type check between
`files` server endpoints and the client methods. To re-establish this
link the `CreateRouteDefinition` type helper got a parameter where the
client method can be passed in to do checks that the server inputs
(query, param and body) as well as outputs (the responses) match what
the client expects using the `X extends Y ? X : unknown` capability of
TS. See this in action in, for example
`src/plugins/files/server/routes/find.ts`. DX will be: if these ever get
out of sync, the server values for `query`, `param` or `body` will map
to `unknown` causing a type issue when trying to use these values. This
can only be fixed by bringing the `FilesClient` types in sync with the
server types.
* Server endpoints that should match expected `FilesClient`
inputs/outputs should use the `CreateRouteDefinition` type helper, but
if the endpoint does not need to map to a client method we can always
skip using `CreateRouteDefinition`.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-29 08:48:23 +01:00
István Zoltán Szabó
115c250a9b
[ML] Modifies script for population analysis screenshot (#146393)
This PR adjusts the screenshot automation script to take the
`ml-population-results` screenshots with swim lanes visible.
2022-11-29 07:44:25 +01:00
Kibana Machine
743bbdea84
[api-docs] 2022-11-29 Daily api_docs build (#146493)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/171
2022-11-29 00:50:53 -05:00
Philippe Oberti
f2532f3424
[TIP] use indicators flyout in cases view (#145459)
- modify indicators flyout to hide filter in/out button
- delete duplicate flyout component in cases module and use indicators flyout instead
- add fields to query to fetch indicator by id
- sort fields in flyout table views (overview and table tabs)
2022-11-28 21:51:08 -06:00
Matthew Kime
9e0da9802e
[data view editor] Form state refactor - move all state logic into service and out of react state management (#143604)
## Summary

This PR completes the data view editor state service. Of note:
- All form business logic is now in service although validation is still
handled by the form lib
- Service is initialized with dependencies, form config, and initial
state
- Service state is updated via simple method calls
- Service state updates are provided to React code via observables using
`useObservable`
- Service is provided via parent component which uses `useRef` so the
service is created once per flyout creation

IMO the diff isn't very helpful. It might be easier to review the
changed files in completion.

Follow up to https://github.com/elastic/kibana/pull/142421

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-28 18:16:17 -07:00
christineweng
32d1dbb1f9
[Security Solution] Inspect button title missing (#146473)
This PR is a quick bug fix for
https://github.com/elastic/kibana/issues/141617

- https://github.com/elastic/kibana/pull/143601 fixes the inspect title
issue by passing a 'title' prop to `initializeTGridSettings`.
- It appears subsequent enhancements in `sessions_viewer` also calls
`initializeTGridSettings`, but in a separate manner. This PR combines
the two t-grid initialization calls into one.


![image](https://user-images.githubusercontent.com/18648970/204374253-2c98f7c7-76fd-4b60-92ae-367464e64abf.png)
2022-11-28 16:36:40 -08:00
Davis McPhee
8b0490e1e3
[Discover] Fix crash when navigating from saved search with time field to saved search without time field (#146478)
## Summary

This PR fixes an issue where loading a saved search with a time field
and then loading a saved search without a time field would cause
Discover to crash.

Fixes #146464.

### Checklist

- [ ] ~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)~
- [ ]
~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [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
- [ ] ~Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
- [ ] ~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))~
- [ ] ~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)
2022-11-28 20:29:19 -04:00
Kevin Logan
3fa88f2896
[Security Solution] Add missed policy migration export (#146481)
## Summary

Adds a missing export to the policy migration for 8.6.0

PR with the migration for reference:
https://github.com/elastic/kibana/pull/146050

- [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>
2022-11-28 17:11:17 -07:00
Tiago Costa
e65c652610
chore(NA): updates from lmdb-store to lmdb (#145891)
This PR upgrades from `lbmd-store` into `lmdb` which is the new package
and fully compatible with node `v18`.
So far my tests shows the new implementation is compatible with our
usages and I'm actually seeing a great performance boost when comparing
with main specially on subsequent calls of the same command.

This can be tested by running the following 2 times on main vs this
branch `time node scripts/kibana --config
src/cli/serve/integration_tests/__fixtures__/invalid_config.yml
--migrations.skip=true --verbose`

I verify the following on my machine

**main:**
_1st run:_ 36s
_2nd run:_ 34s

**this branch:**
_1st run:_ 35s
_2nd run:_ 6s

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-28 16:48:15 -07:00
Marshall Main
13c1b0b863
[Security Solution][Alerts] Add tour to rule management page for suppression and new terms multi fields (#145775)
## Summary

Adds new tour highlighting new rule capabilities in 8.6 - new terms
multi fields (https://github.com/elastic/kibana/pull/143943) and alert
suppression (https://github.com/elastic/kibana/pull/142686).

I tried using the generic `RulesFeatureTour` again
(https://github.com/elastic/kibana/compare/main...marshallmain:kibana:failed-tour)
but it still crashes the page.

I also looked at integrating this tour with the Guided onboarding tour
for rules management (https://github.com/elastic/kibana/pull/145223),
but concluded that they should be separate since guided onboarding is
experimental and this tour should be displayed to users even if they are
not new users.

This PR is essentially a copy of the new terms tour in 8.4
(https://github.com/elastic/kibana/pull/138469).
2022-11-28 13:35:02 -08:00
Julia
c5f20721e1
Ram 145739 use bulk enable disable in UI (#145928)
Resolves: https://github.com/elastic/kibana/issues/145739

## Summary

In this PR I am enabling Enable and Disable in menu when Select all is
chosen. And trigger new bulk enable/disable API when Enable/Disable
option will be chosen.

### 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>
2022-11-28 21:12:58 +01:00
Nick Peihl
19413b7daa
[PresentationUtil] Fix Canvas expression autocomplete (#146425)
Fixes #146243 

## Summary

Fixes Canvas expression autocomplete

https://github.com/elastic/kibana/pull/143739 upgraded the monaco-editor
dependency which uses a callback to the `onLanguage` method to
initialize the expressions. The PR moved the `monaco.languages.register`
command inside this callback and which was never triggered.

Moving the `monaco.languages.register` command outside the callback
appears to fix the issue.
2022-11-28 14:30:37 -05:00
Ari Aviran
55b59722f7
[Cloud Posture] UI for insufficient ES privileges (#145794)
Co-authored-by: Kfir Peled <kfir.peled@elastic.co>
2022-11-28 12:14:32 -07:00
Byron Hulcher
5b79dbea96
[Enterprise Search] Fix support for cron scheduling for Elastic Crawler Indices (#146357) 2022-11-28 12:13:08 -07:00
Jonathan Budzenski
5f342636d2
[cft] Support persisting deployments (#144370)
Adds support for a label `ci:cloud-persist-deployment`, that will
prevent deployments from shutting down until the label is removed.

This also fixes a bug in the conditional checking for whether the cloud
deployment label was removed. If `ci:cloud-deploy` is removed from a PR,
the deployment should now shutdown in the next hour instead of after
48h.

It's easiest to test this after merging. I can alternatively modify the
pipeline to run on a branch, but either way I'll end up pushing commits
and this is fairly straight forward and it breaking is low risk. Either
way works for me.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>
2022-11-28 11:39:10 -07:00
Tiago Costa
49a18f121e
skip flaky suite (#142774) 2022-11-28 18:25:11 +00:00
Tiago Costa
48924de8c4
skip flaky suite (#143408) 2022-11-28 18:23:02 +00:00
Rashmi Kulkarni
a270d75f36
fix for the skipped functional test sync_colors.ts (#146083)
trying to fix https://github.com/elastic/kibana/issues/97403

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-28 10:08:50 -08:00
Yulia Čech
91ae3df37d
[Guided onboarding] Fix API requests spam when request fails (#145728) 2022-11-28 13:03:03 -05:00
spalger
69c59a971a
remove invalid JSX from docs 2022-11-28 12:02:20 -06:00
Vitalii Dmyterko
c086220f1b
[Security Sollution][Alerts] fixes rule preview issue for new terms field (#145707)
## Summary

- fixes https://github.com/elastic/kibana/issues/144322
- details on underlying
[issue](https://github.com/elastic/kibana/issues/144322#issuecomment-1321838136)
within form-lib

### Before


https://user-images.githubusercontent.com/92328789/202687215-e9606bd0-5cfd-4a92-9abf-edaf90868505.mov

### After


https://user-images.githubusercontent.com/92328789/202688418-7cb7d250-02f3-4020-bfa0-65191b8a529b.mov
2022-11-28 17:36:40 +00:00
Vitalii Dmyterko
0f31951235
[Security Solution][Alerts] fixes new terms multi fields timeline issue (#146185)
## Summary

- fixes https://github.com/elastic/kibana/issues/146131

### Before

https://user-images.githubusercontent.com/92328789/203600097-589d4b8b-c238-48e4-bf72-2f2efcc39ac2.mp4

### After

https://user-images.githubusercontent.com/92328789/203599864-37a4ccc3-12b8-4c48-87ea-559d15582ef9.mov


### 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)
2022-11-28 17:26:07 +00:00
Ahmad Bamieh
ab8dd04073
[UA] fix flaky test (#146351)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Closes https://github.com/elastic/kibana/issues/144885
2022-11-28 19:52:15 +03:00
Steph Milovic
3a6825cf47
Fixes auto suggest in security solution (#145924) 2022-11-28 09:52:03 -07:00
Paul Tavares
48adb0c467
[Security Solution][Endpoint] Change Policy list page empty state onboarding screen to support RBAC (#146180)
## Summary

- Changes the Policy List onboarding screen so that if the user does NOT
have access to Fleet, then the "Add Elastic Defend" button is hidden and
a message is displayed instead that points the user to the documentation
2022-11-28 09:49:31 -07:00
Ievgen Sorokopud
3c30b3f8ce
[Security Solution] Stop Job should show when ml job toggle is on (#146407)
## Summary

This PR fixes incorrect wording of the ML Job run/stop status label.
Right now we always show "Run job" label even when job has been started
already. With this fix we will show "Stop job" in case of running job.

Job is not running state:

<img width="782" alt="Screenshot 2022-11-28 at 15 55 37"
src="https://user-images.githubusercontent.com/2700761/204308912-b53fa125-715a-4240-b6a3-e75be68d4251.png">

Job is running state:

<img width="785" alt="Screenshot 2022-11-28 at 15 55 29"
src="https://user-images.githubusercontent.com/2700761/204308956-c0fb7cae-8c95-4f26-8bae-ddff3e44a214.png">

Ticket: #145324
2022-11-28 17:47:29 +01:00
Nicolas Chaulet
97c08ccbb0
[Fleet] Fix fleetauthz tags serialization multi level (#146413) 2022-11-28 11:46:00 -05:00
Jorge Sanz
3cf200254e
[DOCS] [Maps] Fix the list of EMS supported prococols (#146313)
## Summary

Removes `1.3` from the list of TLS supported protocols for Elastic Maps
Service server.
2022-11-28 11:36:20 -05:00
Sander Philipse
1e5f7034cc
[Enterprise Search] Replace long-running jobs with stuck jobs (#146419)
This replaces the long-running syncs view with stuck syncs.
2022-11-28 09:25:59 -07:00