Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions static/app/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,21 @@ export const DATA_CATEGORY_INFO = {
showExternalStats: true,
},
},
[DataCategoryExact.USER_REPORT_V2]: {
name: DataCategoryExact.USER_REPORT_V2,
apiName: 'feedback',
plural: DataCategory.USER_REPORT_V2,
displayName: 'user feedback',
titleName: t('User Feedback'),
productName: t('User Feedback'),
uid: 14,
isBilledCategory: false,
docsUrl: 'https://docs.sentry.io/product/user-feedback/',
statsInfo: {
...DEFAULT_STATS_INFO,
showExternalStats: true,
},
},
[DataCategoryExact.TRANSACTION_PROCESSED]: {
name: DataCategoryExact.TRANSACTION_PROCESSED,
apiName: 'transactions',
Expand Down
2 changes: 2 additions & 0 deletions static/app/types/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export enum DataCategory {
LOG_BYTE = 'logBytes',
SEER_AUTOFIX = 'seerAutofix',
SEER_SCANNER = 'seerScanner',
USER_REPORT_V2 = 'feedback',
}

/**
Expand Down Expand Up @@ -123,6 +124,7 @@ export enum DataCategoryExact {
LOG_BYTE = 'logByte',
SEER_AUTOFIX = 'seerAutofix',
SEER_SCANNER = 'seerScanner',
USER_REPORT_V2 = 'user_report_v2',
Copy link
Member

Choose a reason for hiding this comment

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

this should be in the same format as the others (camel case singular). Does changing this to that format break stats?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I thought from the comment that it's supposed to match the relay enum?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ugh i totally missed that, then that means all the others in camel case need to be changed 😭 not your problem though, thanks for pointing out

Copy link
Member Author

Choose a reason for hiding this comment

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

}

export interface DataCategoryInfo {
Expand Down
Loading