Skip to content

feat(occurrences on eap): Implement double reads from EAP for error counts timeseries#107308

Merged
shashjar merged 13 commits intomasterfrom
implement-eap-occurrence-double-reads-get-errors-counts-timeseries
Mar 2, 2026
Merged

feat(occurrences on eap): Implement double reads from EAP for error counts timeseries#107308
shashjar merged 13 commits intomasterfrom
implement-eap-occurrence-double-reads-get-errors-counts-timeseries

Conversation

@shashjar
Copy link
Member

Implements double reads of occurrences from EAP for get_errors_counts_timeseries_by_project_and_release in src/sentry/api/endpoints/release_thresholds/utils/get_errors_counts_timeseries.py.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 30, 2026
@shashjar shashjar requested review from a team and thetruecpaul January 30, 2026 00:05
@shashjar shashjar marked this pull request as ready for review January 30, 2026 00:05
@shashjar shashjar requested review from a team as code owners January 30, 2026 00:05
@shashjar shashjar removed request for a team January 30, 2026 00:05
@shashjar
Copy link
Member Author

bugbot review

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 1 potential issue.

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

@shashjar shashjar marked this pull request as draft February 12, 2026 17:29
@shashjar shashjar marked this pull request as ready for review February 25, 2026 02:12
query_parts: list[str] = []

if len(release_value_list) == 1:
query_parts.append(f'release:"{release_value_list[0]}"')
Copy link
Member Author

Choose a reason for hiding this comment

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

may need to escape release/environment values here? i'm actually not sure

Copy link
Contributor

Choose a reason for hiding this comment

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

Are you saying escape from a security perspective or from a correctness perspective?

From a security perspective, I feel that the fact we already add a default org/project filter via SnubaParams should be sufficient.

Copy link
Member Author

Choose a reason for hiding this comment

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

for correctness - e.g. if the environment/release name contains a double quote character (not sure if we allow this)

query_parts: list[str] = []

if len(release_value_list) == 1:
query_parts.append(f'release:"{release_value_list[0]}"')
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you saying escape from a security perspective or from a correctness perspective?

From a security perspective, I feel that the fact we already add a default org/project filter via SnubaParams should be sufficient.

@shashjar shashjar merged commit 5464dbb into master Mar 2, 2026
55 checks passed
@shashjar shashjar deleted the implement-eap-occurrence-double-reads-get-errors-counts-timeseries branch March 2, 2026 17:41
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