Skip to content

[TSVB] Fix annotation bounds bug#128242

Merged
flash1293 merged 3 commits intoelastic:mainfrom
flash1293:tsvb-extended-bounds-bug
Mar 24, 2022
Merged

[TSVB] Fix annotation bounds bug#128242
flash1293 merged 3 commits intoelastic:mainfrom
flash1293:tsvb-extended-bounds-bug

Conversation

@flash1293
Copy link
Copy Markdown
Contributor

@flash1293 flash1293 commented Mar 22, 2022

Fixes #128167

#125222 switched the annotation fetching to use the panel interval. However the annotations request would subtract the length of the interval from the end of the time range which can now cause bounds with a higher min than max in case the configured panel interval is larger than the current time range.

I can't see a reason for changing the provided time range for the request, it's not something we are doing for the data series:

This behavior has been in there from the start - @simianhacker do you still know by any chance what that's related to? I tried to break it somehow without subtracting one interval length from the end of the time range but didn't manage to do so.
4f3e625

@flash1293 flash1293 added Feature:TSVB TSVB (Time Series Visual Builder) release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// backport:skip This PR does not require backporting v8.2.0 labels Mar 22, 2022
@flash1293 flash1293 marked this pull request as ready for review March 22, 2022 11:41
@flash1293 flash1293 requested a review from a team as a code owner March 22, 2022 11:41
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Tested on Chrome and it is working as expected. Not sure if there are some implications of this change though so hopefully we'll receive an answer from @simianhacker :)

@flash1293
Copy link
Copy Markdown
Contributor Author

Going forward with merging this - feel free to reach out later @simianhacker in case we should adjust this!

@flash1293 flash1293 merged commit e451d39 into elastic:main Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:TSVB TSVB (Time Series Visual Builder) release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display a better error message for extended bounds min cannot be greater than extended bounds max

4 participants