-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(billing): Reduce hardcoding of data categories in ondemand budget utility functions #90545
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
…et utility functions
@@ -5,6 +5,7 @@ import type {Organization} from 'sentry/types/organization'; | |||
import oxfordizeArray from 'sentry/utils/oxfordizeArray'; | |||
|
|||
import type { | |||
DataCategories, |
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 it be possible to use DataCategory
instead? I'm trying to get rid of DataCategories
in this PR as it's basically another version of DataCategory
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.
Not sure why plural DataCategories was added in the first place.
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Part of https://linear.app/getsentry/issue/BIL-520/refactor-ondemandbudgetsutilstsx-to-iterate-through-per-category.
This is just a first pass in the refactor.
Not all hardcoded data categories can be removed as they're hardcoded typescript types (e.g.
monitorSeatsBudget
). To be able to remove this limitation, we need to update the backend APIs to no longer use and consume them. Afterwards, we will be able to remove them.