[draft] tweak MaskErrors to handle pre_execution_errors and execution errors#3968
[draft] tweak MaskErrors to handle pre_execution_errors and execution errors#3968dextermb wants to merge 1 commit intostrawberry-graphql:mainfrom
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 |
Hi, I haven't had chance to loop back around to this. Happy to continue to contribute. If you want to chat off GitHub my Discord username is "dmb". Work wise, I'll likely have more time on this in the coming month(s). |
Description
An initial attempt at updating the processing for
MaskErrorsto 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_errorsmethodDocumentation: