-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: add age_group field in ticket holder model #6744
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
Conversation
Codecov Report
@@ Coverage Diff @@
## development #6744 +/- ##
==============================================
+ Coverage 65.39% 65.4% +0.01%
==============================================
Files 300 300
Lines 15332 15337 +5
==============================================
+ Hits 10026 10031 +5
Misses 5306 5306
Continue to review full report at Codecov.
|
This will accept any string as age group which was never the intention |
@iamareebjamal On the frontend side I have created a dictionary for |
Doesn't matter really. I can set |
Any suggetions whats should be done? |
Add server side validation that the age group is correct |
app/api/helpers/static.py
Outdated
'30 to 39', | ||
'40 to 49', | ||
'50 or above' | ||
] |
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.
no newline at end of file
ae7dbff
to
c99dd86
Compare
app/api/helpers/static.py
Outdated
'40 to 49', | ||
'50 or above' | ||
] | ||
|
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.
blank line at end of file
This should be dynamic but will do it for now |
app/api/helpers/static.py
Outdated
'40 to 49', | ||
'50 or above' | ||
] | ||
|
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.
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.
Multiple Migration Heads
661a9d5
to
6938ec4
Compare
app/api/helpers/static.py
Outdated
'30 to 39', | ||
'40 to 49', | ||
'50 or above' | ||
] |
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.
] | |
] | |
6938ec4
to
8b657ea
Compare
Issues
======
- Added 1
See the complete overview on Codacy |
Fixes #6742
Changes proposed in this pull request:
added
age_group
field in attendee schema and corresponding model.Checklist
development
branch.