-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(eap): Sets up double deletion of occurrences with EAP #101385
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
base: master
Are you sure you want to change the base?
Conversation
|
||
# Enables deletion from EAP for a set of projects | ||
register( | ||
"eventstream.eap.deletion_enabled.project_allowlist", |
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.
Does a project allowlist fit with how we want to do initial rollout/testing?
logger = logging.getLogger(__name__) | ||
|
||
|
||
def delete_groups_from_eap_rpc( |
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.
Would like opinions on how to organize this code, e.g. in a separate file as drafted or alongside the Snuba eventstream impl
and_filter=AndFilter(filters=[project_filter, group_id_filter]) | ||
) | ||
filter_with_type = TraceItemFilterWithType( | ||
item_type=TRACE_ITEM_TYPE_OCCURRENCE, |
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 unclear why we have both TRACE_ITEM_TYPE_OCCURRENCE
& TRACE_ITEM_TYPE_ERROR
. I thought we were using "occurrences" as the term for all error events stored in EAP?
from sentry.testutils.cases import TestCase | ||
|
||
|
||
class TestEAPDeletion(TestCase): |
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.
Basic tests for now, to be improved later
Sets up double deletion of occurrences with EAP, as described in ID-997.
When deleting events from eventstore, we should also delete from EAP using the in-progress
DeleteTraceItems
endpoint (protobuf definition).