Skip to content

[TSVB] Use panel interval for annotations#125222

Merged
flash1293 merged 9 commits intoelastic:mainfrom
flash1293:fix-tsvb-annotation-interval
Feb 14, 2022
Merged

[TSVB] Use panel interval for annotations#125222
flash1293 merged 9 commits intoelastic:mainfrom
flash1293:fix-tsvb-annotation-interval

Conversation

@flash1293
Copy link
Copy Markdown
Contributor

@flash1293 flash1293 commented Feb 10, 2022

Fixes #14755

This PR takes the panel interval for the annotation request as well instead of defaulting to "auto" if the panel interval is smaller than the auto interval.

The reason for not taking the panel interval if it's larger than auto is that it would break existing visualizations (existing annotations would appear less precise and annotations could be missing because they are rolled up in a single bucket).

Before:
Screenshot 2022-02-10 at 13 11 37
Screenshot 2022-02-10 at 13 11 31
Screenshot 2022-02-10 at 13 11 25

After:
Screenshot 2022-02-11 at 12 23 09
Screenshot 2022-02-11 at 12 23 03
Screenshot 2022-02-11 at 12 22 45

@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// auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 v8.2.0 labels Feb 10, 2022
@flash1293 flash1293 marked this pull request as ready for review February 11, 2022 15:01
@flash1293 flash1293 requested a review from a team as a code owner February 11, 2022 15:01
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@flash1293
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@flash1293
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@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

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

This makes sense Joe. Changes LGTM. I tested it locally with interval > and < of the auto interval and works as described in the PR!

@flash1293 flash1293 merged commit 5babc9f into elastic:main Feb 14, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 14, 2022
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.1

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 14, 2022
(cherry picked from commit 5babc9f)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed 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.1.0 v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TSVB] Annotations do not align with panel data

5 participants