Commit graph

63244 commits

Author SHA1 Message Date
shahzad31
dc0e1dd0eb Merge branch 'main' of github.com:elastic/kibana into fix/synthetics-quote-monitor-name 2023-05-12 09:22:26 +02:00
Elastic Machine
28261af7dc
[main] Sync bundled packages with Package Storage (#157450)
Automated by
https://internal-ci.elastic.co/job/package_storage/job/sync-bundled-packages-job/job/main/3771/

Co-authored-by: apmmachine <infra-root+apmmachine@elastic.co>
2023-05-12 08:52:31 +02:00
Coen Warmer
62437bb51a
Move useTrackMetric hook usage to Observability Shared (#157272) 2023-05-12 07:54:50 +02:00
Kibana Machine
05cad1381d
[api-docs] 2023-05-12 Daily api_docs build (#157451)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/335
2023-05-12 00:50:41 -04:00
Steph Milovic
4371c157b0
[Security solution] Fix grouping query, be ready for arrays! (#157330) 2023-05-11 17:03:16 -06:00
Adam Demjen
951fca587b
[Enterprise Search] Show single vs multi-threaded ELSER panel (#157339)
## Summary

After the ELSER model has been downloaded, the user has two options for
starting it: with a single-click using a minimal default configuration,
or fine-tuning it. Since the former is not meant for production use, we
encourage the user to make the model more resilient by configuring more
threads or allocations. This is mentioned on the ELSER status panel; it
shows "running single-threaded" if
- ~there is a single deployment of the model, AND~
- the model deployment is allocated to a single node, AND
- the deployment uses a single thread.

If any of these numbers is greater than 1, the panel just says the model
is running.


![ELSER_single_multi_thread_start](7dec34c7-115c-4584-a936-bfd6e17329e0)

### 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] [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] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 14:38:19 -07:00
Karl Godard
f884e243e0
[D4C] updated cloud_defend to use new fleet extension (#157342)
## Summary

Fixes an onboarding issue related to using the old "create" and "edit"
fleet extensions. Agent flyout would not automatically open after adding
the integration.

Using the 'package-policy-replace-define-step' hook fixes the problem.

New hook does not implement integration **name** and **description**
fields, so those were added in as well.


![image](f046ebfc-71df-4293-ac87-6589e3f13ef7)

### 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
2023-05-11 12:14:34 -07:00
Sloane Perrault
a520001f40
[Enterprise Search] Search Application schema conflict warnings (#157282)
## Summary

Adds warnings through the search applications UI when a search
application has schema conflicts

<details>
<summary>🖼️ screenshots</summary>

![Screen Shot 2023-05-10 at 09 37
55](452c7950-248a-4e3a-bfe3-631718d4d981)
![Screen Shot 2023-05-10 at 09 38
05](be3b51e6-3830-45bc-877e-635ca3c8c938)
![Screen Shot 2023-05-10 at 09 38
09](bfcf56d3-c2d5-49b0-b7e0-3081c2ad773e)
![Screen Shot 2023-05-10 at 09 38
12](8515ba20-d888-4678-a1d0-b0e897c70602)
![Screen Shot 2023-05-10 at 09 38
18](1695be43-5780-46bb-8a4e-114e09bc308b)

</details>

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

---------

Co-authored-by: Julian Rosado <julian.rosado@elastic.co>
2023-05-11 12:05:08 -07:00
Xavier Mouligneau
f2c38dd04b
[ResponseOps][Security Solution] - 8.8 Alert table SHOW 7.x alerts (#157405)
## Summary

FIX https://github.com/elastic/kibana/issues/157398


### 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>
2023-05-11 11:13:37 -07:00
Abdul Wahab Zahid
d4df0d8d2b
[Synthetics] Fix - Monitor Add/Edit form saves monitor with duplicate name (#157053)
Fixes #154855

Prevents the monitor Add/Edit form to from saving a monitor with duplicate name.
2023-05-11 20:05:25 +02:00
Karl Godard
f87971425e
[D4C] Increased Jest unit test coverage to cover test plan (#157230)
## Summary

Unit tests added to reflect a WIP test plan. Minimal code functionality
changes, mostly new unit tests.

### 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
2023-05-11 10:57:56 -07:00
Kaarina Tungseth
75cdef05d9
[DOCS] Adds 8.8.0 release notes (#155951)
## Summary

Adds the release notes for the 8.8.0 release.

---------

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
2023-05-11 12:13:01 -05:00
Carlos Crespo
8baff25966
[Infrastructure UI] Hosts view handle invalid KQL error (#156989)
closes [#987](https://github.com/elastic/obs-infraobs-team/issues/987)

## Summary

This PR changes the hosts view to graciously handle exceptions caused by
invalid KQL submissions

<img width="1451" alt="image"
src="5bafc987-9a14-4b03-9038-53179f7b6735">


Besides, it changes the way it was handling a fatal error that can
happen if something wrong happens while creating an ad-hoc data-view -
this is highly unlike to happen, but we're standardizing how we display
errors on the hosts view

_Previously:_
<img width="1439" alt="image"
src="https://user-images.githubusercontent.com/2767137/236833673-c994512f-cb73-441b-9783-506bab67ff4b.png">

_Now:_
<img width="1439" alt="image"
src="https://user-images.githubusercontent.com/2767137/236862216-fada9f50-5d27-45b9-a6f3-8ac497a3e048.png">

### How to test
- Go to hosts view
- Type invalid KQL expressions on the search bar

### For reviewer

If the page is loaded with a querystring containing an invalid `query`
(e.g:
`_a=(dateRange:(from:now-15m,to:now),filters:!(),limit:20,panelFilters:!(),query:(language:kuery,query:%27%7D%27)`),
the Control components will show an error. However, they can't recover
from fatal errors. So even after the user corrects the mistake in the
query, the controls will remain in the error state.

A ticket has been opened to address this problem:
https://github.com/elastic/kibana/issues/156430

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 13:59:23 -03:00
jennypavlova
89f310c537
[Infrastructure UI] Processes tab: add N/A if the process summary is missing (#157374)
Closes [#153942](https://github.com/elastic/kibana/issues/153942)

## Summary

This PR shows 'N/A' when the values inside the process summary are not
available (and the actual value when available)


## Testing
- Open Hosts view and find a host ( where the process summary is not
available )
- Open the flyout and select the "Processes" tab
- The values inside the process summary should be 'N/A'
(Same should be shown in inventory)

<img width="2259" alt="Screenshot 2023-05-11 at 13 34 58"
src="7f8a6e3d-cd87-452a-9f73-13dbc567501d">


<img width="2258" alt="Screenshot 2023-05-11 at 13 36 05"
src="2708ef2f-b119-46a4-80e8-048e25a22c21">

- Open Hosts view and find a host ( where the process summary is
available )
- Open the flyout and select the "Processes" tab
- The values inside the process summary should be available (and total
processes > 0)
(Same should be shown in inventory)

<img width="2262" alt="Screenshot 2023-05-11 at 13 35 33"
src="89aeb53f-c7c2-483f-b21f-9a0b67ca22c4">
 
<img width="2265" alt="Screenshot 2023-05-11 at 13 36 29"
src="06b44138-21bb-4c47-a31b-b43749df58a0">
2023-05-11 09:50:26 -07:00
Julia Bardi
a0ee7b6fc8
[Fleet] fix for upgrade package with tsds removed (#157395)
## Summary

Fixes https://github.com/elastic/kibana/issues/157345

To test:

Install `nginx-1.12.0-beta` which has `index.mode:time_series`.

```
POST http://elastic:changeme@localhost:5601/api/fleet/epm/packages/nginx-1.12.0-beta
kbn-xsrf: kibana

{
   "force": true
 }
```

Upgrade to `nginx-1.12.1-beta` which has `index.mode:time_series`
removed.

Upload this package built manually:

[nginx-1.12.1-beta.zip](11452945/nginx-1.12.1-beta.zip)

```
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/api/fleet/epm/packages -u elastic:changeme --data-binary @nginx-1.12.1-beta.zip
```

The package should install successfully and time_series should be
removed from the index template `metrics-nginx.stubstatus`

WIP: update tests


### 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-05-11 09:39:03 -07:00
Joey F. Poon
0c33f8da6a
[Fleet] update uninstall token index to ingest (#157403) 2023-05-11 09:26:40 -07:00
Chris Cowan
78671f113c
Fix the charts and group by section on the Log Threshold alert detail page (#155327)
## Summary

This PR fixes #155083 with the following changes:

- Create a new field to store the action context for an alert under
`ALERT_CONTEXT` (`kibana.alert.context`) for Log Threshold Rule.
- Change the alert detail page to reference the `groupByKeys` under
`ALERT_CONTEXT` for the group by section
- Change the history chart to only display `12h` buckets

I plan to do a follow up PR to add the ALERT_CONTEXT to the other
Observability Rules which we will also need for our alert details pages.

### How to test

1. Index data using:
https://github.com/elastic/high-cardinality-cluster/tree/main/high_cardinality_indexer
by running the following command:
```
DATASET="fake_stack" EVENTS_PER_CYCLE=1 INDEX_INTERVAL=60000 ELASTICSEARCH_HOSTS=http://localhost:9200 node src/run.js
```
2. Create a DataView for named "Admin Console" with the index pattern of
`high-cardinality-data-fake_stack.admin-console-*` and the timestamp
field set to `@timestamp`
3. Go to the Log Stream in Observability and change the index pattern to
"Admin Console"
4. Create a rule that looks like:

<img width="600" alt="image"
src="https://user-images.githubusercontent.com/41702/232578891-e65a3f1a-457c-459a-8d7f-cadc85e7067c.png">

5. Create a rule WITHOUT a group by that will trigger and check the
alert detail page
6. Create a rule with a ratio WITHOUT a group by that will trigger and
check the alert detail page
7. Create a rule with a ratio WITH a group by that will trigger and
check the alert detail page

---------

Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 08:54:35 -07:00
Carlos Crespo
937912b056
[Infrastructure UI] Host limit telemetry (#155726)
closes: https://github.com/elastic/kibana/issues/155567

## Summary

This PR adds a new custom event to track the total number of hosts, as
well as adjusts a few `data-test-subj` attribute values to meet the
naming convention defined in the observability-dev
[docs](https://github.com/elastic/observability-dev/blob/main/docs/how-we-work/telemetry/telemetry-convention.md#naming-convention)


### For Reviewers

An option for not allowing yet a new custom event in FS could be
triggering the new custom events only for self-managed customers, and in
FS watch the element that holds the total number of hosts. But for now,
I decided to allow the new custom event in FS for consistency

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 12:44:38 -03:00
Tiago Costa
a4a9ad9f2c
skip flaky suite (#156998) 2023-05-11 16:31:47 +01:00
Antonio
2e0ba63e31
[Cases] Limit searchFields in the Find Case API query params (#156495)
Fixes #155978

## Summary

- Remove the `fields` parameter from the find cases API 
- Limit the `searchFields` parameter in the find cases API

One of the FTR tests was actually successfully calling the find_cases
API while passing the fields parameter but only certain combinations of
fields would actually work.

Passing single fields would not work.

I just removed the test as we won't support the `fields` param anymore.

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-05-11 11:04:10 -04:00
Coen Warmer
44a62f84a2
[SLO] Correctly wait for licensing promise to resolve on server (#157384) 2023-05-11 16:39:11 +02:00
Francesco Gualazzi
cec3ee91ac
Profiling: fix links in Add Data page (#157333)
## Summary

Adjust download links for Universal Profiling host-agent in the Add Data
page.
The links need to be updated because of a breaking change in the
protocol.

Signed-off-by: inge4pres <francesco.gualazzi@elastic.co>
2023-05-11 16:29:29 +02:00
Rodney Norris
efac422e19
[Enterprise Search] fix(index inference pipelines): fetch models on elser deploy (#157318)
## Summary

Updated the inference pipeline flyout logic to refetch ml models when
the user deploys the ELSER text expansion model. This will allow them to
select the model if they deploy it from the flyout.


25916c61-cdad-4213-8034-265aaac1f945

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 08:53:26 -05:00
Coen Warmer
dcf1c235dc
Return error from RQ useFetchList hook, have better error handling (#157382) 2023-05-11 06:36:11 -07:00
Paul Tavares
f9f4c1a800
[Security Solution][Endpoint] add upload console response action (#157208)
## Summary

- Add the `upload` response action to the endpoint console
2023-05-11 09:10:35 -04:00
Coen Warmer
497b374b6c
Only set timeslice properties when budgeting method is set to timeslices (#157372) 2023-05-11 15:01:57 +02:00
Yan Savitski
1e5239bbc7
[Enterprise Search][Behavioral Analytics] Add cors link to behavioral analytics (#157267)
Updated the link to point to the following page:

https://www.elastic.co/guide/en/enterprise-search/master/analytics-cors-proxy.html

<img width="1637" alt="image"
src="e734763d-4f65-4a43-b457-2344820c8e4b">
2023-05-11 13:02:11 +01:00
Kyle Pollich
c21f2a978f
[Fleet] Always generate time series metrics/dimensions regardless of whether index_mode: "time_series" is set (#157047)
## Summary

Blocked by https://github.com/elastic/integrations/pull/6128

This PR changes Fleet's mapping generation logic in `@package` component
templates such that `time_series_dimension: true` and `metric_type`
properties are generated for all mappings regardless of whether
`index_mode: "time_series"` is set. Previously, Elasticsearch would
error if this were the case, however in newer versions of Elasticsearch
it's simply a no-op when `index_mode` is not set to `time_series` and
TSDS fields are declared.

This allows us to more easily toggle TSDB on/off via API requests for
user trial.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 07:41:06 -04:00
Dario Gieselaar
e1fdc6e7b1
[Logs/APM] Get context menu items from triggers (#157131)
Adds the possibility of registering external context menu items for Logs
UI/APM UI using UI Actions.

To test, revert the following commit:
4e5e99d674

**APM: Investigate button on the error sample section**
<img width="1446" alt="image"
src="3336213c-10e4-4670-9fce-1bd9cd261f38">

**Logs: Investigate button on a log line**

<img width="1472" alt="image"
src="b172bf68-86c4-45bd-9a87-9ee83211a1ca">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 04:25:09 -07:00
Navarone Feekery
6cb88e6405
[Enterprise Search] Add check for dependencies before checking length (#157367)
## Summary

Add check to see if dependencies is undefined before checking length.
Dependencies can be undefined if a user's connector was created before
8.8.
2023-05-11 13:15:35 +02:00
Dario Gieselaar
f93e53181c
[APM] Serverless flags (#155496)
Implements (currently mocked) serverless flags, with public/server APIs
and a reference implementation for agent configuration not being
available on serverless.
2023-05-11 12:26:56 +02:00
Coen Warmer
65e0aa7ec1
Make "Create an SLO burn rate alert rule" checkbox clickable when Editing SLO (#157361) 2023-05-11 02:53:59 -07:00
Tre
5be2b0670d
[CI] Script that adds github labels to buildite metadata (#156826)
## Summary

Annotating and setting metadata for now.

Resolves: https://github.com/elastic/kibana/issues/156666
2023-05-11 10:38:11 +01:00
Yngrid Coello
0fc4949de0
[Logs onboarding] Added Cypress to observability onboarding plugin (#157147)
This PR enables cypress testing in observability onboarding plugin.
2023-05-11 09:45:47 +02:00
Yngrid Coello
4808a6dd59
[Logs onboarding] custom logs - configure logs (#157008)
Closes https://github.com/elastic/kibana/issues/155964.



https://user-images.githubusercontent.com/1313018/237059034-31ef39c1-7d7d-4e60-bd01-22680bb25035.mov

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 09:45:30 +02:00
Pierre Gayvallet
3b6b7ad9b9
SavedObjectsRepository code cleanup (#157154)
## Summary

Structural cleanup of the `SavedObjectsRepository` code, by extracting
the actual implementation of each API to their individual file (as it
was initiated for some by Joe a while ago, e.g `updateObjectsSpaces`)

### Why doing that, and why now?

I remember discussing about this extraction with Joe for the first time
like, what, almost 3 years ago? The 2.5k line SOR is a beast, and the
only reason we did not refactor that yet is because of (the lack of)
priorization of tech debt (and lack of courage, probably).

So, why now? Well, with the changes we're planning to perform to the SOR
code for serverless, I thought that doing a bit of cleanup beforehand
was probably a wise thing. So I took this on-week time to tackle this (I
know, so much for an on-week project, right?)

### API extraction

All of these APIs in the SOR class now look like:

```ts
  /**
   * {@inheritDoc ISavedObjectsRepository.create}
   */
  public async create<T = unknown>(
    type: string,
    attributes: T,
    options: SavedObjectsCreateOptions = {}
  ): Promise<SavedObject<T>> {
    return await performCreate(
      {
        type,
        attributes,
        options,
      },
      this.apiExecutionContext
    );
  }
```

This separation allows a better isolation, testability, readability and
therefore maintainability overall.

### Structure

```
@kbn/core-saved-objects-api-server-internal
  - /src/lib
    - repository.ts
    - /apis
      - create.ts
      - delete.ts
      - ....
      - /helpers
      - /utils
      - /internals
```    


There was a *massive* amount of helpers, utilities and such, both as
internal functions on the SOR, and as external utilities. Some being
stateless, some requiring access to parts of the SOR to perform calls...

I introduced 3 concepts here, as you can see on the structure:

#### utils

Base utility functions, receiving (mostly) parameters from a given API
call's option (e.g the type or id of a document, but not the type
registry).

#### helpers

'Stateful' helpers. These helpers were mostly here to receive the
utility functions that were extracted from the SOR. They are
instantiated with the SOR's context (e.g type registry, mappings and so
on), to avoid the caller to such helpers to have to pass all the
parameters again.

#### internals

I would call them 'utilities with business logic'. These are the 'big'
chunks of logic called by the APIs. E.g `preflightCheckForCreate`,
`internalBulkResolve` and so on.

Note that given the legacy of the code, the frontier between those
concept is quite thin sometimes, but I wanted to regroups things a bit,
and also I aimed at increasing the developer experience by avoiding to
call methods with 99 parameters (which is why the helpers were created).

### Tests

Test coverage was not altered by this PR. The base repository tests
(`packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.test.ts`)
and the extension tests
(`packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.{ext}_extension.test.ts`)
were remain untouched. These tests are performing 'almost unmocked'
tests, somewhat close to integration tests, so it would probably be
worth keeping them.

The new structure allow more low-level, unitary testing of the
individual APIs. I did **NOT** add proper unit test coverage for the
extracted APIs, as the amount of work it represent is way more
significant than the refactor itself (and, once again, the existing
coverage still applies / function here).

The testing utilities and mocks were added in the PR though, and an
example of what the per-API unit test could look like was also added
(`packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/remove_references_to.test.ts`).

Overall, I think it of course would be beneficial to add the missing
unit test coverage, but given the amount of work it represent, and the
fact that the code is already tested by the repository test and the
(quite exhaustive) FTR test suites, I don't think it's worth the effort
right now given our other priorities.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-11 00:25:27 -07:00
Kibana Machine
b70496ee82
[api-docs] 2023-05-11 Daily api_docs build (#157349)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/334
2023-05-11 01:01:15 -04:00
Dominique Clarke
1dbf3bb071
[Synthetics] adjust alert id for synthetics (#157234)
## Summary

Resolves https://github.com/elastic/kibana/issues/152773

Uses the `idWithLocation` value as the unique id for a monitor alert.

Given that we use uuid's for monitor config ids, this id should be
unique enough for any given monitor.

## Release note

All monitor status alerts for the Synthetics app that are active at the
time of upgrading will be resolved. A new alert will be created in its
place.
2023-05-10 21:34:51 -04:00
Joey F. Poon
4150ca4675
[Fleet] add ingest-agent-policies.is_protected SO attribute (#157077)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-10 14:23:02 -07:00
Brian Seeders
9fc7d0a1b3
Add temporary test pipeline for KME test (#157334) 2023-05-10 17:16:49 -04:00
Giuseppe Santoro
91a23941d8
fix bug that prevent index.mapping settings to be propagated into component templates from default settings (#157289)
## Summary

If you have a setting like `index.mapping.ignore_malformed`, in the
default settings, that is currently not propagated when a new component
template is built in the function `buildComponentTemplates` in Fleet


### Checklist

Delete any items that are not applicable to this PR.

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

---------

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2023-05-10 13:39:08 -07:00
Dominique Clarke
d391c669d9
[Synthetics] i18n for monitor validation errors (#155721)
## Summary

Resolves https://github.com/elastic/kibana/issues/154880

Adds i18n for errors from project monitors
2023-05-10 16:10:28 -04:00
Joey F. Poon
cb7c0f4a6b
[Fleet] add uninstall token service (#154610)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-10 14:26:36 -05:00
Lukas Olson
ba6f36757e
[Discover] Fix filtering with date_nanos type and negating (#156103)
## Summary

Fixes https://github.com/elastic/kibana/issues/155630.
Fixes https://github.com/elastic/kibana/issues/156082.

Fixes filter generation to not generate `date_time` filters from
`date_nanos` field types.
Fixes filter generation to actually negate filters when clicking on the
minus button.

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

### Release note

Fixes an issue in Discover where filtering on a date_nanos field didn't
work correctly.
Fixes an issue in Discover where filtering out a range (date or
otherwise) would actually instead filter for the range.
2023-05-10 11:50:24 -07:00
Paulo Henrique
0d1040dda6
[Cloud Security] Increase max number of CSPM accounts / KSPM clusters in the Cloud Security dashboard (#157233) 2023-05-10 11:44:24 -07:00
Sander Philipse
74fa021d0c
[Enterprise Search] Enable default native config (#157260)
## Summary

This enables a default native config, so that we don't show an empty
page to connectors that have `is_native` set to true but don't have a
known native configuration in Kibana.
2023-05-10 20:17:39 +02:00
Sander Philipse
faa79e6bbe
[Serverless Search] Create overview page (#157021)
## Summary

This adds the basics of the planned Serverless Search overview page to
the Serverless Search plugin.

I added these pages to the `serverless_search` plugin rather than rely
on the existing Enterprise Search plugin for a few reasons:
1) These pages don't need any of the overhead and frameworks we've built
into the Enterprise Search plugin, keeping it in its own plugin makes
this much lighter-weight and easier to maintain and decouple.
2) This is all specific to Serverless Search, and won't be used in
Enterprise Search (at least for the foreseeable future).

There's still quite a lot that needs to be added:
1) A bottom section with links to specific pages elsewhere in Kibana. 
2) A section to create API keys
3) The integration links still need to go somewhere
4) This page needs some work on smaller screens, and the sidebar
overlaps the content on smaller screens.


https://user-images.githubusercontent.com/94373878/236879351-13af0162-4510-4bb0-a815-afa61249542c.mov


### 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] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-10 20:00:57 +02:00
Dzmitry Lemechko
7f4ceb1d30
Update ftr services to handle occasional WebDriverError (#157283)
## Summary

Starting with Chrome v113 we noticed that `_area_chart.ts` suite became
flaky #156821 failing with
`WebDriverError: unknown error: unhandled inspector error:
{"code":-32000,"message":"No node with given id found"}`
Updating chromedriver to v113 did not solve the issue and more tests
started to fail with the same error.

It happens occasionally when driver returns unhandled error instead of
StaleElementReferenceException. This PR adds the error to the
`RETRY_ON_ERRORS` list, so that FTR can search for the element again and
re-try the action on it:

```
           │ debg getVisibleText: elementId=29C3E81151C86107290DD8F020524333_element_290
           │ debg Chromedriver issue #4440, WebElementWrapper.getVisibleText: WebDriverError: unknown error: unhandled inspector error: {"code":-32000,"message":"No node with given id found"}
           │        (Session info: chrome=113.0.5672.63)
           │ debg current ElementID=29C3E81151C86107290DD8F020524333_element_290
           │ debg new ElementID=29C3E81151C86107290DD8F020524333_element_293
           │ debg Searching again for the element 'By(css selector, [data-test-subj="visEditorInterval"] + .euiFormErrorText)', 2 attempts left
           │ debg getVisibleText: elementId=29C3E81151C86107290DD8F020524333_element_293
           └- ✓ pass  (1.8s)
```

There is no need to use `Retry` service, `WebDriverWrapper.retryCall`
should handle the issue.

Flaky test runner 100x for Vis Editor config:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2236
Flaky test runner 100x for Cases config:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2237

And 2 more 100x:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2239
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2237
2023-05-10 20:00:44 +02:00
Shahzad
51f6eeccef
[Synthetics] Fix mis-match between test results in ping list (#157132) 2023-05-10 18:37:32 +02:00
Philippe Oberti
fcefb39f7f
Enhance and cleanup TIP unit tests (#157222) 2023-05-10 11:09:03 -05:00