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

MissingFieldError once again extends Error #10051

Merged

Conversation

MrDoomBringer
Copy link
Contributor

Based on the original PR here - #9126 (Thanks @matthargett!)

Opening this to address some changes that were requested in the above PR but never got picked up by the original author.
Assuming the original review by @benjamn still stands, this should be good to go :-)

From previous discussion:
Some crash reporting services were not categorizing the MissingFieldError with other custom errors because it does not extend from the base Error class. This was an intentional performance fix in #8734, but because that PR also ended up batching huge arrays of MissingFieldErrors into a single MissingFieldError, the overhead from the super() call to Error was no longer a huge issue - so we're reverting that change here.

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@matthargett
Copy link

Totally fell off my GitHub alerts radar, thanks for picking it back up! cc @dustinsgoodman

@jpvajda
Copy link
Contributor

jpvajda commented Sep 1, 2022

LGTM @MrDoomBringer ! Once merged can we close out #9126 ?

@MrDoomBringer MrDoomBringer merged commit 2f000d0 into apollographql:main Sep 2, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants