Commit graph

68091 commits

Author SHA1 Message Date
Christos Nasikas
dea2b03906
[Cases] Wait for the configuration page to appear before starting the tests (#168465)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-10-14 10:54:20 +03:00
Kibana Machine
7c6cb47d4c
[api-docs] 2023-10-14 Daily api_docs build (#168906)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/490
2023-10-14 00:57:24 -04:00
Drew Tate
bab28dc95d
Migrate visualization, annotation, graph to saved_object_content_storage (#168520)
## Summary

Close #167421

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 21:57:26 -05:00
Rickyanto Ang
fe7afbbcb3
[Cloud Security][FTR] FTRs for GCP Single account (#168773)
## Summary

This PR is for GCP Single Account related FTRs

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 18:09:17 -07:00
Luke Elmers
14a6e8928b
Relocate security solution QG soft fail to the correct place. (#168901)
In https://github.com/elastic/kibana/pull/168898, the `soft_fail` for
the security solution quality gate was accidentally added to the wrong
spot in the pipeline config. This fixes it per the [buildkite
docs](https://buildkite.com/docs/pipelines/command-step#soft-fail-attributes).
2023-10-13 15:42:07 -07:00
Luke Elmers
492a0746af
Allow security solution QA QGs to soft fail. (#168898)
Security solution's serverless QA quality gates which were added in
https://github.com/elastic/kibana/pull/167494 are failing when trying to
run cypress tests. I've marked them to soft fail here so we can unblock
the serverless release pipeline.

cc @watson @elastic/kibana-operations @MadameSheema @charlie-pichette
@YulNaumenko
2023-10-13 15:17:22 -07:00
Tiago Costa
50c59afe4b
skip flaky suite (#168340) 2023-10-13 22:38:48 +01:00
Devon Thomson
1c2df62494
Re-word partial data message (#168883)
Re-words the partial data message to remove the word "wrong".

Co-authored-by: nreese <reese.nathan@elastic.co>
2023-10-13 17:29:38 -04:00
Katerina
c83f5db5ad
[APM] Modify has_any_service telemetry (#166925)
# Summary 
fixes https://github.com/elastic/observability-bi/issues/65

## Context
Observability-bi uses the
[signal](https://docs.elastic.dev/observability-bi/observability-marker#signals)
`has_apm_services` based on the telemetry field `has_any_services` to
determine whether a cluster has documents for at least one APM service
for the given day.

## Problem 

Previously we determined if the cluster has any service by checking ONLY
the officially supported agents. There might be cases where the cluster
has agents that are not on the agent's list. Leading to the wrong
result.

Modified to check if there is any document with the field `service.name`
and added `has_any_services_per_official_agent` to track the official
agent's services

### Side effects

Modifying `has_any_service` telemetry (most likely) will increase the
metrics using this field.

---------

Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
2023-10-13 13:57:50 -07:00
Saarika Bhasi
bd3c83e34c
[Serverless Search] Consolidate Console and Search profiler, rename to dev tools (#168857)
## Summary

This PR Consolidates `Console` and `Search profiler` to one tab as `Dev
tools` 


## Screen recording


f6b2cb0f-f27c-43f2-9151-09875673a115

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 16:53:20 -04:00
Rodney Norris
1a5c0ad3ce
[Serverless Search] test: improve svl search telemtry ftr (#168852)
## Summary

When running these test yesterday this test was always failing, so I
updated the telemetry config tests to be robust enough to pass on N
runs. The current test will only pass on the 1st run since we update the
labels in the 2nd test.
2023-10-13 13:37:02 -07:00
Zacqary Adam Xeper
530cdf187a
[RAM] Remove restriction on setting a start time in the past on Snooze Scheduler UI (#168160)
## Summary

Closes #167176

Sets the minimum date in the snooze scheduler datepicker to the current
date at `00:00`. This is useful especially when the user is trying to
create a recurring schedule that starts today, and should start at a
time earlier than the current time on future occurrences.
2023-10-13 15:47:31 -04:00
Yara Tercero
6d3449162d
[Detection Engine][Cypress] Reenable and reorganize some detection_alerts and data_sources tests (#168426)
## Summary

#### Code update:
`/detection_engine/routes/signals/set_alert_tags_route.ts`
- When enabling the alert tags cypress test, noticed it was failing as
the tag updates did not show in the UI until a few seconds later upon a
second refresh. I was able to recreate this locally on serverless, not
on ESS. I updated the alerts tag route to include `refresh: true` and
that seemed to fix this issue.
- `/detection_engine/routes/signals/open_close_signals_route.ts`
- When testing on serverless, alert status was stale after update.
Confirmed this with tests that were failing for ESS. Upon updating route
to use `refresh: true`, tests began passing and could see expected
behavior. This may make the call a bit heavier so we will want to see if
there are any performance impacts.
2023-10-13 12:34:58 -07:00
Tiago Costa
a9a8c96d95
skip flaky suite (#168625) 2023-10-13 20:26:49 +01:00
Tiago Costa
ae349b9224
skip flaky suite (#168750) 2023-10-13 20:24:52 +01:00
Elena Stoeva
cfddceeafd
[Serverless] [Advanced Settings] Remove storeInSessionStorage setting (#168725)
Closes https://github.com/elastic/kibana/issues/168480

## Summary

This PR removes the `storeInSessionStorage` setting from the serverless
common settings allowlist, so that the setting is hidden from Advanced
Settings in all serverless projects.

**How to test:**
1. Start Es with `yarn es serverless` and Kibana with `yarn
serverless-{es/oblt/security}`
2. Go to Management -> Advanced Settings
3. Verify that the setting is not on the page.
2023-10-13 18:48:19 +01:00
Jiawei Wu
c66a86b07e
[RAM] Improve rule interval circuit breaker error message (#168173)
## Summary
Improve rule interval circuit breaker error message to the following
endpoints:

- create
- update
- bulk edit
- bulk enable

### Bulk modification
![Screenshot from 2023-10-06
10-11-24](11271221-4d92-41a4-9c0a-f2f8972c452e)

### Modifying a single rule
![Screenshot from 2023-10-06
10-12-16](4ad5f482-6b68-4eef-8989-3f0013c218b2)


### 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-10-13 10:22:25 -07:00
Tiago Costa
e76e589cb4
skip flaky suite (#168758) 2023-10-13 18:09:21 +01:00
Tiago Costa
459c0b060f
skip flaky suite (#168490) 2023-10-13 18:08:11 +01:00
Lisa Cawley
61e8ca2a39
[OAS] Add Serverless machine learning APIs (#168777) 2023-10-13 09:55:47 -07:00
Ying Mao
11c0bacdab
Revert "[Security Solution] Update ecs package to latest ecs definiti… (#168864)
Reverts https://github.com/elastic/kibana/pull/168553

Seeing these errors when updating existing alerts as data mappings

```
[2023-10-13T11:06:44.254-04:00][ERROR][plugins.alerting] ResponseError: illegal_argument_exception
	Root causes:
		illegal_argument_exception: can't merge a non-nested mapping [faas.trigger] with a nested mapping
    at KibanaTransport.request (/Users/ying/Code/kibana_prs/node_modules/@elastic/transport/src/Transport.ts:535:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
```

Needs further investigation as ECS mappings should be backwards
compatible
2023-10-13 09:30:34 -07:00
Sander Philipse
ddcc528395
[Search] Fix native connectors not configuring correctly (#168858)
## Summary

This fixes an issue with native connectors not being set to configured
after being configured.
2023-10-13 09:03:21 -07:00
Devon Thomson
58df0aa0d3
[Inspector] Fix Typo (#168849)
Fixes a typo in the inspector shard failure flyout
2023-10-13 11:54:54 -04:00
Konrad Szwarc
6de99ebacc
[EDR Workflows] Artifact Rollout - disable auto date setting (#168687)
https://github.com/elastic/kibana/issues/168674

With newly introduced constraint of the date selected in the datepicker
being within the last 18 months AND after the 1st of October 2023 we
want to mitigate the default behaviour of EUI datepicker that sets the
date of currently viewed month. This PR check on date change (when
selecting months in the dropdown) and if its not within the constraints
it does nothing (i.e. doesn't set the date at all).


![test1](8728fd86-e872-41b5-b829-94d4b4528eed)
2023-10-13 08:41:01 -07:00
Gloria Hornero
aa270794ae
[Security Solution] Adding serverlessQA tag (#167494)
## Summary

Currently, we have our cypress tests properly integrated with the first
quality gate. 


In this quality gate, our tests are executed as part of the PR process
using the serverless FTR environment. This environment uses the latest
elasticsearch snapshot and the kibana source code, but it is not a real
serverless environment because is not a deployed project on the cloud.

In order to continue assuring that we don’t introduce new issues, we
want to execute automated tests in the second quality gate as well. The
second quality gate is a deployed serverless project in the QA
environment.

We want to start moving slowly in that direction and at the same time
make sure we don't introduce flakiness, and the tests perform well.

In this PR we are creating the `@serverlessQA` tag. Tests including that
label will be executed on the second quality gate. 
We are also adding
the label to one of the tests we know that is stable in serverless to
test the full integration.

Note that currently, we have some known limitations in this gate pending
to be solved and we are working on it:
- Execution of the tests is sequential
- No differentiation between teams during the execution is done over the
AET umbrella
- The environment is set in `complete` so tests that exercise the
`essential` behaviour should not be added.
- Please ping me in case you want to add more tests into that gate to
asses the risk before we have the gate tested and all the serverless
tests stabilized.

---------

Co-authored-by: Georgii Gorbachev <banderror@gmail.com>
Co-authored-by: dkirchan <diamantis.kirchantzoglou@elastic.co>
2023-10-13 18:38:47 +03:00
Nicolas Chaulet
046841ce4e
[Fleet] Make experimental config robust (#168844) 2023-10-13 08:33:02 -07:00
Vitalii Dmyterko
94284a105a
[Security Solution][Detection Engine] adds rule actions PLI (#168510)
## Summary

- implements the first phase of [rule external actions Serverless
PLI](https://docs.google.com/spreadsheets/d/1BR9kjzSR0F6o6huxbJidk5ro4CVYfhmLog9ArEbxA8g/edit#gid=301346322).
Phase 1 is defined by support of PLI capabilities in actions plugins and
described [here](https://github.com/elastic/kibana/issues/163751). It
allows only hiding actions that are not in tier. Upselling messages,
will be introduced in phase 2, according to response ops ticket


### Essentials Tier

Serverless config:
```yaml
xpack.securitySolutionServerless.productTypes:
  [
    { product_line: 'security', product_tier: 'essentials' },
    { product_line: 'endpoint', product_tier: 'complete' },
  ]
```

For Essentials, only 3 rule actions available:

- email
- index
- slack

<img width="2525" alt="Screenshot 2023-10-11 at 11 13 57"
src="2a10d077-3090-494d-953f-2880c2afdccf">


### Complete Tier



Serverless config:
```yaml
xpack.securitySolutionServerless.productTypes:
  [
    { product_line: 'security', product_tier: 'complete' },
    { product_line: 'endpoint', product_tier: 'complete' },
  ]
```

<img width="2530" alt="Screenshot 2023-10-11 at 11 17 10"
src="1e5912a5-a358-409b-8fd6-e526e047fe54">

### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 08:21:43 -07:00
Liam Thompson
3f6872d77b
[Serverless Search] Polish getting started API key copy (#168683)
Before:

![screenshot_2023-10-11_at_18 39
01_720](70ba50f2-c71c-4f7e-84f3-de3d1d226104)




After: 


![after](38deaa82-1b50-400c-bc9b-427a14fec35d)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 17:02:52 +02:00
Kyle Pollich
c227785f14
[Fleet] Fix failing preconfiguration test (#168736)
## Summary

Fixes https://github.com/elastic/kibana/issues/133470
2023-10-13 07:54:49 -07:00
Achyut Jhunjhunwala
b98d7fb4c2
[APM] Fix issue with onboarding page around java agent (#168816)
## Summary

Closes - https://github.com/elastic/kibana/issues/168659
Closes - https://github.com/elastic/kibana/issues/168348

### After

<img width="1266" alt="Screenshot 2023-10-13 at 10 27 44"
src="494d9a2c-fd69-4ee9-b8a3-dcebef04beb0">
2023-10-13 07:49:33 -07:00
Luke G
71c889e88b
[Security Solution] Update ecs package to latest ecs definitions (#168553)
## Summary

Updates for autogenerated ECS definitions
2023-10-13 16:46:43 +02:00
Kevin Delemme
194f130b60
chore(slo): remove composite slo code (#168481) 2023-10-13 10:41:29 -04:00
Ryland Herrick
07c223616c
[Security Solution][Entity Analytics] Mark Risk Score Calculation route as internal (#168720)
## Summary

We don't have a specific need to release this publicly for now, so we're
going to keep it internal until we have need for it.


This is a followup to https://github.com/elastic/kibana/pull/167365,
which made this route public in the first place.
2023-10-13 09:39:39 -05:00
Anton Dosov
326ef31677
[Serverless Nav] Fix issues with sticky app menu subheader (#168372)
## Summary

- Fixes sticky kql bar in serverless security project
https://github.com/elastic/kibana/issues/167908
- Fixes double scroll in serverless discover caused by incorrect app
container height cc @elastic/kibana-data-discovery

![Screenshot 2023-10-10 at 17 23
58](3bf50299-7d9f-4c38-953a-33a6a75815c6)

- Fixes empty app header for top_nav component, for example, discover
doc page:

![Screenshot 2023-10-10 at 17 24
45](4965deac-9472-402f-8e8e-66ede83ce1bb)

---------
Co-authored-by: Cee Chen <constance.chen@elastic.co>
2023-10-13 16:11:31 +02:00
Rodney Norris
a48b58fed2
[Serverless Search] add api integration tests (#168752)
## Summary

Adding API integration tests for exists routes (most of them). This is
missing some of the connector routes for now.
2023-10-13 08:42:06 -05:00
Thomas Watson
5fc8429065
[serverless] Remove manual gate in Prod quality gate (#168474) 2023-10-13 15:39:56 +02:00
Thomas Watson
594705aef1
[serverless] move SLO quality gate check to Prod (#168471) 2023-10-13 15:39:15 +02:00
Thomas Watson
6220ee2dcc
[serverless] Don't run e2e tests before promoting to QA (#168596) 2023-10-13 15:36:56 +02:00
Matthew Kime
56c5ac95a3
[data views] REST API - get scripted field, fix response schema (#168776)
## Summary

Response schema fixed. from field formatter response to scripted field.
I suspect this slipped through since its not enforced aside from dev
environment.

Discovered and broken out from
https://github.com/elastic/kibana/pull/161611
2023-10-13 08:32:37 -05:00
Devon Thomson
7cb153d4d7
Fix ML swimlane embeddable titles (#168647)
Stops the ML Embeddables from setting the default title and default description on their outputs during initialization.
2023-10-13 09:28:57 -04:00
Tomasz Ciecierski
ae4ebd4808
[EDR Workflows] Unskip osquery tests (#168785) 2023-10-13 15:27:43 +02:00
Abdon Pijpelink
8a98763f58
Temporary link change for ES|QL STATS-BY (#168820)
Temporarily changes the deep link to the documentation for ES|QL
STATS...BY to unblock
https://github.com/elastic/elasticsearch/pull/100806 .

I'll change the link to the new STATS...BY link after
https://github.com/elastic/elasticsearch/pull/100806 merges.
2023-10-13 15:22:57 +02:00
jennypavlova
51c6ce2651
[Infra UI] Fix: Move infra tests to feature flags (#168818)
## Summary

This PR moves infra tests to use the feature flag config. This way they
won't fail on MKI
2023-10-13 06:18:48 -07:00
Gloria Hornero
a8a8349d7e
[Security Solution] Unskipping x-pack/test/security_solution_cypress/cypress/e2e/investigations/timelines/ working tests on serverless (#168384) 2023-10-13 06:17:01 -07:00
Robert Oskamp
eee0d4d6ab
[FTR] Skip failing serverless tests for MKI runs (#168810)
## Summary

This PR adds another round of `failsOnMKI` tags to serverless test
suites together with comments about the failure.
2023-10-13 14:39:36 +02:00
Shahzad
2ffb2caf0e
[Synthetics] Handle project monitors disabling public locations (#168140)
Co-authored-by: Justin Kambic <jk@elastic.co>
2023-10-13 04:34:50 -07:00
Umberto Pepato
8d4eeb9f6d
[RAM][Security Solution] Fix time range filter operator in security alerts (#167605)
Closes #163540

## Summary

The upper bound time filtering operator used in security solution's
alert table didn't include the equality (was `lt`, unlike the lower
bound `gte`). Due to this, filtering by a single point in time (`from ==
to`) always yielded empty results.

---------

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-10-13 04:34:15 -07:00
Quentin Pradet
f8a5a488ec
Update Python serverless instructions (#168783)
Fixes the Python "Getting started" serverless guide to use the correct
package.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 13:21:58 +02:00
Achyut Jhunjhunwala
3f061a5de2
[APM] Move feedback button outside the react portal in serverless (#168350)
## Summary

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


The PR moves the Feedback button outside the Action Portal in Serverless
Mode

## Serverless

### Before


![serverless-feedback-before](05569109-7235-474d-a14e-91edd4e69a16)


### After


![serverless-feedback-after](ac990c8c-f496-45c3-9b2c-69863a34f2fe)


## Stateful

Both before and After is same


![Stateful](39e21959-dc49-4410-9619-4725643ce8bf)
2023-10-13 11:38:44 +02:00
Panagiota Mitsopoulou
c000a25f41
use RedirectAppLinks from @kbn/shared-ux-link-redirect-app (#167696)
Fixes https://github.com/elastic/kibana/issues/164368

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-13 11:18:43 +02:00