Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Nov 25, 2025

Summary

This will not fire an analytics unless datascanned is provided.

This will not fire an analytics unless datascanned is provided.
@k-fish k-fish requested a review from a team as a code owner November 25, 2025 18:52
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 25, 2025
metricAggregatesTableResult.result.isPending ||
metricTimeseriesResult.isPending
metricTimeseriesResult.isPending ||
!dataScanned
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Wrong data source for dataScanned in aggregate mode

The dataScanned check in AGGREGATE mode uses data from metricSamplesTableResult, but in AGGREGATE mode the relevant metadata comes from metricAggregatesTableResult. This causes the analytics to wait for the wrong data source - it checks whether samples table has dataScanned when it should check the aggregates table instead. This can prevent analytics from firing even when aggregate data is available, or allow it to fire with mismatched data.

Additional Locations (2)

Fix in Cursor Fix in Web

if (
metricSamplesTableResult.result.isFetching ||
metricTimeseriesResult.isPending ||
!dataScanned
Copy link
Member

Choose a reason for hiding this comment

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

this check shouldn't be necessary anymore but no harm in keeping it

@k-fish k-fish enabled auto-merge (squash) November 25, 2025 19:44
@k-fish k-fish merged commit 4b341f6 into master Nov 25, 2025
47 checks passed
@k-fish k-fish deleted the fix/tracemetrics/fix-analytics-datascanned branch November 25, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants