Skip to content
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

Filter out by error code + invert filtering #6432

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jul 29, 2024

As title

Instance of not working well.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

The changes in should-capture-exception.util.ts focus on renaming an array and inverting the logic for filtering GraphQL errors.

  • Renamed graphQLErrorCodesToFilter to graphQLErrorCodesToFilterOut.
  • Inverted logic in shouldCaptureException to return false for filtered error codes.
  • Potential issue with @ts-expect-error comment, which may hide type issues.

These changes simplify the logic but ensure to address the type error comment for robustness.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

Curious that's not working 🤔. LGTM

@charlesBochet charlesBochet force-pushed the tt-filter-out-graphql-user-input-errors branch from 87fe332 to 0753853 Compare July 29, 2024 13:48
@charlesBochet charlesBochet merged commit 515d6fb into main Jul 29, 2024
6 checks passed
@charlesBochet charlesBochet deleted the tt-filter-out-graphql-user-input-errors branch July 29, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants