Skip to content
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

[v10.1.x] Logs: Fix log samples not present with empty first frame #73622

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 997d21f from #73612


What is this feature?

When using log samples with multiple queries, and the first query returning 0 log results, no log samples would be displayed, while the second query would produce results. This behavior is fixed in this PR.

Which issue(s) does this PR fix?:
Fixes #73531

Special notes for your reviewer:

  1. Run two queries:
    A: sum(count_over_time({instance="server\\1", place="moon", foo="bar"} [$__auto]))
    B: sum(count_over_time({instance="server\\1", place="moon"} [$__auto]))
  2. Open Log sampels
  3. Without the fix, no results are displayed. With the fix, see logs.

* fix log samples not present with empty first frame

* also test with empty frames

* rename test file

* remove import

(cherry picked from commit 997d21f)
@svennergr svennergr enabled auto-merge (squash) August 22, 2023 13:21
@svennergr svennergr merged commit e3337e8 into v10.1.x Aug 22, 2023
19 checks passed
@svennergr svennergr deleted the backport-73612-to-v10.1.x branch August 22, 2023 13:30
@github-actions
Copy link
Contributor

Backend code coverage report for PR #73622
No changes

@github-actions
Copy link
Contributor

Frontend code coverage report for PR #73622

Plugin Main PR Difference
explore 86.29% 86.44% .15%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants