Skip to content

Conversation

roaga
Copy link
Member

@roaga roaga commented Oct 11, 2025

Receives new query mode param from https://github.com/getsentry/seer/pull/3595 to correctly determine which mode to use. The previous condition was not correct logic in all cases

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 11, 2025
@roaga roaga marked this pull request as ready for review October 14, 2025 17:00
@roaga roaga requested a review from a team as a code owner October 14, 2025 17:00
@roaga roaga requested a review from aliu39 October 14, 2025 17:00
fields = list(group_by)
fields = []
if group_by:
fields.extend(group_by)
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Empty Fields List Causes API Failures

In execute_trace_query_table, when mode="aggregates" and both group_by and y_axes are empty, the fields list becomes empty. This can cause API calls to the events endpoint to fail. The previous logic implicitly ensured fields were present by falling back to default span fields, a safeguard removed by the new explicit mode parameter.

Fix in Cursor Fix in Web

@roaga roaga removed the request for review from aliu39 October 14, 2025 17:06
@roaga roaga merged commit 51be557 into master Oct 14, 2025
67 checks passed
@roaga roaga deleted the explorer/use-correct-query-mode branch October 14, 2025 17:07
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #101394      +/-   ##
===========================================
- Coverage   81.15%    81.04%   -0.11%     
===========================================
  Files        8704      8699       -5     
  Lines      388023    385840    -2183     
  Branches    24400     24400              
===========================================
- Hits       314888    312697    -2191     
- Misses      72784     72792       +8     
  Partials      351       351              

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

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants