Skip to content

fix(logs): fix(logs): Logs are not grouped in the chart#101569

Closed
gggritso wants to merge 1 commit into
masterfrom
fix/logs/group-by-not-working
Closed

fix(logs): fix(logs): Logs are not grouped in the chart#101569
gggritso wants to merge 1 commit into
masterfrom
fix/logs/group-by-not-working

Conversation

@gggritso

Copy link
Copy Markdown
Member

I broke this in #100532, which changed the yAxis value of the TimeSeries object to be correct. useStreamingTimeSeriesResult relies on the old format, though, where the yAxis contains the name of the group! This PR is a hotfix while we think of a better solution. It effectively reverts to the old data structure just for logs, so streaming can continue to work.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 15, 2025
@gggritso gggritso marked this pull request as ready for review October 16, 2025 17:30
@gggritso gggritso requested a review from a team October 16, 2025 17:30
@gggritso gggritso requested a review from a team as a code owner October 16, 2025 17:30
@gggritso gggritso requested a review from k-fish October 16, 2025 17:30
yAxis: ts.groupBy.map(groupBy => groupBy.value).join(','),
groupBy: null,
};
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: Empty GroupBy Array Overwrites YAxis

The swapGroupByAndYAxis function incorrectly processes ts.groupBy when it's an empty array. The if (!ts.groupBy) check doesn't account for empty arrays, causing the original yAxis to be overwritten with an empty string. This can break downstream logic expecting meaningful yAxis data.

Fix in Cursor Fix in Web

k-fish added a commit that referenced this pull request Oct 16, 2025
This fixes chart grouping, instead of temporarily supporting the old way
of `yAxis`, this attempts to support group-bys properly (see
#101569)
@gggritso

Copy link
Copy Markdown
Member Author

Obviated by #101626

@gggritso gggritso closed this Oct 17, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2025
@gggritso gggritso deleted the fix/logs/group-by-not-working branch January 30, 2026 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant