-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(cra-metrics): Updates subscription deletion #30432
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
wedamija
left a comment
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.
lgtm, are the test failures just because the endpoint isn't ready on the snuba side yet?
| QueryDatasets.TRANSACTIONS: EntityKey.Transactions, | ||
| }[dataset] | ||
| # If we get to this, then dataset must be either the metrics or the sessions datasets | ||
| except KeyError: |
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.
Using KeyError feels a bit weird here. Would we better defining the mapping outside and for all entities/datasets, then doing:
entity_key = entity_key_mapping[dataset]
if entity_key in [EntityKey.MetricsCounters, EntityKey.Sessions]:
# Do extra error checking
return entity_key
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.
Yeah you are right!
abb1dae to
c27bbea
Compare
c9be496 to
e9552bd
Compare
yep getting those merged in today though |
e9552bd to
3bbbe34
Compare
3bbbe34 to
7ae9bcf
Compare
7ae9bcf to
6fdd7ca
Compare
6fdd7ca to
2f61d79
Compare
Updates subscription deletion to use the new snuba endpoint that includes the entity key
2f61d79 to
a289878
Compare
entity_keyFor context: getsentry/snuba#2244