Commit graph

27354 commits

Author SHA1 Message Date
Xavier Mouligneau
9cd5c0d2da
[RAM] Duplicate rule (#144741)
## Summary

Allow to duplicate rule in the rule list table


![duplicate](https://user-images.githubusercontent.com/189600/200398912-2efdb0f4-4f77-45fe-afdc-c5f11a2709c6.gif)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 16:16:16 -07:00
Jonathan Buttner
2180a8a6b0
[ResponseOps][Rules] Adding rule.url variable (#145035)
This PR adds a new actions variable for linking back the stack
management rule page. In a future PR we will require the rule type to
specify the plugin's path when registering the rule type that way we can
link back to the specific plugin that created the rule.

Issue: https://github.com/elastic/kibana/issues/145132

<details><summary>Mustache variable</summary>


![image](https://user-images.githubusercontent.com/56361221/201212197-48577715-954b-463d-9164-5d2ebfc18cb4.png)


![image](https://user-images.githubusercontent.com/56361221/201212231-23319658-0b21-469b-a272-7c59f5caa618.png)


</details>

<details><summary>Constructed URL</summary>


![image](https://user-images.githubusercontent.com/56361221/201212322-6a4eab78-88ef-4cef-aa41-e34792a8148b.png)


</details>

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2022-11-15 16:05:32 -07:00
Rodney Norris
d32e130f68
[Enterprise Search][ML Inference] Show trained model status in select (#145037)
## Summary

Added the model status to the trained model select for the Add inference
pipeline modal. This required fetching the model stats along with the
models. I wrote a new logic to combine this the API calls and merge the
data together.

### Screenshots
<img width="1521" alt="image"
src="https://user-images.githubusercontent.com/1972968/201767703-339ca6d3-8a48-4dfe-b15a-4c1bdd8560eb.png">


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2022-11-15 14:46:28 -07:00
Karl Godard
6edcdede33
advanced option added for env_vars feature in endpoint (#145287)
## Summary
Adds an advanced option to allow users to configure up to 5 env vars to
capture in endpoint events.

Co-authored-by: Karl Godard <karlgodard@elastic.co>
2022-11-15 13:16:32 -08:00
Khristinin Nikita
35e02bcf64
Add sorting for exceptions cards (#145070)
## Add sorting for shared exceptions

Currently is possible to sort by Name, Created At, Created By


https://user-images.githubusercontent.com/7609147/201640150-dc9d53e4-0d34-4da1-8522-9899d35e7359.mov

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Devin W. Hurley <snowmiser111@gmail.com>
2022-11-15 13:55:38 -07:00
Sander Philipse
463007f9cc
[Enterprise Search] Add stats overview to indices page (#145282) 2022-11-15 13:51:18 -07:00
Efe Gürkan YALAMAN
12e6b2bf46
[Enterprise Search] Match simulate pipeline features with stack management (#145275)
## Summary

Adds features to test pipeline with an existing document from the index.
Also updated the text to give consistent messages across the other parts
of the kibana


https://user-images.githubusercontent.com/1410658/201979420-005b6f3e-c44c-4e44-b40e-88c3c717bb99.mov

## Release note
Adds the ability to test Ingest pipelines with a document from the same
index.



### 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/))
2022-11-15 13:06:41 -07:00
Lisa Cawley
73f1705afe
[ResponseOps][Stack Connectors] Add helptext for Opsgenie connector (#145195) 2022-11-15 11:25:33 -08:00
Marshall Main
a2647ab67c
[Security Solution][Alerts] Alert suppression per rule execution (#142686)
## Summary

Addresses https://github.com/elastic/kibana/issues/130699

This PR implements alert throttling per rule execution for query and
saved query rules. The implementation is very similar in concept to
threshold rules. We allow users to pick one or more fields to group
source documents by and use a composite aggregation to collect documents
bucketed by those fields. We create 1 alert for each bucket based on the
first document in the bucket and add metadata to the alert that
represents how to retrieve the rest of the documents in the bucket.

The metadata fields are:
- `kibana.alert.suppression.terms`: `{field: string; value: Array<string
| number>}` An array of objects, each object represents one of the terms
used to group these alerts
- `kibana.alert.suppression.start`: `Date` The timestamp of the first
document in the bucket
- `kibana.alert.suppression.end`: `Date` The timestamp of the last
document in the bucket
- `kibana.alert.suppression.docs_count`: `number` The number of
suppressed alerts

There is one new rule parameter, currently implemented at the solution
level, to enable this feature: `alertSuppression.groupBy`: `string[]`.

Similar to threshold rules, the throttled query rules keep track of
created alerts in the rule state in order to filter out duplicate
documents in subsequent rule executions. When a throttled alert is
created, we store the bucket information including field names, values,
and end date in the rule state. Subsequent rule executions convert this
state into a filter that excludes documents that have already been
covered by existing alerts. This is necessary because consecutive rule
executions will typically query overlapping time ranges.

## Screenshots
### Rule Create/Edit With License
<details>


![image](https://user-images.githubusercontent.com/55718608/201762013-c973b121-e85a-4163-a645-24beaa738add.png)
</details>

### Rule Details With License
<details>


![image](https://user-images.githubusercontent.com/55718608/201970156-6e64fe01-e7b2-43c0-a740-45f72ad21863.png)
</details>

### Rule Create, or Rule Edit of a rule without existing suppression
configuration, Without License
<details>


![image](https://user-images.githubusercontent.com/55718608/201763392-20364d77-809b-46a0-b3c0-9ca7fe04f636.png)
</details>

### Editing a rule that has existing suppression configuration, but
without the correct license, still allows changing the configuration (to
allow removing the params)
<details>


![image](https://user-images.githubusercontent.com/55718608/201763671-afb2e7b8-6c8f-4a5e-8947-99ad21dd92f9.png)
</details>

### Rule Details Without License
<details>


![image](https://user-images.githubusercontent.com/55718608/201970472-8e69267d-7c53-4172-9b45-b8b46ebd67bc.png)
</details>

### Alerts table
<details>


![image](https://user-images.githubusercontent.com/55718608/201968736-e0165387-bb08-45ce-a92f-5e2b428c7426.png)
</details>

### Known issues
- The layers icon in the rule name for suppressed alerts does not show
up in the rule preview table

Co-authored-by: Madi Caldwell <madison.caldwell@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 11:08:41 -08:00
Dima Arnautov
3789ba31b9
[ML] Feature flag to disable Change Point Detection UI (#145285)
## Summary

Feature flag to hide [Change Point Detection
](https://github.com/elastic/kibana/pull/144093)
2022-11-15 11:52:12 -07:00
Khristinin Nikita
4868e2118d
Rule duplication with/without exceptions (#144782)
## Rule duplication with/without exceptions

Majority of work done by @yctercero in this
[branch](https://github.com/yctercero/kibana/tree/dupe)
Some integration tests are left, but PR is ready for review.

2 flow when you duplicate rule:

### Without exceptions 
Don't duplicate any exceptions

### With exceptions 
Shared exceptions should duplicate reference
Rule default exceptions are not duplicated by reference, but create a
copy of exceptions. So if you remove it from duplicate rules, the
original rule is not changed.




https://user-images.githubusercontent.com/7609147/200863319-4cb56749-42dd-42d8-8896-f45782c21838.mov


# TODO;

[] integrations tests
[] cypress tests

Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 11:43:40 -07:00
Quynh Nguyen (Quinn)
9f2877a371
[APM] Replace APM correlations context popover with unified field list popover (#143416)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 11:14:08 -07:00
Shahzad
882a1a1916
[Uptime] Allow using AND for tags filtering (#145079)
Co-authored-by: Abdul Zahid <awahab07@yahoo.com>
Fixes https://github.com/elastic/kibana/issues/132308
2022-11-15 11:03:22 -07:00
Shahzad
efac0215ba
[Synthetics] Project monitor delete button (#144984) 2022-11-15 19:01:01 +01:00
Kibana Machine
663f3ef4d3 skip failing test suite (#145270) 2022-11-15 13:00:19 -05:00
Pablo Machado
063909ba93
Add useTopNPopOver unit test (#145237)
## Summary

Ops, I forgot to add this test to my previous PR.
https://github.com/elastic/kibana/pull/144819
2022-11-15 10:54:28 -07:00
Dima Arnautov
3e22323e00
[ML] Change Point Detection (#144093)
## Summary

Adds a Change point detection page in the AIOps labs.

_Note:_ 
This page will be hidden under the hardcoded feature flag for 8.6. 

<img width="1775" alt="image"
src="https://user-images.githubusercontent.com/5236598/199506277-f0d71104-3098-4e15-a697-35f5eec5c110.png">

### 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
- [ ] [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))
- [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)
2022-11-15 18:47:27 +01:00
Sander Philipse
aef304e147
[Enterprise Search] Update connector jobs with nested connector (#145251) 2022-11-15 17:58:14 +01:00
Spencer
42a7867454
[fleet/language_clients] wrap route in suspense (#145260) 2022-11-15 09:47:06 -07:00
Luke Gmys
4389fc1eca
[TIP] Add link to TI from Security Overview dashboard (#145125) 2022-11-15 17:36:34 +01:00
Michael Katsoulis
f25066ed21
Differentiate kubernetes integration multi page experience (#145224)
## Summary

This PR differentiates the Add Kubernetes Integration experience with
MultiPageLayout from the rest of the Integrations.
Steps are according to https://github.com/elastic/ingest-dev/issues/1269

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

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


### Steps


<img width="1785" alt="step1"
src="https://user-images.githubusercontent.com/26270880/201899264-6b9a2d5d-d71e-4d0f-9df1-78150d5a8a96.png">
<img width="1785" alt="step2"
src="https://user-images.githubusercontent.com/26270880/201899288-75d6a50c-6a01-4d32-9887-352a8aad6b81.png">
<img width="1785" alt="step3"
src="https://user-images.githubusercontent.com/26270880/201899326-8770e664-1487-4247-a52b-e800ac3952f2.png">
<img width="1781" alt="step4"
src="https://user-images.githubusercontent.com/26270880/201899394-e0a2bd9e-90ef-45b0-a15d-abede69b9427.png">
<img width="1787" alt="step5"
src="https://user-images.githubusercontent.com/26270880/201899418-494e6dd6-7f27-4997-aaf2-e4b7a31a3587.png">
<img width="1787" alt="step6"
src="https://user-images.githubusercontent.com/26270880/201899439-5eb653b5-e6cc-4c7f-9710-f97514aa93ba.png">
<img width="1779" alt="step7"
src="https://user-images.githubusercontent.com/26270880/201899499-eb6f6cdf-6d95-4d19-8394-4ee8ef6703d6.png">
<img width="1780" alt="step8"
src="https://user-images.githubusercontent.com/26270880/201899518-1fbd3888-a172-4b0f-b029-1f0d8e9c9d6c.png">
<img width="1781" alt="step9"
src="https://user-images.githubusercontent.com/26270880/201899598-316007ca-bd1b-4f07-be0d-1289b8f1f32c.png">

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 18:02:08 +02:00
Stratoula Kalafateli
928674a39c
[TSVB] Wait for stabilization on the table to lens transition (#145209)
Closes https://github.com/elastic/kibana/issues/145127

I feel that waiting for stabilization will fix the flakiness here

100 times runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1551
2022-11-15 17:43:23 +02:00
Paul Tavares
731c8b962b
[Security] Fix security privileges tests by removing Security Solution file_operations_all sub-feature from test assertions (#145247)
## Summary

- Remove `file_operations_all` from list of sub-feature of SIEM
(security solution). This sub-feature [was recently placed behind an
experimental feature
flag](https://github.com/elastic/kibana/pull/145042), which is disabled
by default for 8.6.
- Un-skips tests


Fixes: #145134
Fixes: #145135
Fixes: #145136
2022-11-15 10:34:50 -05:00
Melissa Alvarez
295a267dae
[ML] Data Frame Analytics: Highlight filtered data in scatterplot charts (#144871)
## Summary

Related meta issue: https://github.com/elastic/kibana/issues/131551

This PR adds functionality to the scatterplot charts to show the full
data sample and, when the user has added a filter/query in the query
bar, the portion of the data reflecting the filter is highlighted so it
can be differentiated from the background data.

Classification results view with query for `AvgTicketPrice > 400`

<img width="1032" alt="image"
src="https://user-images.githubusercontent.com/6446462/200716771-b2012e9b-c620-46a8-9dc3-92df23ef4476.png">

Outlier detection results view with same filter

<img width="1026" alt="image"
src="https://user-images.githubusercontent.com/6446462/200716858-01407906-34de-43d6-892b-7bbfede05eac.png">

Regression results view with same filter

<img width="1007" alt="image"
src="https://user-images.githubusercontent.com/6446462/200716910-41165b81-a300-420c-8976-47a0ea9612bf.png">

Help text:

<img width="1005" alt="image"
src="https://user-images.githubusercontent.com/6446462/201484563-9f4ca87b-3025-485f-ac0e-4a30deee847f.png">




### 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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 10:33:28 -05:00
Shahzad
75ce1e397a
[Synthetics] Validate API keys (#143867)
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Fixes https://github.com/elastic/kibana/issues/142875
2022-11-15 16:29:02 +01:00
Wafaa Nasr
b33acd0fe6
[Security Solution][Exceptions] -Feature Add Exception list details page 132862 (#143041)
## Summary

Add *Exceptions List Details* page, addresses
(https://github.com/elastic/kibana/issues/132862)

**1. Search with no results**

<img width="1440" alt="image"
src="https://user-images.githubusercontent.com/12671903/195093683-a49aae90-1604-4d8b-931e-e6e75347d348.png">



**2. List with exceptions**

<img width="1450" alt="image"
src="https://user-images.githubusercontent.com/12671903/195093569-0ceb4e91-e7dc-47ba-975f-eaa060529614.png">

**3. Empty Exceptions**


![image](https://user-images.githubusercontent.com/12671903/195383665-eda7a5f8-fbcd-4f7d-a6b3-9a53a2bd7877.png)
  
**4. Update List Name and Description**


![image](https://user-images.githubusercontent.com/12671903/195384842-cf31751d-de47-4350-b2c3-79dff6669dfa.png)

**5. Export List**

![image](https://user-images.githubusercontent.com/12671903/195385602-e0b18a2b-ff55-4636-ba7f-145700c80a46.png)

**6. Manage Rules**
<img width="1227" alt="image"
src="https://user-images.githubusercontent.com/12671903/195641742-e70a46ed-d692-4536-a57c-6a56653efbd5.png">

**7. Linked Rules**
<img width="1186" alt="image"
src="https://user-images.githubusercontent.com/12671903/195641889-51c9b1db-8371-4455-b7b7-759c8e2adeca.png">

**8. ReadOnly mode when list is empty**

![image](https://user-images.githubusercontent.com/12671903/197999965-a379bc47-c6ca-45c3-ad95-a0581de37d90.png)

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 16:23:00 +01:00
Coen Warmer
2892de429c
Make test that checks for registered rules not dependent on order of registration (#145233) 2022-11-15 16:09:41 +01:00
Melissa Alvarez
7a0dacc8e0
[ML] Anomaly Detection datafeed chart: tooltip to include both lines even if data for a time have been deleted (#145057)
## Summary

Related meta issue: https://github.com/elastic/kibana/issues/143330

This PR adds ensures that the tooltip will include both lines even if
results for a time have been deleted. The second line now shows 'null'
as the count to make it clear it does not exist or is missing.

- This PR fills in missing values with 'null' from source or results
data if the timestamps don't match.
- This PR adds the 'showNullValues' property to the tooltip for the
chart to ensure those values are displayed in the tooltip.

Shown with `N/A` when value is null:

<img width="655" alt="image"
src="https://user-images.githubusercontent.com/6446462/201482789-ddb79f3f-a980-4618-ae6f-95cd5d5bb93e.png">


### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-11-15 09:59:40 -05:00
JD Kurma
d0860e1e45
[Security Solution] Add Active Endpoint Count to Usage Collector (#145024)
## Summary

Added active endpoint count to usage collector. Endpoint count is
technically already being counted via the daily usage counter; however,
it is counted during the execution of the endpoint task which could
potentially stall/timeout or even fail leading to inconsistent reporting
of active endpoint counts(thanks to @pjhampton for bringing this up and
suggesting to add this to the usage collector)


### 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
2022-11-15 09:58:45 -05:00
James Gowdy
94a0b41b56
[ML] Trained model testing with index data (#144629)
Adds the ability to run inference on data from an existing index.
The user can select the index and text field, where 10 example values
are loaded. Pressing the `Reload examples` button will load 10 different
examples.
Press the `Test` button will run inference on each text value and
display the results.

<img width="692" alt="201152065-16735eab-de52e-4b85-afb7-9925f2a0db0d"
src="https://user-images.githubusercontent.com/22172091/201932029-04348f6b-74b7-494a-a53e-0f16bad8477a.png">


In the background a simulated ingest pipeline is run. The user can view
the pipeline here:

<img width="562" alt="image"
src="https://user-images.githubusercontent.com/22172091/201152159-8de34c5c-64d3-4342-87f9-3fc5d2b29723.png">
2022-11-15 07:30:56 -07:00
Alexi Doak
ca8106e36b
[ResponseOps][Accessibility] Ensures every ID attribute value is unique (#145175)
Resolves https://github.com/elastic/kibana/issues/144953
## Summary

Changed the labels for pagerduty, x-matters, and teams logo svgs.

### Checklist

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

### To verify

- Log into the Kibana Stack Management > Rules page
- Click the Create New Rule button
- In the Create rule flyout, select a rule and make sure the list of
connectors is showing
- Run the [axe browser plugin](https://deque.com/axe) (from Dev tools)
when the vendor icons are on screen
- Verify that you see 0 duplicated ID errors instead of two.
2022-11-15 07:12:28 -07:00
Sander Philipse
3e0448e69a
[Enterprise Search] Add editable filter rules to connectors (#145170) 2022-11-15 14:15:35 +01:00
Dmitrii Shevchenko
5ad2a36305
[Security Solution] Address guided onboarding feedback for the rules area (#145223)
**Related to: https://github.com/elastic/kibana/pull/144016**

## Summary

This follow-up PR addresses guided onboarding feedback mentioned
[here](https://github.com/elastic/security-team/issues/5386) and
[here](https://github.com/elastic/kibana/issues/144458).

To summarize:

- We're keeping the first step (install prebuilt rules) intact, but most
users wouldn't see it as the rules are installed automatically during
previous stages. This step is needed to cover edge cases when rules were
deleted for some reason.
- We're splitting the second step into two: 1) search the first rule and
2) activate it.
- We're adding "Next" buttons to these steps.
- For the search step, the "Next" button will automatically filter the
rules table, so the first rule becomes visible.
- For the activate step, the "Next" button automatically activates the
first rule.
- The "Next" button stays optional; we still automatically progress the
guide once user actions satisfy certain conditions, like the user
filtered the rules table manually or activated the first rule by
clicking its toggle.
2022-11-15 13:16:13 +01:00
Christos Nasikas
cac88434ab
[Cases ]Fix bug when quoting comments (#145227)
## Summary

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

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

- [x] 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-15 14:01:37 +02:00
Dominique Clarke
95a0f2efda
[Synthetics] Standardize the uses of MONITOR_QUERY_ID and CONFIG_ID throughout the app (#144176)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Resolves https://github.com/elastic/kibana/issues/143309
2022-11-15 12:17:44 +01:00
Gergő Ábrahám
ff09e8098a
[Security Solution] Add Endpoint RBAC documentation url to NoPrivileges page (#145084)
## Summary

When a user doesn't have the needed Kibana Privileges, more precisely
the sub-feature privileges for Security Management pages, they will see
a _Privileges Required_ page. It is already merged, see
https://github.com/elastic/security-team/issues/5222

What is missing is the correct URL for the documentation page. The goal
of this PR is to add this link.
2022-11-15 12:14:16 +01:00
Dmitry Tomashevich
32cf768f05
[Discover] Handle no data views state for esQuery alert (#145052)
## Summary

Fixes #145020

This PR adjusts typing for search source alert to handle no data views
state in flyout.

### 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-15 13:09:06 +03:00
Dima Arnautov
ca49da1470
[ML] Allow updates for number of allocations and priority for trained model deployments (#144704)
## Summary

Resolves #144550 and #144595

Adds a new action to the Trained Models table to update the number of
allocations for already started deployments.

<img width="1422" alt="image"
src="https://user-images.githubusercontent.com/5236598/200321473-0b869084-6c25-4873-8409-b948b7bede50.png">


Sets priority while starting a deployment 
<img width="1278" alt="image"
src="https://user-images.githubusercontent.com/5236598/200596233-a884d271-fefb-4898-9f2f-8d4724d25484.png">
2022-11-15 09:59:57 +01:00
Steph Milovic
c4304dc9a2
[Security solution] remove guided onboarding feature flag (#144247)
## Summary

Removes the feature flag for the guided onboarding tour in security

To be merged after #144160. Make sure we run the Cypress tests after
#144160 is merged before merging this

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
2022-11-14 21:53:14 -07:00
Lisa Cawley
5348e39a36
[DOCS] Automate final case APIs (#145007) 2022-11-14 19:19:40 -07:00
Byron Hulcher
8974e826bf
[Enterprise Search] Name and description flyout for connectors (#143827) 2022-11-14 18:07:36 -07:00
Yulia Čech
879b101669
[Guided onboarding] Update header button logic (#144634)
## Summary
Fixes https://github.com/elastic/kibana/issues/141129
Fixes https://github.com/elastic/kibana/issues/144515

This PR introduces a new state to the guided onboarding plugin. The
state keeps track of the `creationDate` and of the overall `status` of
the plugin. The creation date allows us to detect an "active" period
during which the header button will be displayed more prominently in the
header. Currently, the active period is set to 30 days. During this
time, if the user has not started any guide, has quit a guide before
completion or skipped the guide on the landing page, the header button
will be displayed and when clicked, redirect the user to the landing
page to start/continue a guide.
Also this PR adds a check for Cloud deployments and prevents the code
from sending any API requests when not on Cloud, because guided
onboarding is disabled on prem.

#### Screenshot 
<img width="298" alt="Screenshot 2022-11-10 at 18 42 18"
src="https://user-images.githubusercontent.com/6585477/201168414-391a7cd4-0709-492b-9001-1432b5bed3c8.png">



### 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>
2022-11-14 16:50:10 -07:00
Andrew Tate
e2d3bb9dec
[Lens] Multi metric partition charts (#143966) 2022-11-14 16:49:39 -07:00
JD Kurma
24df1db3a5
[Security Solution] Add Task Metric Collection to New Tasks (#145181)
## Summary

Adding task metric collections to the recently added kibana tasks
2022-11-14 15:12:58 -07:00
Sébastien Loix
a67776b365
[TableListView] Enhance tag filtering (#142108) 2022-11-14 14:25:19 -07:00
Jordan
b72a9a3df2
[Cloud Posture] Compliance by CIS section table (#145114) 2022-11-14 14:09:32 -07:00
Lola
733011b76c
[8.6][Session View] Fix hidden alert flyout in session view (#145141)
## Summary
[Alert Flyout Detail panel doesn't show in session
view](https://github.com/elastic/kibana/issues/144346)
Summarize your PR. If it involves visual changes include a screenshot or
gif.
When clicking on the expand icon in the process alert row or `View
details` in the Alert tab content, the Alert flyout doesn't show.
Before the alerts flyout was showing in session view until
`isTimelineScope()` was added. We need to dispatch the toggle to the
details panel even if the timeline is not in scope.
<img width="1484" alt="image"
src="https://user-images.githubusercontent.com/17135495/201720513-11ee770c-ac6f-4582-8ddb-c49dbfc2fa52.png">
2022-11-14 13:55:38 -07:00
Bhavya RM
fdfeda4192
Fix time for logs smoke tests in integration test (#145130) 2022-11-14 15:49:47 -05:00
Xavier Mouligneau
e9feb06550
[RAM] Update rule status (#140882)
## Summary

Resolves the parent issue:
https://github.com/elastic/kibana/issues/136039

Also resolves the subtasks:
 - https://github.com/elastic/kibana/issues/143461
 - https://github.com/elastic/kibana/issues/143460

This is the backend portion of the consolidated rule status feature. It
mainly contains changes to the `rules_client.ts` and `task_runner.ts` to
support the new consolidated rule statuses.

This PR added a new property: `lastRun` to the rules saved object to
hold the new rule outcome statuses (`succeeded`, `warning`, and
`failed`) as the new simplified rule status over the existing
`executionStatus` property. However, we are keeping the old
`executionStatus` so we can slowly migrate the rest of the application
to use the new `lastRun` outcomes.

In addition, we have enriched the `monitoring` property to be the source
of truth for metrics related to the last run (as well as new fields that
other plugins will find useful). We also added a monitoring service that
allows other plugins to easily add data to the monitoring field.

To test this PR, please use
https://github.com/elastic/kibana/pull/144466 since it has both the
frontend and backend changes.

### Checklist
- [ ]
[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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jiawei Wu <jiawei.wu@cmd.com>
2022-11-14 13:21:58 -07:00
Coen Warmer
53bab70512
[Actionable Observability] Add context.alertDetailsUrl variable to action connector template for APM rule types (#144791) 2022-11-14 20:52:57 +01:00