Commit graph

28022 commits

Author SHA1 Message Date
James Gowdy
2992ec934f Merge branch 'ui-actions-refactor' of github.com:jgowdyelastic/kibana into ui-actions-refactor 2023-11-23 19:01:27 +00:00
James Gowdy
dd649dca3e
Merge branch 'main' into ui-actions-refactor 2023-11-23 18:51:50 +00:00
James Gowdy
02b3b6ae06 deep imports 2023-11-23 18:45:19 +00:00
Tiago Costa
78f7b80e33
Revert "[Fleet] Support preconfigured output secrets (#170259)"
This reverts commit 1f7a527494.
2023-11-23 18:08:02 +00:00
James Gowdy
e7c793e0d7
[ML] Fixing blocked jobs polling interval (#171878)
There is a bug with the way we check whether or not to start polling for
blocked jobs. We should only start polling there isn't an existing poll
running.
This causes the polling to run as possible and to refresh the full jobs
list on every check.
Now the blocked jobs polling correctly runs at the interval of 2s and
the full jobs list is only updated when there is a change in the list of
blocked jobs.

Partially fixes https://github.com/elastic/kibana/issues/171626

A more in-depth change as specified in the issue can be done in follow
up work. It's good to get this change in for the next release just in
case we run out of time for the larger change.
2023-11-23 17:56:19 +00:00
James Gowdy
8f25e60906 removing bundle size test 2023-11-23 17:01:22 +00:00
Julia Bardi
73576c923e
[Fleet] updated doc link to remote ES output (#171870)
## Summary

Related to https://github.com/elastic/kibana/issues/104986

Updated doc link to the new remote ES output doc.
Leads to
https://www.elastic.co/guide/en/fleet/master/monitor-elastic-agent.html#external-elasticsearch-monitoring

<img width="682" alt="image"
src="a8b9a6bc-60df-4826-8a6a-0fa45b6011bc">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 09:57:23 -07:00
Dzmitry Lemechko
7556105dfc
[kbn-test] Disable TLS for svl Kibana (#171434)
## Summary

This PR disables TLS mode for Kibana run in serverless.
Related to #170417 enabling serverless roles testing 
Blocked by #171513

PR is created in cooperation with @azasypkin and intended to simplify
the automated testing process for serverless:
starting Kibana with TLS enabled adds unnecessary complexity to the
process of getting session cookie and overall Kibana APIs calling with
Dev certificate in the tests.
The selected approach is to disable TLS for Kibana and simply rely on
#171513 to configure mocked idp realm for Serverless ES with TLS
enabled.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 17:42:33 +01:00
James Gowdy
9dfd915e17 testing bundle size 2023-11-23 16:27:53 +00:00
Melissa Alvarez
0124a50937
[ML] Trained models: ensure 'Deploy model' disabled for Data Frame Analytics models when not enough permissions (#171686)
## Summary

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

This PR ensures the 'Deploy model' action for Data Frame Analytics
models in the trained models list is only enabled when the user has
sufficient permissions.

### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 17:00:25 +01:00
Ignacio Rivas
3240ab6d7c
[CCR] Fixes CCR accessibility tests (#171618) 2023-11-23 17:00:00 +01:00
Jan Monschke
df16cd9c2c
[SecuritySolution] Remove @kbn/subscription-tracking (#171801)
## Summary

The package data isn't needed anymore, so we can remove that package. On
top, it seems like the package was causing some issues.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 09:39:23 -06:00
Ignacio Rivas
0e3351cb1c
[Index Management] Fix bug with long http requests coming from index actions (#171735) 2023-11-23 16:00:39 +01:00
James Gowdy
fdc6e444b3 removing async import inside register function 2023-11-23 14:51:49 +00:00
Steph Milovic
6905a0fbf7
[Security solution] Fix streaming on cloud (#171578) 2023-11-23 07:38:35 -07:00
Shahzad
21fc4cc307
[SLO] Implement card view (#171422)
Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 14:46:47 +01:00
James Gowdy
1c077776bb
Merge branch 'main' into ui-actions-refactor 2023-11-23 13:23:36 +00:00
Marco Antonio Ghiani
0c5e9fdb5a
[Log Explorer] Add cloud provider and service icons on Log detail (#171642)
## 📓 Summary

Closes #170721 

These changes add icons for the cloud provider and service fields in the
Log detail flyout.

Regarding the Package Icon next to the dataset field, it should require
a remote request to determine what package is part of the current
dataset. We haven't determined this part yet, so we'll keep it for an
upcoming implementation.


fc882810-6b0f-40ee-9727-762f57ad01cc

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
2023-11-23 14:07:24 +01:00
James Gowdy
bccf61bd4d
Merge branch 'main' into ui-actions-refactor 2023-11-23 12:56:59 +00:00
Coen Warmer
0bf4998514
Improvements for eslint-i18n-package (#171588)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 05:02:36 -07:00
kibanamachine
9e010386a0 [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' 2023-11-23 11:55:47 +00:00
Walter Rafelsberger
aae3e5d087
[ML] Rename index pattern references to data view (Part 2) (#171820)
- Renames references to index patterns to data views in function and
variable names.
- Some inconsistent naming of schemas for data frame analytics was
cleaned up as part of this PR.
- Note this doesn't cover the whole ml owned codebase but just code
related to data frame analytics.
2023-11-23 12:42:43 +01:00
James Gowdy
41e9fecd02 Merge branch 'ui-actions-refactor' of github.com:jgowdyelastic/kibana into ui-actions-refactor 2023-11-23 11:19:28 +00:00
James Gowdy
2278c0be64 reverting unrelated change 2023-11-23 11:18:55 +00:00
Achyut Jhunjhunwala
5d3c1bc2bb
[Logs Explorer] Fix message field highlights due to the formatting issues (#171631)
## Summary

Fixes the issue when the message is added as a filter, discover
component surrounds the value with the <mark> tag in order to highlight
the field. Since our message field is inside a `EuiCodeBlock` it cannot
be highlighted and hence should not support adding of this tag.

### Before


![image](39a3f0f2-ed88-40d9-ae5c-bd23287e13d3)


### After


![image](f05e5168-9f73-48c4-ac9e-f68ea72f91e6)
2023-11-23 06:12:28 -05:00
Kevin Lacabane
6788c1a684
[asset manager] add getPods method (#170864)
### Summary

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

Implements `/assets/pods` endpoint which is exposed by server and
browser clients. The logic is reused from the containers endpoint and
currently executes [this
query](https://github.com/elastic/kibana/blob/main/x-pack/plugins/asset_manager/server/lib/collectors/pods.ts#L18-L51)

### Testing
- connect kibana to oblt cluster or load local cluster with pods data
- `/api/asset-manager/assets/pods?from=now-1m&to=now&filters=..` returns
pods

---------

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2023-11-23 18:05:45 +07:00
James Gowdy
c6c23179de
Merge branch 'main' into ui-actions-refactor 2023-11-23 11:05:19 +00:00
Jan Monschke
c690314661
[SecuritySolution] Disable the timeline save tour with localstorage flag (#171711)
## Summary

In this PR we're getting rid of the `enableExperimental` flag
`disableTimelineSaveTour` in favor of a custom localStorage flag in the
cypress tests. This will allow us to run the tests against a production
version of Kibana without setting custom config flags.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 12:04:59 +01:00
James Gowdy
b841e313c3
Merge branch 'main' into ui-actions-refactor 2023-11-23 11:02:58 +00:00
kibanamachine
eb0e42592d [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' 2023-11-23 11:00:29 +00:00
Stratoula Kalafateli
b55dae32f6
[ES|QL] Edits query in the dashboard (#169911)
## Summary

Part of https://github.com/elastic/kibana/issues/165928
Closes https://github.com/elastic/kibana/issues/144498

Allows the user to edit the ES|QL query from the dashboard. Also allows
the user to select one of the suggestions.

<img width="1886" alt="image"
src="9961c154-e414-4ce1-bff5-33ec5c30db69">
<img width="1883" alt="image"
src="6e8971d3-4a35-466f-804a-b8df58b09394">

### Testing
Navigate to Discover ES|QL mode and save a Lens chart to a dashboard.
Click the edit Visualization.

### Important notes
- We can very easily enable suggestions for the dataview panels but I am
going to do it on a follow up PR to keep this PR clean
- Creation is going to be added on a follow up PR
- Warnings are not rendered in the editor because I am using the limit 0
for performance reasons. We need to find another way to depict them via
the embeddable or store. It will be on a follow up PR.
- Errors are being displayed though. The user is not allowed to apply
the changes when an error occurs.
- Creating ES|QL charts from dashboard will happen to a follow up PR

### Running queries which don't return numeric fields
In these cases (i.e. `from logstash-* | keep clientip` we are returning
a table. I had to change the datatable logic for text based datasource
to not depend to isBucketed flag. This is something we had foreseen from
the [beginning of text based
languages](https://github.com/elastic/kibana/issues/144498)

<img width="1879" alt="image"
src="ca4b66fd-560d-4c1e-881d-b173458a06ae">

### Running queries which return a lot of fields
For queries with many fields Lens is going to suggest a huge table
trying to add the fields to the different dimensions. This is not
something we want:
- not performant
- user possibly will start removing fields from the dimensions
- this table is unreadable

For this reason we decided to select the first 5 fields and then the
user can easily adjust the dimensions with the fields they want.

<img width="1215" alt="image"
src="07d7ee78-0085-41b1-98a0-a77eefbc0dcd">


### 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)
- [ ] [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))
- [ ] 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>
2023-11-23 12:26:40 +02:00
James Gowdy
9c63e36de3
Merge branch 'main' into ui-actions-refactor 2023-11-23 10:25:30 +00:00
Tiago Vila Verde
3ec310b519
[Security Solution] [Entity Analytics] Correct References under 'Useful Links' in Risk Score Enablement page (#171089)
## Summary

Get rid of `Host/User` distinction in risk scoring and replace it with
`Entity`, as per:
[#7920](https://github.com/elastic/security-team/issues/7920)


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

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

---------

Co-authored-by: Sergi Massaneda <sergi.massaneda@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 11:20:23 +01:00
Sergi Massaneda
49d1b6daaa
[Security Solution] Fix observable re-rendering component (#171772)
## Summary

There was a "memory-leak" bug on the `ContractComponents` logic (Get
Started page), which was causing a React error.

<img width="814" alt="render_depth_error"
src="c6353e53-9e4a-4103-b61c-1aaf67cda590">

The bug was caused by the `pipe` call in the `getComponent$` function
returning a new observable every call and the `LandingPageComponent` was
not memorizing it.

I changed the `pipe` call by a regular `asObservable`, and created a
reusable `useContractComponents` hook to unify the implementation, which
also memorizes the observable.

I leveraged the changes to the `ContractComponents` implementation to
solve another problem, allowing the stored components to render normally
as a `<Component />`, receiving props if needed, instead of having to
render always as an `{element}`.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 02:59:39 -07:00
Mark Hopkin
1f7a527494
[Fleet] Support preconfigured output secrets (#170259)
## Summary

This PR adds support for outputs with secrets preconfigured in the
`kibana.yml` config file.

As Kibana needs to compare the value of the secret to manage updates, a
hash of the value is stored in the output's saved object. The
implementation follows [option 2 in Infosec's
recommendations](https://github.com/elastic/infosec/issues/14853#issuecomment-1788705606)
with the Argon2id algorithm.

See [here](https://www.npmjs.com/package/argon2) for information about
the `argon2` Node package and
[here](https://github.com/ranisalt/node-argon2/wiki/Options) for the
config options. Here, `argon2` was configured with the recommended
`m=19456 (19 MiB), t=2, p=1 ` (for some reason, `timeCost` cannot be set
to less than 2).

Closes #166360

### Testing

1. Ensure the [`outputSecretsStorage` experimental feature
](fd4fdb01bc/x-pack/plugins/fleet/common/experimental_features.ts (L26))is
enabled.
2. Add the following to your kibana config:
   ```
   xpack.fleet.outputs:
     - id: my-logstash-output-with-a-secret
       name: preconfigured logstash output with a secret
       type:  logstash
       hosts: ["localhost:9999"]
       ssl:
         certificate: xxxxxxxxxx
       secrets:
         ssl:
           key: thisissecret
   ```
3. Verify the secret has been correctly created, e.g. by issuing a `GET
.fleet-secrets/_search` request in Dev Tools: the secret should be
listed there.
4. Change the preconfigured value and wait for kibana to restart: the
secret should be updated with the new value.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: jillguyonnet <jill.guyonnet@gmail.com>
2023-11-23 10:44:27 +01:00
Florian Lehner
b65f0fb0ee
[Profiling] update Linux kernel bug warning (#171714)
## Summary

New versions of Universal Profiling agent will dynamically check for a
patch of the bug. Adjust the warning text accordingly.

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-23 02:43:09 -07:00
Achyut Jhunjhunwala
4edf1110b5
[Logs Explorer] Add optional data-test-subj param for the AI Assistant button context (#171749)
## Summary

In order to capture Telemetry on which of the AI assistant the users are
clicking, we need an identifier so that we can use it to create a funnel
in Full Story.

What better than having an option to pass dataTestSubj from the client
2023-11-23 10:41:00 +01:00
Sander Philipse
4ea8eaf138
[Serverless Search] Add telemetry linting (#171757)
## Summary

This adds linting for presence of `data-test-subj` on interactable
elements.
2023-11-23 10:38:26 +01:00
Maryam Saeidi
c038eea3fb
[Custom threshold] Remove CUSTOM_AGGREGATOR aggType from rule creation API (#171377)
Closes #159340

## Summary

Since the Custom threshold is the default aggregation type, we no longer
need to pass `aggType: CUSTOM_AGGREGATOR` to the rule creation API. I
added this as optional in the schema so the previous rules with this
field will not throw a schema validation error.

## How to test
- Everything should work as before in the custom threshold; the only
difference is that there is no need to provide aggType at the top level.
- Providing `aggType: custom` through API should be OK, and the rule
should work as expected with or without this field.
2023-11-23 10:12:39 +01:00
Ido Cohen
8f91b39937
[Cloud Security] fix cloud defend error logs (#171278) 2023-11-23 11:09:41 +02:00
Julia Bardi
7384321533
[Fleet] only add time_series_metric if tsdb enabled (#171712)
## Summary

Only set `time_series_metric` and `time_series_dimension` in data stream
mappings if tsdb is enabled.

This fixes an issue with apm package in 8.11.

Steps to reproduce the issue:
1. install apm-8.10.4 (create a 8.10 cluster or upload zip)
2. index a document that has jvm fields, so that dynamic mappings are
created
3. upgrade package to apm-8.11.0
4. bug: can't update mappings with the error `mapper_parsing_exception:
Field [jvm.memory.non_heap.pool.committed] attempted to shadow a
time_series_metric]`
5. expected with the fix: the apm package upgrade succeeds,
`time_series_metrics` is not needed if tsdb is not enabled.

This is happening because apm introduced the mapping of jvm fields in
8.11, so clusters that ingested jvm data in apm 8.10 had those fields
created as runtime fields. When mappings were updated in 8.11 with jvm
fields and `time_series_metric`, elasticsearch gave that error with the
shadowing, probably because the write index had the runtime mappings.

This fix is a change to conditionally add `time_series_metric`, it helps
with apm because they don't use tsdb.
The same issue can technically happen with other packages if they have
runtime fields and add mappings on those in a new version, and they use
tsdb.
Maybe this should be fixed on elasticsearch side.
An alternative solution would be to do a rollover first (so that runtime
fields disappear from write index), and then do the mapping update,
however this wouldn't work in all cases as there is a race condition -
there could be documents indexed after the rollover before the mapping
update.


```
// install apm 8.10.4 - downloaded from kibana 8.10.4 bundled packages
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/julia/api/fleet/epm/packages -u elastic:changeme --data-binary @apm-8.10.4.zip

// index doc
POST metrics-apm.internal-default/_doc
{"metricset":{"name":"app","samples":[{"name":"jvm.memory.non_heap.pool.committed","value":3.407872e+06},{"value":1.073741824e+09,"name":"jvm.memory.non_heap.pool.max"},{"name":"jvm.memory.non_heap.pool.used","value":3.12092e+06}]},"process":{"parent":{"pid":24713},"pid":24715,"title":"/usr/lib/jvm/java-11-openjdk-amd64/bin/java"},"@timestamp":"2023-11-21T16:04:51.071Z","data_stream":{"type":"metrics","dataset":"apm.internal","namespace":"default"},"host":{"os":{"platform":"Linux"},"architecture":"amd64","hostname":"carson-elastic","ip":["127.0.0.1"],"name":"carson-elastic"},"service":{"runtime":{"name":"Java","version":"11.0.20.1"},"language":{"name":"Java","version":"11.0.20.1"},"name":"hello_world","node":{"name":"carson-elastic"}},"agent":{"activation_method":"javaagent-flag","ephemeral_id":"cd44472e-a95d-402b-8c68-ccfa7e37ff93","name":"java","version":"1.43.1-SNAPSHOT.3e2ec51"},"labels":{"name":"Compressed Class Space"},"observer":{"hostname":"carson-elastic","type":"apm-server","version":"8.10.4"}}

// check runtime fields in mappings
GET metrics-apm.internal-default/_mapping

{...
      "runtime": {
        "jvm.memory.non_heap.pool.committed": {
          "type": "double"
        },
        "jvm.memory.non_heap.pool.max": {
          "type": "double"
        },
        "jvm.memory.non_heap.pool.used": {
          "type": "double"
        }
      },
...}

// upgrade to apm 8.11
curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/julia/api/fleet/epm/packages -u elastic:changeme --data-binary @apm-8.11.0.zip
```


### 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-11-23 03:24:57 -05:00
Walter Rafelsberger
11acc025b5
[ML] Rename index pattern references to data view. (#171627)
Renames references to index pattern to data views.

- Updates references in `data-test-subj` attributes for data frame
analytics.
- Renames methods in the ` ml.testResources` service used in tests.
- `IndexPattern` references in testing code referring to single indices
were renamed to use `IndexName`. For variable names still using
`IndexPattern` they were prefixed with e.g. `esIndexPattern` to avoid
ambiguity with the legacy data view name.

Note there are still references in the state management code of the data
frame analytics creation wizard, this wasn't picked up in this PR since
it focuses mostly on test related code.
2023-11-23 08:17:26 +01:00
Jiawei Wu
92bc2a0d7c
[RAM][Maintenance Window] MW scoped query schema and API changes (#171597)
## Summary

Partially Resolves: https://github.com/elastic/kibana/issues/164255

This pull request is part 1/3 to add scoped queries to maintenance
windows. More specifically, this PR adds the new `scoped_query` field to
the `maintenanceWindow` type and schema. Also adds the `scoped_query`
field to `create/update` maintenance window APIs.

This PR only contains the schema and API component. All changes should
be backwards compatible since the `scoped_query` field is optional. So
this PR can be merged without any dependencies.

The 2 PRs that comes after will be:
- Frontend changes
- Task runner changes

### 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-11-22 12:51:52 -08:00
Rachel Shen
d5754ad46f
[Fix] Reporting Management in serverless - remove ilm reporting call (#166493)
## Summary

This PR removes the api call for ILM on the Reporting management page
for serverless. SInce ILM is not used by reporting in serverless, this
api get call does not need to execute.

### BEFORE 
fetch.ts:123 GET
https://localhost:5601/ugz/internal/reporting/ilm_policy_status 404 (Not
Found)

<img width="1444" alt="Screenshot 2023-09-14 at 11 12 48 AM"
src="b695df38-7e3d-451e-8245-7753dd89039f">

This error in the console disappears after these changes.

---------
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2023-11-22 13:44:26 -07:00
Lisa Cawley
a50cad6f78
[OAS] Migrate alerting APIs to v3.1.0 (#171587) 2023-11-22 12:21:07 -08:00
Tiago Costa
15866c0e96
skip flaky suite (#171786) 2023-11-22 19:53:18 +00:00
Tiago Costa
4fb236884b
skip flaky suite (#171785) 2023-11-22 19:51:30 +00:00
Tiago Costa
135a374bfe
skip flaky suite (#171783) 2023-11-22 19:45:26 +00:00
Tiago Costa
fde65c39e7
skip flaky suite (#171783) 2023-11-22 19:43:02 +00:00
Tiago Costa
518308fb83
skip flaky suite (#171778) 2023-11-22 19:40:42 +00:00