Skip to content

Conversation

tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Mar 14, 2025

This PR attempts to add the necessary logic to show more detail for the 'too large' outcome.

Since I am not a front-end wizzard it might be that I am missing something though.

Relay PR: getsentry/relay#4558
Fixes: https://github.com/getsentry/team-ingest/issues/635

@tobias-wilfert tobias-wilfert self-assigned this Mar 14, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 14, 2025
@priscilawebdev
Copy link
Member

Please do not forget to update the doc with the exposed new reasons: https://docs.sentry.io/product/stats/#invalid 🙏

Copy link
Member

@priscilawebdev priscilawebdev left a comment

Choose a reason for hiding this comment

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

thanks for adding tests! it looks good to me 🙌

'Browser Extensions'
);

expect(getReasonGroupName(Outcome.CLIENT_DISCARD, 'queue_overflow')).toBe(
Copy link
Member

Choose a reason for hiding this comment

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

we could reuse the enum ClientDiscardReason here too

Copy link
Member Author

Choose a reason for hiding this comment

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

Just to make sure I understand this correctly, I changed this to (which required to export the ClientDiscardReason) I hope this was what you meant:

expect(getReasonGroupName(Outcome.CLIENT_DISCARD, 'queue_overflow')).toBe(
  ClientDiscardReason.QUEUE_OVERFLOW
);

@tobias-wilfert tobias-wilfert changed the title WIP: feat(outcomes): Add file type to 'too large' outcome. feat(outcomes): Add file type to 'too large' outcome. Mar 17, 2025
@tobias-wilfert tobias-wilfert marked this pull request as ready for review March 17, 2025 07:48
@tobias-wilfert tobias-wilfert requested a review from a team as a code owner March 17, 2025 07:48
@tobias-wilfert
Copy link
Member Author

Please do not forget to update the doc with the exposed new reasons: https://docs.sentry.io/product/stats/#invalid 🙏

My attempt at updating the doc, feel free to leave comments on how it can be improved: getsentry/sentry-docs#13012

@tobias-wilfert tobias-wilfert merged commit d380d32 into master Mar 18, 2025
43 checks passed
@tobias-wilfert tobias-wilfert deleted the tobias-wilfert/feat/add-item-type-to-outcome branch March 18, 2025 08:28
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants