-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: Model & schema validations for donations #6062
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
feat: Model & schema validations for donations #6062
Conversation
bad5329 to
c9421ba
Compare
|
@uds5501 @shreyanshdwivedi Please review. |
c9421ba to
b564fdc
Compare
Codecov Report
@@ Coverage Diff @@
## development #6062 +/- ##
===============================================
+ Coverage 66.12% 66.12% +<.01%
===============================================
Files 285 285
Lines 14089 14098 +9
===============================================
+ Hits 9316 9323 +7
- Misses 4773 4775 +2
Continue to review full report at Codecov.
|
shreyanshdwivedi
left a comment
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.
@mrsaicharan1 I think there should be a validation check so that min_price <= max_price.
b68b479 to
3f01650
Compare
3f01650 to
d276e60
Compare
Yeah. Made it. |
|
@uds5501 @shreyanshdwivedi @iamareebjamal Please review. |
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column('tickets', sa.Column('max_price', sa.Float(), nullable=True)) |
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.
here it's nullable false, I don't see any specification in the model file.
7dce5cb to
c3ce6d7
Compare
5b0b792 to
9e4f058
Compare
|
@CosmicCoder96 I've made the requested changes. Please review. |
9e4f058 to
40c5a2f
Compare
|
@iamareebjamal Oh okay! I thought only boolean fields required a server_default. Understood now. Updated it. |
40c5a2f to
c094685
Compare
Updated validations & corrected pointer info Updated revision head provided defaults
c094685 to
eb18960
Compare
Fixes #6061
Checklist
developmentbranch.Short description of what this resolves:
Changes proposed in this pull request: