Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Index Management] Add bulk edit data retention #203083

Merged

Conversation

ElenaStoeva
Copy link
Contributor

@ElenaStoeva ElenaStoeva commented Dec 5, 2024

Closes #165142

Summary

This PR adds bulk edit data retention to Data streams table.

On all offerings apart from serverless security project:

Screen.Recording.2024-12-12.at.18.37.58.mov

On serverless security project:

Screen.Recording.2024-12-12.at.18.45.58.mov

How to test:

Testing in serverless security project:

  1. Start ES with yarn es serverless --projectType security -E data_streams.lifecycle.retention.max=200d and Kibana with yarn serverless-security
  2. Navigate to console and create a few data streams following these instructions
  3. Navigate to Index Management -> Data streams
  4. Select multiple data streams and click on bulk edit data retention button
  5. Verify that:
  • The help text displays the set max data retention with a link to cloud.
  • The form doesn't allow setting a data retention higher than the max data retention.
  • If any of the data streams has a reduced data retention period, an error banner is shown, displaying the affected data streams.

Testing in stateful and searc/oblt serverless project:

  1. Start ES with yarn es serverless and Kibana with yarn serverless-security
  2. Navigate to console and create a few data streams following this instructions
  3. Navigate to Index Management -> Data streams
  4. Select multiple data streams and click on bulk edit data retention button
  5. Verify that:
  • There is no help text displaying the max data retention and no validation for the data retention period.
  • If any of the data streams has a reduced data retention period, an error banner is shown, displaying the affected data streams.

Configure cloud locally by adding the following to config/kibana.dev.yml and restarting Kibana:

xpack.cloud.id: 'test'
xpack.cloud.base_url: "https://cloud.elastic.co"
xpack.cloud.deployment_url: "/deployments/deploymentId"

Checklist

@ElenaStoeva ElenaStoeva added Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Dec 5, 2024
@ElenaStoeva ElenaStoeva self-assigned this Dec 5, 2024
@ElenaStoeva ElenaStoeva marked this pull request as ready for review December 9, 2024 09:07
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner December 9, 2024 09:07
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@SoniaSanzV SoniaSanzV self-requested a review December 9, 2024 09:13
Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this @ElenaStoeva! I tested it locally and in general looks good, but I've seen some things that I think it can be improved:

General

The changes in the flyout have provoked that the modal width changes when modifying the retention for a single data stream:
data retention

When you edit the data retention for a few data streams and you first introduce a value but then select the maximum/infinite period, the data deletion warning is still there, which I believe may be confusing for users as it may seem that some data will be deleted
Screenshot 2024-12-10 at 08 09 31

In the same line but not that serious, if I have a validation error and then I toggle the max retention button, the validation error is still there:
Screenshot 2024-12-10 at 08 11 49

Super nit pick. In the mocks the Delete data streams icon and text is red but here is all black:
Screenshot 2024-12-10 at 08 06 56
In the flyout the icon is red but the text is black, which I don't know if it's the expected look.

Security serverless

In serverless security I saw a few weird behaviors (it happens in both single edit and bulk):

  • If a have some data stream set to max retention(toggle on) and then manually change the retention to the same value it says I will lose data, even thought the retention period is the same. It happens both in bulk and flyout.
  • If I select a data stream and edit the retention to max (toggle on) and save, I have a toaster saying that retention is mandatory and it has been set to the maximun.

security

  • When I click in the Manage project settings link, although it is an external link, it reload the page I'm working and I don't reach the Project settings page:
    Manage project settings

@ElenaStoeva ElenaStoeva requested a review from a team as a code owner December 11, 2024 14:15
@ryankeairns
Copy link
Contributor

@jovana-andjelkovic would you like to review this one?

@ElenaStoeva ElenaStoeva force-pushed the data-streams/bulk-edit-data-retention branch from fe45e03 to f95bbd7 Compare December 16, 2024 13:19
@ElenaStoeva
Copy link
Contributor Author

Thank you for addressing my feedback @ElenaStoeva ! Everything looks good to me but one thing: In serverless security, when I change the retention to max in bulk o in the flyout I'm still seeing the warning toaster saying I didn't set a data retention period

Hi @SoniaSanzV, thanks for re-reviewing and sorry for missing to address this point! This warning message actually comes from Elasticsearch and I believe that this behavior exists from before this PR. Our current logic is that if the response comes back with a warning from Es, we should display it in a toast message.

Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @SoniaSanzV, thanks for re-reviewing and sorry for missing to address this point! This warning message actually comes from Elasticsearch and I believe that this behavior exists from before this PR. Our current logic is that if the response comes back with a warning from Es, we should display it in a toast message.

Fair enough! It's not the best experience but since is not in our side, approving!

@jovana-andjelkovic
Copy link

@ElenaStoeva for some reason when testing the latest build, I get some of the same issues @SoniaSanzV noted above:

  • [General] When editing individual data stream retention (not through bulk action) the modal size changes due to callout
  • [Security] Entering value higher than project level retention maximum, and then toggling "maximum retention" retains the error and user cannot submit the form – same happens in bulk modal as well as individual edit on data stream
    image
    image

Other issue:

  • [Security] When entering different values for same selection, the callout shows different content:
    • entering 20 days shows callout that doesn't list all affected data streams
    • entering 200 days on same selection shows all affected data streams list in callout

image
image

@ElenaStoeva
Copy link
Contributor Author

ElenaStoeva commented Dec 18, 2024

Thanks for the review @jovana-andjelkovic!

  • [General] When editing individual data stream retention (not through bulk action) the modal size changes due to callout

Hmm I thought this was fixed, not sure what happened with these changes - should be fixed now with 4ebb176.
On a side note, we only want to display this error callout for bulk edit, correct?

  • [Security] Entering value higher than project level retention maximum, and then toggling "maximum retention" retains the error and user cannot submit the form – same happens in bulk modal as well as

I actually already addressed this in my previous comment: Ah this behavior actually exists from before this PR and it's tricky to fix. I think we've discussed that on Slack before and decided that it's okay to leave it as is.
I agree that this is not a great UX so I'm happy to open an issue so we can address it in a follow-up PR. Wdyt?

  • [Security] When entering different values for same selection, the callout shows different content:

    • entering 20 days shows callout that doesn't list all affected data streams
    • entering 200 days on same selection shows all affected data streams list in callout

This is because for 20 days, there are 12 affected data streams and we decided that we only display the names for <= 10 data streams, right? For 200 days, there are 10 affected data streams, which is why they are displayed.

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 19, 2024

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
indexManagement 698 702 +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexManagement 699.6KB 703.9KB +4.2KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
indexManagement 47.6KB 47.6KB +86.0B

History

cc @ElenaStoeva

@jovana-andjelkovic
Copy link

@ElenaStoeva thank you!

Hmm I thought this was fixed, not sure what happened with these changes - should be fixed now with 4ebb176.
On a side note, we only want to display this error callout for bulk edit, correct?

It doesn't display anymore on single edit ✔️ I do think we should have it there, as well. But as it wasn't originally specified and it's not planned part of this PR – maybe we can add an issue to backlog to add it in single edit as well?

This is because for 20 days, there are 12 affected data streams and we decided that we only display the names for <= 10 data streams, right? For 200 days, there are 10 affected data streams, which is why they are displayed.

Ah okay! In my head that limit was set on number of selected data streams rather than number of affected – but this works, maybe even better!

I think we can merge this PR! 🟢

@ElenaStoeva ElenaStoeva merged commit f72b63f into elastic:main Dec 19, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12413377278

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 19, 2024
Closes elastic#165142

## Summary

This PR adds bulk edit data retention to Data streams table.

On all offerings apart from serverless security project:

https://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27

On serverless security project:

https://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f

### How to test:

Testing in serverless security project:
1. Start ES with `yarn es serverless --projectType security -E
data_streams.lifecycle.retention.max=200d` and Kibana with `yarn
serverless-security`
2. Navigate to console and create a few data streams following [these
instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)
3. Navigate to Index Management -> Data streams
4. Select multiple data streams and click on bulk edit data retention
button
5. Verify that:
- The help text displays the set max data retention with a link to
cloud.
- The form doesn't allow setting a data retention higher than the max
data retention.
- If any of the data streams has a reduced data retention period, an
error banner is shown, displaying the affected data streams.

Testing in stateful and searc/oblt serverless project:
1. Start ES with `yarn es serverless` and Kibana with `yarn
serverless-security`
2. Navigate to console and create a few data streams following [this
instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)
3. Navigate to Index Management -> Data streams
4. Select multiple data streams and click on bulk edit data retention
button
5. Verify that:
- There is no help text displaying the max data retention and no
validation for the data retention period.
- If any of the data streams has a reduced data retention period, an
error banner is shown, displaying the affected data streams.

Configure cloud locally by adding the following to
`config/kibana.dev.yml` and restarting Kibana:
```
xpack.cloud.id: 'test'
xpack.cloud.base_url: "https://cloud.elastic.co"
xpack.cloud.deployment_url: "/deployments/deploymentId"
```

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed -
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit f72b63f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7619

[✅] x-pack/test/functional/apps/index_management/config.ts: 200/200 tests passed.

see run history

JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
Closes elastic#165142

## Summary

This PR adds bulk edit data retention to Data streams table.

On all offerings apart from serverless security project:


https://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27


On serverless security project:



https://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f





### How to test:

Testing in serverless security project:
1. Start ES with `yarn es serverless --projectType security -E
data_streams.lifecycle.retention.max=200d` and Kibana with `yarn
serverless-security`
2. Navigate to console and create a few data streams following [these
instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)
3. Navigate to Index Management -> Data streams
4. Select multiple data streams and click on bulk edit data retention
button
5. Verify that:
- The help text displays the set max data retention with a link to
cloud.
- The form doesn't allow setting a data retention higher than the max
data retention.
- If any of the data streams has a reduced data retention period, an
error banner is shown, displaying the affected data streams.


Testing in stateful and searc/oblt serverless project:
1. Start ES with `yarn es serverless` and Kibana with `yarn
serverless-security`
2. Navigate to console and create a few data streams following [this
instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)
3. Navigate to Index Management -> Data streams
4. Select multiple data streams and click on bulk edit data retention
button
5. Verify that:
- There is no help text displaying the max data retention and no
validation for the data retention period.
- If any of the data streams has a reduced data retention period, an
error banner is shown, displaying the affected data streams.

Configure cloud locally by adding the following to
`config/kibana.dev.yml` and restarting Kibana:
```
xpack.cloud.id: 'test'
xpack.cloud.base_url: "https://cloud.elastic.co"
xpack.cloud.deployment_url: "/deployments/deploymentId"
```


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed -
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619

---------

Co-authored-by: kibanamachine <[email protected]>
kibanamachine added a commit that referenced this pull request Dec 19, 2024
)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Index Management] Add bulk edit data retention
(#203083)](#203083)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-19T13:11:52Z","message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-security"],"title":"[Index
Management] Add bulk edit data
retention","number":203083,"url":"https://github.com/elastic/kibana/pull/203083","mergeCommit":{"message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203083","number":203083,"mergeCommit":{"message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e"}}]}]
BACKPORT-->

---------

Co-authored-by: Elena Stoeva <[email protected]>
Co-authored-by: Matthew Kime <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:cloud-deploy Create or update a Cloud deployment ci:project-deploy-security Create a Security Serverless Project Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Index Management] Bulk edit data retention
6 participants