fix(dataset): add missing currency_code_column to DatasetPostSchema#38853
fix(dataset): add missing currency_code_column to DatasetPostSchema#38853richardfogaca wants to merge 5 commits intoapache:masterfrom
Conversation
Code Review Agent Run #067b1bActionable Suggestions - 0Review 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 |
Sequence DiagramThis PR updates dataset creation validation to include currency code column, matching update behavior. A create request that includes this field now passes schema validation and proceeds to dataset creation. sequenceDiagram
participant Client
participant DatasetAPI
participant DatasetPostSchema
participant DatasetService
Client->>DatasetAPI: Create dataset with currency code column
DatasetAPI->>DatasetPostSchema: Validate request fields
DatasetPostSchema-->>DatasetAPI: Valid including currency code column
DatasetAPI->>DatasetService: Create dataset with provided fields
DatasetService-->>Client: Created response 201
Generated by CodeAnt AI |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #38853 +/- ##
==========================================
- Coverage 65.54% 64.19% -1.36%
==========================================
Files 1823 2532 +709
Lines 73154 130091 +56937
Branches 23437 30029 +6592
==========================================
+ Hits 47951 83511 +35560
- Misses 25203 45114 +19911
- Partials 0 1466 +1466
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:
|
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Code Review Agent Run #78cc5cActionable Suggestions - 0Review 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 |
User description
SUMMARY
The
currency_code_columnfield was added toDatasetPutSchema(update) but was missed inDatasetPostSchema(create) insuperset/datasets/schemas.py.This caused the API to reject
currency_code_columnwith"Unknown field."when creating a new dataset viaPOST /api/v1/dataset/, while accepting it onPUT /api/v1/dataset/<id>.Fixes #38852
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
POSTrequest to/api/v1/dataset/including"currency_code_column": "some_column"in the JSON body.Unknown fielderror is returned.PUT /api/v1/dataset/<id>withcurrency_code_columnstill works as before.ADDITIONAL INFORMATION
CodeAnt-AI Description
Accept currency code column when creating a dataset
What Changed
currency_code_columnin the request bodyImpact
✅ Fewer dataset creation errors✅ Consistent create and update behavior✅ Clearer API responses for dataset setup💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.