Commit graph

66130 commits

Author SHA1 Message Date
Achyut Jhunjhunwala
9d55308844
[APM] Move instance test from flaky archives based to definite synthtrace b… (#164070)
## Summary

Closes - https://github.com/elastic/kibana/issues/160709
2023-08-17 09:59:47 +02:00
Dario Gieselaar
3128328def
[Observability AI Assistant] Lens function (#163872)
Co-authored-by: Coen Warmer <coen.warmer@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2023-08-17 09:45:51 +02:00
Kibana Machine
26f147e9a4
[api-docs] 2023-08-17 Daily api_docs build (#164132)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/432
2023-08-17 00:56:39 -04:00
ruhshan
1e6a87c704
[Index Management] Fix broken mapping doc links (#163660) 2023-08-17 06:31:59 +03:00
Tiago Costa
a17e307dc8
fix(NA): source classifier to indentify xml as static files (#164109)
This PR fixes a bug in the source classifier as it is currently not
identifying xml as a static file.

As part of this I've also identified a TODO in the source classifier
related with the evaluating order.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-17 00:53:59 +01:00
Lisa Cawley
8ce51770a5
[OAS] Add saved objects openAPI folder (#162522) 2023-08-16 16:01:50 -07:00
Patryk Kopyciński
fd33ed55fd
Fix osquery cypress tests (#163988)
## Summary

Adjust tests to https://github.com/elastic/kibana/pull/161614
Split tests into smaller files to better utilize parallelization and
increase the stability of tests
2023-08-17 00:11:05 +02:00
Sébastien Loix
1b6430ece4
[Serverless] Chrome UI fixes (#164030) 2023-08-16 17:21:59 -04:00
Hannah Mudge
0d74544d00
[Dashboard] Use factory's displayName in save modal (#164105)
## Summary

As part of a [larger navigation embeddable
discussion](https://github.com/elastic/kibana/pull/162285#issuecomment-1679729003),
it was noted that there were inconsistencies between how we display the
panel type between the saved object modal and the context menu action.
Turns out, this is because we were using the embeddable `type` in the
`"Save to library"` modal title while the context menu action uses the
factory's `displayName` - while this coincidentally worked **in most
cases** (`maps` and `visualization`), it **does not** work for Lens
panels, since we want to use the proper noun `"Lens"` in this case
rather than the saved object type `"lens"`:

<p align="center"><img width="500"
src="d56659bf-ff13-4974-80bb-f267fdcb1cff"/></p>

This was even **more** obvious with the navigation embeddable, since the
saved object type is currently `"navigation_embeddable"` (this may
change in the future):

<p align="center"><img width="500"
src="868daebb-fa51-4f97-bd23-3cf47472fadf"/></p>



Therefore, by switching to use the factory's `displayName` (if
available), the saved object modal will now stay consistent with the
`"Edit <x>"` option in the context menu for each panel.

| Before | After |
|--------|--------|
|
![image](d56659bf-ff13-4974-80bb-f267fdcb1cff)
|
![image](eb651928-3e9d-4c7c-bc3a-d6e3e98854f6)
|
|
![image](868daebb-fa51-4f97-bd23-3cf47472fadf)
|
![image](d1f9ca7e-1711-4041-b025-efb2b36f0684)|
|
![image](633f8d6b-185f-4b47-b9ca-4bda24344c44)
|
![image](8537bf39-a04e-4492-9d20-3162396fc4e2)<br><p
align="center">**No change**, as expected.</p> |
|
![image](75a19c15-efec-4c32-b980-6200d7c17e8e)
|
![image](bd7cb2e9-ae4f-4b52-a7ef-04d74949fd28)<br><p
align="center">**No change**, as expected.</p> |

Note that, in the above "After" screenshots, `Links` is still
capitalized unnecessarily - this is because, if we change the factory's
`displayName` to be the lowercase `"links"`, this fixes the modal but it
**also** impacts the item in the add panel context menu and the panel
actions context menu, like so:

| Add panel context menu | Panel actions context menu |
|--------|--------|
|
![image1](57e16f0b-1f5c-4291-afd3-a69e57540967)
| ![Screenshot 2023-08-16 at 1 36 14
PM](34d41119-4c84-460d-923c-1d2570dadfd9)|

This is because the link embeddable is not currently registered as a
"visualization" and so the `"Add panel"` context menu logic is handled
as part of `getEmbeddableFactoryMenuItem` in
`./src/plugins/dashboard/public/dashboard_app/top_nav/editor_menu.tsx`
rather than `getVisTypeMenuItem` (this **could** potentially be fixed by
https://github.com/elastic/kibana/issues/162840 since we have custom
logic for displaying aliases). While the lowercase `"links"` in the
panel actions context menu is **desired**, it is **not** desirable to
have the lowercase `"links"` in the add panel context menu - however, it
is not currently possible to change one without changing the other.

Note that this is **also** true for the `"Image"` embeddable - by
changing the `displayName` of the image factory from `"Image"` to
`"image"`, the `"Edit"` panel actions context menu item would be
displayed correctly as `"Edit image"` (currently, it is `"Edit Image"`)
but the lowercase `"image"` would also be displayed in the add panel
context menu, which is undesirable.

It will require a larger refactor to fix these inconsistencies, so it
should be addressed separately.

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

### 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)
2023-08-16 13:56:26 -06:00
Steph Milovic
2d2975fdf2
[Security solution] Fixing console errors (#163119) 2023-08-16 12:49:59 -06:00
Tiago Costa
bf6aefea4a
chore(NA): update versions after v8.11.0 bump (#164067)
This PR is a simple update of our versions file after the recent bumps.
2023-08-16 19:31:21 +01:00
Tiago Costa
df79f65346
chore(NA): bump version to 8.11.0 (#164066)
Usually bump from 8.10.0 to 8.11.0
2023-08-16 19:27:34 +01:00
Tim Sullivan
732c87ba82
[Dashboard/Reporting/Test] delete unusable large screenshot tests (#163966) 2023-08-16 11:08:35 -07:00
Patryk Kopyciński
8cf9881605
Fix security solution serverless buildkite config (#164021)
## Summary

Updates buildkite config to make sure Security Solution Serverless are
soft_failing for now
2023-08-16 12:59:15 -05:00
Mike Côté
fd389ce372
Set serverless and test setting for task manager state validation (#163743)
Part of https://github.com/elastic/kibana/issues/155764.

In this PR, I'm setting the
`xpack.task_manager.allow_reading_invalid_state` serverless setting to
`false` so Kibana doesn't allow reading invalid state when loading
tasks.

I'm also doing the same for the functional tests to ensure valid task
state is always read.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 10:58:22 -07:00
Hannah Mudge
75d27adffc
[Controls] Migrate range slider to EuiDualRange and make styling consistent across all controls (#162651)
Closes https://github.com/elastic/kibana/issues/140135
Closes https://github.com/elastic/kibana/issues/159724

## Summary

### Changes to range slider

This PR migrates the range slider control to use the `EuiDualRange`
component, which both (a) removes a bunch of range slider code , thus
improving DX, and (b) improves the usability of the control by
simplifying the different states and making the slide animation much
smoother:

| Before | After |
|--------|--------|
| ![Aug-02-2023
09-19-26](08efbfb8-3aff-4c44-acb3-79442d3fc831)
| ![Aug-03-2023
09-10-30](8f62936f-c15d-4ede-9925-d1b314c7a9c9)
|

Note that, due to the fact that migrating to the `EuiDualRange`
component means we no longer control the opening/closing of the popover,
this makes the "selections that extend beyond the current min/max of the
data" scenario slightly more difficult to handle. Specifically, we need
to decide the best time to recalculate the min/max of the slider as the
user's selections change.

The benefit of having control over the popover opening and closing was
that we could calculate the range slider's min/max values **when the
popover opened** and lock them in place so that they stayed static as
the user dragged:


<div align="center"><img width="500px"
src="1bf552d4-e70e-41ce-bf85-ab9ed0262398"
/></div><br/>


However, because the `EuiDualRange` handles the behaviour of the popover
and we therefore do not know when it opens/closes, it is not currently
possible to fully replicate this old behaviour. We have two main
options:
1. Recalculate the min/max of the range slider the user drags, which
gives a "sliding" effect:
    
<div align="center"><img width="500px"
src="4bb32b22-990e-40e9-a7df-78afca16bd27"
/></div>

2. Debounce this min/max calculation - with this, we avoid the "sliding"
effect shown above, and the min/max values **only get adjusted** when
the pin has been static for a long enough period of time (specifically,
`750ms`) or when the pin is dropped (i.e. the user lets go of the
mouse):

<div align="center"><img width="500px"
src="ac8943e6-4bcc-42dd-8cbb-1cdb627ba9f2"
/></div>


Ultimately, I went with option 2 in this PR. As a future enhancement, we
could replicate the old behaviour by adding some sort of
`onPopoverClosed` or `onPopoverOpened` logic to the `EuiDualRange`
component - however, this would need discussion with the EUI team to
ensure that this is the best way to handle it and not too specific to
our use case. Since EUI changes take awhile to propagate to KIbana, it's
not worth holding up this PR even further.

### Consistency with other control types

To keep things consistent, this PR also switches both the options list
and time slider controls to use the `EuiInputPopover` component and
removes the redundant control titles from the popover header:

| Before | After |
|--------|--------|
|
![image](dce0fc28-0714-48ce-a6df-3aed2e9749d8)
|
![image](0619a19a-073f-4d2e-ae40-1d77e9f9a7ae)
|
|
![image](c7ff43ba-b94f-402a-b61a-ee238065acb4)
|
![image](07e95ef5-5db8-490e-9bc8-7f9df4513da5)
|
|
![image](20a30dd9-2f0c-49f5-a035-37f827c5c1a2)
|
![image](64acea5a-5120-4d88-bac3-14f45be98b0d)
|

### 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
- [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))
- Technically, it does - but this will be resolved by the
@elastic/eui-team team adding an `aria-label` to the thumb `div`s
(https://github.com/elastic/eui/issues/7035). This is purely for the
sake of axe and/or automated `a11y` testing - it does not actually
impact `a11y` of the range slider, because the components missing an
`aria-label` are never accessible via the keyboard.
- [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: Jatin Kathuria <jatin.kathuria@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 11:27:14 -06:00
Mike Côté
42964d07be
Fix flaky test for task state validation (#163744)
Fixes https://github.com/elastic/kibana/issues/161081.

In this PR, I'm attempting to reduce the flakiness of the
`task_state_validation.test.ts` jest integration test by doing the
following changes:
- Ensuring each test creates a task with a different ID in case there is
a race condition with the previous test that would delete the task as
the next test runs.
- Modifying how the test waits for the task runner to be called given
the previous approach wasn't 100% that the executor would be mocked
before the task is scheduled.

Since the flaky test runner doesn't work with jest integration tests, I
instead added a for loop in my code to run the test 25x, and made CI run
it a few times:
- Commits creating for loop and setting to 25:
78561fe2ad
and
716853733e
- Commits where CI ran 25x and succeeded:
fef05d7db2,
f3b2a906fe,
7415c93465,
and
74bce2a24f

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 12:34:36 -04:00
Kevin Logan
643ead4250
[Security Solution] Unskip tests after package fix (#163962)
## Summary

Unskips tests that failed due to an unstable package merge.

Unskipping the following:
https://github.com/elastic/kibana/issues/163889
https://github.com/elastic/kibana/issues/163890
https://github.com/elastic/kibana/issues/163883
https://github.com/elastic/kibana/issues/159695
https://github.com/elastic/kibana/issues/159696

### 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-08-16 11:29:26 -04:00
Drew Tate
08a48f3cf1
[Lens] allow removing ad-hoc data view from event annotation group (#163976) 2023-08-16 10:24:15 -05:00
Janki Salvi
f9bc627735
[Cases] Fix description component flaky tests (#164063)
## Summary

Fixes 
#164049 
 #164048
#164045 
#164044
#164050
#164047
#164046

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 16:40:33 +02:00
Pierre HILBERT
0fedc8b78e
Fixing components_status test (#164064)
## Summary

Test fix: now that ES new snapshot is available, fixing
components_status test
Close https://github.com/elastic/kibana/issues/163998
Close https://github.com/elastic/kibana/issues/156245

---------

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2023-08-16 16:33:24 +02:00
Georgii Gorbachev
a3e51bf3fe
[Security Solution] Fix CODEOWNERS for Detection and Response teams (#163964)
## Summary

According to @oatkiller, we have many CODEOWNERS rules that match no
files.

I updated the file according to this and my own audit:

```
$ github-codeowners validate
Found duplicate rules [
  'x-pack/packages/observability/alert_details @elastic/actionable-observability'
]
Found rules which did not match any files [
  'x-pack/test/alerting_api_integration/common/plugins/aad @elastic/response-ops',
  'x-pack/test/alerting_api_integration/common/plugins/actions_simulators @elastic/response-ops',
  'x-pack/test/alerting_api_integration/packages/helpers @elastic/response-ops',
  'x-pack/test/alerting_api_integration/common/plugins/alerts @elastic/response-ops',
  'x-pack/test/alerting_api_integration/common/plugins/alerts_restricted @elastic/response-ops',
  'test/analytics/plugins/analytics_ftr_helpers @elastic/kibana-core',
  'test/analytics/plugins/analytics_plugin_a @elastic/kibana-core',
  'x-pack/test/security_api_integration/plugins/audit_log @elastic/kibana-security',
  'x-pack/test/cases_api_integration/common/plugins/cases @elastic/response-ops',
  'x-pack/plugins/cloud_defend @elastic/sec-cloudnative-integrations',
  'src/plugins/data @elastic/kibana-visualizations @elastic/kibana-data-discovery',
  'x-pack/test/encrypted_saved_objects_api_integration/plugins/api_consumer_plugin @elastic/kibana-security',
  'x-pack/test/ui_capabilities/common/plugins/foo_plugin @elastic/kibana-security',
  'test/interactive_setup_api_integration/plugins/test_endpoints @elastic/kibana-security',
  'x-pack/test/cases_api_integration/common/plugins/observability @elastic/response-ops',
  'x-pack/test/security_api_integration/plugins/oidc_provider @elastic/kibana-security',
  'packages/kbn-performance-testing-dataset-extractor @elastic/kibana-performance-testing',
  'packages/react/kibana_context/common @elastic/appex-sharedux',
  'packages/react/kibana_context/render @elastic/appex-sharedux',
  'packages/react/kibana_context/root @elastic/appex-sharedux',
  'packages/react/kibana_context/styled @elastic/appex-sharedux',
  'packages/react/kibana_context/theme @elastic/appex-sharedux',
  'packages/react/kibana_mount @elastic/appex-sharedux',
  'x-pack/test/security_api_integration/plugins/saml_provider @elastic/kibana-security',
  'x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin @elastic/kibana-security',
  'x-pack/test/security_api_integration/packages/helpers @elastic/kibana-core',
  'x-pack/plugins/security_solution_ess @elastic/security-solution',
  'x-pack/test/cases_api_integration/common/plugins/security_solution @elastic/response-ops',
  'x-pack/plugins/security_solution_serverless @elastic/security-solution',
  'x-pack/test/security_functional/plugins/test_endpoints @elastic/kibana-security',
  'x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin @elastic/kibana-security',
  'x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture @elastic/response-ops',
  'x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kibana-security',
  '/src/plugins/visualize/ @elastic/kibana-visualizations',
  '/x-pack/test/api_integration/apis/lens/ @elastic/kibana-visualizations',
  '/x-pack/test/functional/apps/dashboard/reporting/ @elastic/appex-sharedux',
  '/x-pack/test/functional/es_archives/lens/reporting/ @elastic/appex-sharedux',
  '/src/plugins/kibana_react/public/@elastic/appex-sharedux @elastic/kibana-presentation',
  '/.github/workflows/deploy-my-kibana.yml @elastic/observablt-robots',
  '/.github/workflows/oblt-github-commands @elastic/observablt-robots',
  '/x-pack/test/api_integration/apis/infra @elastic/infra-monitoring-ui',
  '/src/dev/build/tasks/bundle_fleet_packages.ts @elastic/fleet @elastic/kibana-operations',
  '/src/apm.js @elastic/kibana-core @vigneshshanmugam',
  '/src/core/types/elasticsearch @elastic/apm-ui',
  '/packages/kbn-utility-types/src/dot_test.ts @dgieselaar',
  '/x-pack/test/alerting_api_integration/observability/synthetics_rule.ts @elastic/uptime',
  '/x-pack/test/alerting_api_integration/observability/index.ts @elastic/uptime',
  '/x-pack/plugins/apm/public/application/uxApp.tsx @elastic/uptime',
  '/x-pack/plugins/apm/public/components/app/rum_dashboard @elastic/uptime',
  '/x-pack/test/apm_api_integration/tests/csm/ @elastic/uptime',
  '/x-pack/test/api_integration_basic/apis/ml/ @elastic/ml-ui',
  '/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/ml_rule_types/ @elastic/ml-ui',
  '/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/transform_rule_types/ @elastic/ml-ui',
  '/x-pack/test/screenshot_creation/services/ml_screenshots.ts @elastic/ml-ui',
  '/x-pack/test/functional/es_archives/maps/ @elastic/kibana-gis',
  '/src/dev/license_checker/config.ts @elastic/kibana-operations',
  '/test/visual_regression @elastic/appex-qa',
  '/x-pack/test/visual_regression @elastic/appex-qa',
  '/src/core/public/i18n/  @elastic/kibana-localization @elastic/kibana-core',
  '/x-pack/plugins/security_solution/public/common/components/alerts_viewer @elastic/security-threat-hunting-investigations',
  '/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_action @elastic/security-threat-hunting-investigations',
  '/x-pack/plugins/security_solution/public/detections/components/alerts_info @elastic/security-threat-hunting-investigations',
  '/x-pack/plugins/security_solution/common/search_strategy/security_solution/user @elastic/security-threat-hunting-explore',
  '/x-pack/plugins/security_solution/cypress/upgrade_e2e/threat_hunting/cases @elastic/security-threat-hunting-explore',
  '/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema @elastic/security-detection-rule-management @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/common/api/detection_engine/fleet_integrations @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/api/detection_engine/rule_management @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/detection_engine/fleet_integrations @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/detection_engine/prebuilt_rules @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/detection_engine/rule_monitoring @elastic/security-detection-rule-management',
  '/x-pack/plugins/security_solution/common/detection_engine/rule_exceptions @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/public/detection_engine/rule_exceptions_ui @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/public/common/components/exceptions @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/server/lib/sourcerer @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/cypress/e2e/detection_rules @elastic/security-detection-rule-management @elastic/security-detection-engine',
  '/x-pack/plugins/security_solution/cypress/plugins @elastic/security-detections-response @elastic/security-threat-hunting',
  '/x-pack/plugins/security_solution/common/ecs @elastic/security-threat-hunting-investigations',
  '/x-pack/plugins/security_solution/server/lib/detection_engine/rule_actions @elastic/security-detection-engine @elastic/security-detection-rule-management',
  'x-pack/plugins/security_solution/cypress/ccs_e2e @elastic/security-engineering-productivity',
  'x-pack/plugins/security_solution/cypress/upgrade_e2e @elastic/security-engineering-productivity',
  '/x-pack/plugins/security_solution/common/detection_engine/rule_response_actions @elastic/security-defend-workflows',
  '/x-pack/plugins/security_solution/public/common/components/guided_onboarding @elastic/security-threat-hunting-explore',
  '/x-pack/plugins/apm/**/*.scss @elastic/observability-design',
  '/x-pack/plugins/endpoint/**/*.scss @elastic/security-design',
  '/x-pack/plugins/security_solution_ess/**/*.scss @elastic/security-design',
  '/x-pack/plugins/security_solution_serverless/**/*.scss @elastic/security-design'
]
```
2023-08-16 07:27:53 -07:00
Pablo Machado
5b2859f202
[Security Solutions] Add upselling service to security solutions ESS plugin (#163406)
## Summary

* Use Serverless upsell architecture on ESS. But check for the required
license instead of capabilities.
* Covert Investigation Guide and Entity Analytics upsell to the new
architecture.
* Update upsell registering functions always to clear the state when
registering a new value. It fits perfectly ESS because the license is
observable.
### 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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 10:20:25 -04:00
Jean-Louis Leysens
a00c2401e2
[HTTP] Add build number to headers so that we can identify UIs (#163577)
Close https://github.com/elastic/kibana/issues/162332

### List

- [x] Add E2E test

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 16:05:57 +02:00
Cauê Marcondes
1efec8e0d0
[Profiling] Diff topN functions impact estimate fix (#163749)
Context:
A few weeks ago I merged a PR that moved the calculation of the impact
estimate to the server. But by doing so I missed an essential part to
calculate it correct, the scale factor that is defined in the UI. I'm
reverting that change and making the calcs in the client again.

Along with that I fixed a problem and refactored the function that
calculate the impact simplifying it.

Before:
<img width="1313" alt="Screenshot 2023-08-14 at 10 06 39 AM"
src="c4cda975-4659-4570-afbe-4510f4e6c4fa">

After:
<img width="1320" alt="Screenshot 2023-08-14 at 10 07 29 AM"
src="98e20fc3-00bd-4266-8c8d-07fb6662c9e9">

<img width="1704" alt="Screenshot 2023-08-16 at 10 03 52 AM"
src="9dc780b2-b674-4d83-90e3-7865936dbeaf">
2023-08-16 14:11:46 +01:00
Juan Pablo Djeredjian
d725c289af
[Security Solution] Fix flaky test: detection_rules/bulk_edit_rules_actions.cy.ts (#163698)
Fixes: https://github.com/elastic/kibana/issues/154721

## Summary

- Fixes flaky test:
`x-pack/plugins/security_solution/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_actions.cy.ts`
- Test title: `Detection rules, bulk edit of rule actions`


## Details

For: `Detection rules, bulk edit of rule actions - Restricted action
privileges - User with no privileges can't add rule actions`
- Since this test logs in with a user with missing privileges, the
"Missing privileges" callout is shown at the top of the Rules Table. The
`selectNumberOfRules();` command selects rules one by one by clicking on
their checkboxes. However, flakiness was caused when the callout was
rendered while the selection of the rules was happening, causing a
layout shift that caused the selection of a checkbox to lose focus, and
not being able to be checked. This was solved by waiting the callout to
be rendered before the selection of rules start, with the new
`waitForCallOutToBeShown`method.

For: `Detection rules, bulk edit of rule actions - All actions
privileges - before/beforeEach Clause`
- Tests were failing in the `beforeEach` clause because the first test,
mentioned above, would be logged in with a `ROLES.hunter_no_actions`
role, and logging in with a user with permissions happened in a `before`
clause instead of a `beforeEach` clause. This caused the rest of the
suite to continue with a role without permissions, and the setup of the
second test would fail as the API requests done would fail with `401`.
Moving the initial logging-in from a `before` clause to a `beforeEach`
clause solved this issue.

For: `Detection rules, bulk edit of rule actions - All actions
privileges - Add a rule action to rules (existing connector)`
- This flakiness was extremely rare, but could be reproduced after about
400 iterations. It was caused by a similar reason as the first case
above: while rules were being selected one by one, the table would auto
refresh and focus would be lost from the checkbox that was about to be
selected. This aws fixed by disabling autorefresh in the setup.

### Other changes
- Prevents the installation of `security_detection_engine` package and
creates mock rules instead.
- Creates the `waitForCallOutToBeShown` method and moves the callout IDs
spread across different files to a a single file where they are exported
from.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 14:45:41 +02:00
Philippe Oberti
736b16dfcd
[Security Solution] expandable flyout - show full alert reason in preview panel (#163667) 2023-08-16 14:39:34 +02:00
Gloria Hornero
e78d61789f
[Security Solution] Updates codeowners file (#164026) 2023-08-16 05:38:11 -07:00
Tiago Costa
9604db3a33
skip flaky suite (#164044) 2023-08-16 13:16:44 +01:00
Tiago Costa
2244718a92
skip flaky suite (#164045) 2023-08-16 13:15:40 +01:00
Tiago Costa
85de4abc95
skip flaky suite (#164046) 2023-08-16 13:14:41 +01:00
Carlos Crespo
d1240d3325
[Infra UI] Unskip alerts flyout test (#163919)
closes [#157712](https://github.com/elastic/kibana/issues/157712)
closes [#157767](https://github.com/elastic/kibana/issues/157767)
closes [#157711](https://github.com/elastic/kibana/issues/157711)

## Summary

Unskips "alerts flyouts" test. What cause the test to fail was possibly
solved by https://github.com/elastic/kibana/pull/162896


### How to test

```
yarn test:ftr:server --config x-pack/test/functional/apps/infra/config.ts     
```
```
node scripts/functional_test_runner --config=x-pack/test/functional/apps/infra/config.ts --include x-pack/test/functional/apps/infra/home_page.ts  
```

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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 14:13:22 +02:00
Tiago Costa
2f07bf1042
skip flaky suite (#164047) 2023-08-16 13:12:49 +01:00
Tiago Costa
aef47f140c
skip flaky suite (#164048) 2023-08-16 13:11:37 +01:00
Tiago Costa
e4904929ab
skip flaky suite (#164049) 2023-08-16 13:10:25 +01:00
Tiago Costa
4cb3a740d5
skip flaky suite (#164050) 2023-08-16 13:08:42 +01:00
Justin Kambic
3075883f08
[Synthetics] Unskip Uptime overview page functional tests (#163985)
## Summary

Updates and unskips the overview page tests.

Resolves #89072.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2023-08-16 13:53:53 +02:00
Davis McPhee
f4b925cd2b
[Saved Seaches] Unskip embeddable Jest tests and only skip the actual flaky test (#164003)
In #162997, the entire saved search embeddable Jest test suite was
skipped instead of just the flaky test. This PR doesn't fix the flaky
test, but unskips the test suite and instead only skips the flaky test
to ensure the other tests run.
2023-08-16 04:38:02 -07:00
Gloria Hornero
bfd7c7f8d8
[Security Solution] Reenabling Cypress burn (#163965)
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 13:33:23 +02:00
Sander Philipse
ad5e3ff93e
[Search] Update connectors for 8.10 (#163956)
## Summary

This updates connectors for 8.10.

---------

Co-authored-by: Chris Cressman <chris@chriscressman.com>
2023-08-16 04:24:12 -07:00
Alejandro Fernández Haro
24312ab384
chore(deps): upgrade supertest and superagent (#163716)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 04:12:43 -07:00
Alejandro Fernández Haro
5d2571abd5
chore(deps): upgrade @elastic/elasticsearch (#163822) 2023-08-16 04:09:52 -07:00
Philippe Oberti
f38a37c0c1
[Security Solution] expandable flyout - expandable mode only for signal documents (#163557) 2023-08-16 13:01:59 +02:00
Philippe Oberti
d74f4d3e8f
[Security Solution] expandable flyout - small hosts and users details UI updates (#163957) 2023-08-16 13:00:41 +02:00
Paulo Henrique
4dff082011
[Cloud Security][Findings][Alerts] Add rules and alerts count to the Findings Flyouts (#163909)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 03:18:01 -07:00
Paulo Henrique
ff2e7a8c8f
[Cloud Security] [Telemetry] Add Alerts Telemetry (#163907)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 03:17:36 -07:00
Janki Salvi
cfe7cabf86
[Cases] Trim title, category, description and tags in UI and in API (#163933)
## Summary

This PR trims `title, category, description` and `tags` fields of cases
form in UI as well as API before saving to ES


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

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-16 12:16:49 +02:00
Jatin Kathuria
6f99f9d5fe
[Security Solution][Fix] Disable discoverInTimeline featureFlag by default in ESS (#164012)
## Summary

Handles #163554

Discover in Timeline is enabled by default which should NOT be the case
in `8.10` release.

This PR fixes that.
2023-08-16 03:15:34 -07:00
Yara Tercero
a772ab7fa8
[Detection Engine][Rules] - Adds custom highlighted fields option (#163235)
## Summary

Allows a user to define which fields to highlight in areas where we
currently use "highlighted fields" feature.
2023-08-16 03:14:50 -07:00
Garrett Spong
847e0cbe72
[Security Solution] Adds Connector Selector to Assistant Title Header (#163666)
## Summary

Adds a new `ConnectorSelectorInline` component that is displayed below
the Assistant title header.

Default:
<p align="center">
<img width="500"
src="83e6a884-103f-43c4-9a30-a0281d9941a2"
/>
</p> 


Overflow: 
<p align="center">
<img width="500"
src="f0d8a04e-963d-4053-90f5-2417f1c8eaca"
/>
</p> 


Missing:
<p align="center">
<img width="500"
src="eff04e75-a5ab-468c-b801-1e056d527e6a"
/>
</p> 


Open:
<p align="center">
<img width="500"
src="b7b97244-91a5-41ec-a096-b296e0cde644"
/>
</p> 



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