-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana should allow a min_age setting of 0ms in ILM policy phases #53719
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
809b32f
Kibana should allow a min_age setting of 0ms in ILM policy phases
jkelastic 231071a
Fixed jest by adding >= 0 in lifecycle.js line 133
jkelastic 3d23c4e
1) Updated the jest conditions to allow equal to and above 0. 2) Set …
jkelastic 6393ae2
Fix Internationalization check, line 81 was the same as line 74
jkelastic 595ab8f
Updated <=0 to < 0 as this will not throw error line 133 lifecycle.js
jkelastic 1827fab
Remove comments
jkelastic 2f7c197
Updated the edit_policy.js test cases to accept 0 timing phase
jkelastic c0e0ba9
Merge branch 'master' into bugfix/ILM
elasticmachine 5765daa
Merge branch 'master' into bugfix/ILM
elasticmachine b76b763
Merge branch 'master' into bugfix/ILM
elasticmachine 3b52342
Add back test cases to edit_policy.test.js and removed operational co…
jkelastic a2a5275
Merge branch 'master' into bugfix/ILM
elasticmachine c382972
Merge branch 'master' into bugfix/ILM
elasticmachine 1f06380
Merge branch 'master' into bugfix/ILM
elasticmachine 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was looking through the code again, and I'm wondering if this block of code is necessary. I don't think it will ever reach this point, as we're already checking for negative numbers on L121.
Can you confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will reach this point. Initially I thought the negative numbers on L121 would have caught it too, but it didn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share how you were testing it to reach this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, no problem. Initially I set <=0
This will generate an error when I enter 0 through the Index Lifecycle Policy cold phase page. It was still not permitting 0. When I set < 0
I will not get an error when I enter 0 on the ILP page on the cold phase. Then when I run the jest test I will get a
received
error of 0 as 0 is now a valid value, but I will get anexpected
error of 1.Therefore, I edited the jest test case to allow no error to be returned by setting as the value 0 is permitted now
expectedErrorMessages(rendered, [])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't very clear in my comment. I was referring to your statement:
I was wondering what steps you were taking in the UI to reach this point. I am not able to reproduce.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my misunderstanding. Fixed the issue now.