-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make end in DateRangeSchema not required #589
Conversation
Reviewer's Guide by SourceryThis PR modifies the date schemas to make them more flexible by making certain fields optional and allowing null values. The main changes involve updating field requirements in PartialDateSchema and DateRangeSchema. Updated class diagram for Date SchemasclassDiagram
class PartialDateSchema {
- Integer year
+ Integer year allow_none=True
Integer month allow_none=True
Integer day allow_none=True
String notes allow_none=True load_default=""
}
class DateRangeSchema {
Nested PartialDateSchema start allow_none=True
- Nested PartialDateSchema end allow_none=True
+ Nested PartialDateSchema end allow_none=True required=False
String notes allow_none=True
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ejimsan - I've reviewed your changes - here's some feedback:
Overall Comments:
- Making
year
optional inPartialDateSchema
seems problematic - what's the use case for having a date without a year? This could lead to validation issues downstream. Please provide justification for this change.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Code Climate has analyzed commit c3d426b and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (75% is the threshold). This pull request will bring the total coverage in the repository to 91.5% (0.0% change). View more on Code Climate. |
Summary by Sourcery
Enhancements: