-
-
Notifications
You must be signed in to change notification settings - Fork 586
[draft] tweak MaskErrors to handle pre_execution_errors and execution errors #3968
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: main
Are you sure you want to change the base?
Conversation
Reviewer's GuideRefactor the MaskErrors extension by extracting common error masking logic into a new helper and applying it consistently to both pre-execution and execution errors in on_operation, along with adding a corresponding release note. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
I've still got to properly test this, but I thought I'd open a draft pull request to get some initial feedback |
Look alright! But I'll do a proper review once we get tests :D |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3968 +/- ##
==========================================
+ Coverage 94.40% 94.41% +0.01%
==========================================
Files 528 528
Lines 34371 34368 -3
Branches 1803 1801 -2
==========================================
+ Hits 32449 32450 +1
+ Misses 1630 1627 -3
+ Partials 292 291 -1 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #3968 will not alter performanceComparing Summary
|
Yeah, need to look into how to set them up for the extension as there weren't any originally |
Hey @dextermb are you still working on this PR? I can provide a test if needed - I'm just not sure how i can contribute to another author branch :) Test:
But i found another code smell in https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/schema/schema.py#L602. This returns an |
Description
An initial attempt at updating the processing for
MaskErrors
to handle pre-execution errors and execution errors properly.Types of Changes
Issues Fixed or Closed by This PR
Checklist
Summary by Sourcery
Improve MaskErrors extension to separately process and anonymize pre-execution and execution errors
Bug Fixes:
Enhancements:
_process_errors
methodDocumentation: