-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(occurrences on eap): Implement EAP read for retrieving top issues by event count #105460
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
| ) -> list[dict[str, Any]]: | ||
| """EAP implementation: Given a list of issue group ids, return a sublist of the top 5 ordered by event count""" | ||
| organization = Organization.objects.get(id=project.organization_id) | ||
| now = datetime.now(tz=timezone.utc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This appears to technically be different from the Snuba implementation, which doesn't specify a timezone. (Though that might get set somewhere in the Snuba framework?)
| end=now, | ||
| organization=organization, | ||
| projects=[project], | ||
| environments=[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think environments is an empty list by default
| "integrations.pr_comment.get_top_5_issues_by_count" | ||
| ): | ||
| eap_results = self._get_top_5_issues_by_count_eap(issue_ids, project) | ||
| results = EAPOccurrencesComparator.check_and_choose( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can you add resonable-match and null-result here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that reasonable-match makes complete sense here, since the difference in retention could mean that there's no overlap in the highest-count group IDs (although I'm not sure whether this would be common or not)
…s by event count (#105460) This PR implements a double read from EAP of the top 5 issues by event count.
This PR implements a double read from EAP of the top 5 issues by event count.