-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix phonebook : kinds enum and types file #383
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #383 +/- ##
==========================================
- Coverage 80.47% 80.28% -0.20%
==========================================
Files 86 86
Lines 5766 5766
==========================================
- Hits 4640 4629 -11
- Misses 1126 1137 +11 ☔ View full report in Codecov by Sentry. |
@@ -25,7 +25,19 @@ def upgrade() -> None: | |||
sa.Column("id", sa.String(), nullable=False), | |||
sa.Column("name", sa.String(), nullable=False), | |||
sa.Column("description", sa.String(), nullable=True), | |||
sa.Column("kind", sa.String(), nullable=False), | |||
sa.Column( |
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.
Isn't it possible to use the enum define in type rather than hard code values twice?
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'm not completely sure. If we change the enum in the future, we don't what changes to have an impact on existing migration files
Description
Please explain the changes you made here.
Checklist