-
Couldn't load subscription status.
- Fork 16.1k
fix: Replace deprecated min parameter with validate=Range() to support marshmallow>=4.0.0 #35844
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: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've completed my review and didn't find any issues.
Files scanned
| File Path | Reviewed |
|---|---|
| superset/charts/schemas.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
Code Review Agent Run #b906eeActionable Suggestions - 0Additional Suggestions - 2
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Interaction Diagram by BitosequenceDiagram
participant API as REST API Layer
participant QC as ChartDataQueryContextSchema
participant PO as ChartDataProphetOptionsSchema<br/>🔄 Updated | ●●○ Medium
participant Validator as Range Validator<br/>🟩 Added | ●●○ Medium
participant Prophet as prophet() Function
Note over PO: Marshmallow 4.0+ compatibility<br/>Replace min param with validate=Range()
API->>QC: POST /api/v1/chart/data
QC->>PO: Load post_processing options
PO->>Validator: Validate periods field
Validator-->>PO: periods >= 0 check
PO-->>Prophet: Pass validated options
Prophet-->>API: Return forecast results
Critical path: REST API Layer->ChartDataQueryContextSchema->ChartDataProphetOptionsSchema->Range Validator->prophet() Function
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #35844 +/- ##
===========================================
+ Coverage 60.48% 71.31% +10.83%
===========================================
Files 1931 600 -1331
Lines 76236 44009 -32227
Branches 8568 4767 -3801
===========================================
- Hits 46114 31387 -14727
+ Misses 28017 11375 -16642
+ Partials 2105 1247 -858
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…shmallow>=4.0.0
Fixes #33162 : update Prophet schema for Marshmallow>=4.0.0 compatibility
SUMMARY
Fixes Marshmallow 4.0 compatibility issue in
ChartDataProphetOptionsSchema.periods field was using
minwhich was deprecated in the marshmallow>=4.0.0. This caused aTypeError: __init__() got an unexpected keyword argument 'min'Used
validate=Range()instead ofmin, which is compatible with both Marshmallow>=4.0.0.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - Backend schema validation fix