Skip to content

feat(snuba): Support start/end filter in get_adjacent_event_ids{,_snql} #93272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

evanpurkhiser
Copy link
Member

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 10, 2025
@evanpurkhiser evanpurkhiser requested review from snigdhas and a team June 10, 2025 20:14
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-snuba-support-start-end-filter-in-get-adjacent-event-ids-snql branch from bccae51 to aa74e85 Compare June 10, 2025 20:24
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-snuba-support-start-end-filter-in-get-adjacent-event-ids-snql branch from aa74e85 to 60b8b80 Compare June 10, 2025 22:08
@evanpurkhiser evanpurkhiser changed the title feat(snuba): Support start/end filter in get_adjacent_event_ids_snql feat(snuba): Support start/end filter in get_adjacent_event_ids{,_snql} Jun 10, 2025
Comment on lines +497 to +498
lower_bound = start or (event.datetime - timedelta(days=100))
upper_bound = end or (event.datetime + timedelta(days=100))
Copy link
Member

Choose a reason for hiding this comment

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

we should clamp start and end here just to be safe.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we can let snuba handle this. Will ask around though.

@evanpurkhiser evanpurkhiser merged commit d038667 into master Jun 10, 2025
62 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-snuba-support-start-end-filter-in-get-adjacent-event-ids-snql branch June 10, 2025 22:57
vishnupsatish pushed a commit that referenced this pull request Jun 12, 2025
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