-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Index management] Data stream edit data retention #167006
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
Merged
sabarasaba
merged 36 commits into
elastic:main
from
sabarasaba:index_management-ds_edit_data_retention
Sep 30, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6330adc
Add UI changes for supporting data retention editing
sabarasaba 2bb02ce
commit with @elastic email
sabarasaba 2b23bd6
Fix translations
sabarasaba f2b59a8
Thighten up validation
sabarasaba 059d55a
Deserialize initial value and use as default
sabarasaba f0c7c01
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine f818f60
Add support for infinite retention periods
sabarasaba e3339ed
Fix small UX bugs
sabarasaba 0442fb2
Fix linter issues
sabarasaba dadf69d
Fix duped id
sabarasaba 9d76ce3
Add configuredByILM warning
sabarasaba bd34162
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine eda56f1
Add api integration and unit tests
sabarasaba 9b21888
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine bd7d92f
Finish up adding cits
sabarasaba 9f092b1
Add functional tests
sabarasaba 30dc3ab
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 0bd951e
Rename test subj
sabarasaba 4ea8edb
Add missing test
sabarasaba d1ea8a1
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 827bcf9
Fix paths
sabarasaba 0f2ac96
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 422f9c1
Add checks for when form is dirty
sabarasaba 18b232a
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine e24856d
Address CR changes
sabarasaba b87173a
Fix lint error
sabarasaba 98fa96c
Address copy review
sabarasaba 9065764
Disable editing of data retention when DS is managed by ILM
sabarasaba 8771d59
Add permissions check for ds
sabarasaba 55a1c1f
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 8288f71
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 5258cd4
Address CR changes
sabarasaba 68afc92
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 8189921
Add missing privilege
sabarasaba 1eb7855
Fix import path
sabarasaba 3d6e055
Merge branch 'main' into index_management-ds_edit_data_retention
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/index_management/common/lib/data_stream_serialization.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { splitSizeAndUnits } from './data_stream_serialization'; | ||
|
|
||
| describe('Data stream serialization', () => { | ||
| test('can split size and units from lifecycle string', () => { | ||
| expect(splitSizeAndUnits('1h')).toEqual({ size: '1', unit: 'h' }); | ||
| expect(splitSizeAndUnits('20micron')).toEqual({ size: '20', unit: 'micron' }); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.