-
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
[TSVB] Chart with override index pattern and last_value are migrated with entire_time_range from 7.13+ #115041
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
30f807f
Move logic about default time range mode inside index pattern component
VladLasitsa 01e5ae6
Fix lint
VladLasitsa b5ae872
Fix types
VladLasitsa cdb7a15
Cover case with override_index_pattern
VladLasitsa 89de9d6
Merge branch 'master' into 114984
kibanamachine c0c54df
Merge branch 'master' into 114984
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 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.
@stratoula @VladLasitsa maybe it should go into migration script?
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.
This is a good point but we should add a migration in 7.16 about a previous version (7.13) and I think we are trying to avoid it. This seems to me as a not very common case but I would like @flash1293 feedback here!
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.
Is this within the editor or is it also used on the dashboard?
I think we should do 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.
Yes Joe, it works for the dashboard panels but I agree with your point. Let's also add a migration script :)
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.
@stratoula Could you please describe for which version we should add migration script and in this case we should remove this part of code, right?
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.
Is there a reason why we are not storing it?
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.
@flash1293 When we create new tsvb we have only default state of time range mode which provide in model only my part of code. without this code we can see on UI right time range mode but in model we don't have it while we select another mode in combobox.
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.
No Joe, I guess this also follows the logic "This is the default, do not store it :/". And now we changed the default and this is the reason we have this kind of bugs.
@VladLasitsa I got confused tbh by Alexey's comment about the migration. So if your fix works for all cases, then yes no migration script is needed. It is either a migration script or the fix. If we can't provide a migration script, the fix seems fine to me.
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.
@flash1293, you don't mind to leave only fix without migration script?
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.
@VladLasitsa sounds good, your reasoning makes sense to me.