-
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] Fix annotation line doesn't work if no index pattern is applied #96646
Conversation
@alexwizp can you review this first? |
@@ -24,7 +24,7 @@ export function dateHistogram( | |||
) { | |||
return (next) => async (doc) => { | |||
const barTargetUiSettings = await uiSettings.get(UI_SETTINGS.HISTOGRAM_BAR_TARGET); | |||
const timeField = annotation.time_field; | |||
const timeField = annotation.time_field || indexPattern?.timeFieldName || ''; |
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.
We merged #95772. This PR should be updated and retested. At least indexPattern -> seriesIndex.indexPattern
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.
Updated and retested
…otations # Conflicts: # src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/annotations/date_histogram.js # src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/annotations/query.js # src/plugins/vis_type_timeseries/server/lib/vis_data/request_processors/annotations/top_hits.js
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.
Thank you, LGTM! Tested locally
@elasticmachine merge upstream |
Pinging @elastic/kibana-app (Team:KibanaApp) |
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.
LGTM, thank you Dima, tested it locally in Chrome and it works fine 👏
Jenkins test this |
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: cc @dmitriynj |
elastic#96646) * [TSVB] fix annotation line doesnt work if no index pattern is applied * [TSVB] remove series from annotations, remove timeField placeholder Co-authored-by: Kibana Machine <[email protected]>
#96646) (#96965) * [TSVB] fix annotation line doesnt work if no index pattern is applied * [TSVB] remove series from annotations, remove timeField placeholder Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Dmitry Tomashevich <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Closes #96277
Summary
Steps to reproduce:
Expected behavior:
After changes: