Skip to content

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented Jan 23, 2026

Not called in seer, deprecated in favor of execute_table_query

@aliu39 aliu39 requested a review from a team as a code owner January 23, 2026 02:49
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 23, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

from sentry.utils.dates import parse_stats_period
from sentry.utils.env import in_test_environment
from sentry.utils.seer import can_use_prevent_ai_features
from sentry.utils.snuba_rpc import table_rpc
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused TypedDict classes after function removal

Low Severity

The ColumnDict, SortDict, and SpansResponse TypedDict classes remain defined but are now unused after the removal of get_spans, which was their only consumer. These classes were type hints for the removed function and its parameters, and should be removed as part of this cleanup to avoid cluttering the codebase with dead code.

Fix in Cursor Fix in Web

"meta": {
"columns": columns,
"total_rows": len(parsed_data),
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Orphaned tests for removed function

Medium Severity

The removal of get_spans and related functions leaves behind five test methods in tests/snuba/api/endpoints/test_seer_attributes.py that test this now-deleted functionality. The test file imports get_spans on line 8 and has test methods test_get_spans_basic, test_get_spans_with_query, test_get_spans_with_sort, test_get_spans_invalid_stats_period, and test_get_spans_empty_response that will fail. This incomplete cleanup contradicts the PR's stated goal of cleaning up unused code and leaves dead test code in the codebase.

Fix in Cursor Fix in Web

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.

3 participants