Skip to content
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

Merged
merged 3 commits into from
Mar 29, 2024
Merged

Fix phonebook : kinds enum and types file #383

merged 3 commits into from
Mar 29, 2024

Conversation

Rotheem
Copy link
Member

@Rotheem Rotheem commented Mar 20, 2024

Description

Please explain the changes you made here.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the documentation, if necessary

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.28%. Comparing base (7e34933) to head (cd81dc5).

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.
📢 Have feedback on the report? Share it here.

@@ -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(
Copy link
Contributor

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?

Copy link
Member

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

tests/test_phonebook.py Outdated Show resolved Hide resolved
tests/test_phonebook.py Outdated Show resolved Hide resolved
app/modules/phonebook/types_phonebook.py Outdated Show resolved Hide resolved
app/modules/phonebook/types_phonebook.py Outdated Show resolved Hide resolved
@foucblg foucblg merged commit 88654b1 into main Mar 29, 2024
7 checks passed
@foucblg foucblg deleted the fix-phonebook branch March 29, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants