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

feat: support Pydantic V2 #281

Merged
merged 16 commits into from
Feb 23, 2024
Merged

feat: support Pydantic V2 #281

merged 16 commits into from
Feb 23, 2024

Conversation

AtomHare
Copy link
Contributor

@AtomHare AtomHare commented Nov 6, 2023

Description

This PR adds the necessary modifications in order to support Pydantic breaking changes !

HOWEVER, do not use in production already, please test it thoroughly to verify that everything is working.

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.30%. Comparing base (2202378) to head (864f076).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
- Coverage   78.56%   78.30%   -0.26%     
==========================================
  Files          78       78              
  Lines        5482     5435      -47     
==========================================
- Hits         4307     4256      -51     
- Misses       1175     1179       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This comment was marked as resolved.

@armanddidierjean armanddidierjean added the dependencies Pull requests that update a dependency file label Nov 6, 2023
@Pokegali Pokegali mentioned this pull request Nov 13, 2023
Copy link
Member

@armanddidierjean armanddidierjean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating new loan items does not work with Titan:

  • on creation Hyperion send a 201 but Titan raise an error
  • on getting items Titan raise an error "get a string instead of float"

@armanddidierjean
Copy link
Member

armanddidierjean commented Jan 14, 2024

Do you think you could write a migration file to change the Interval to an Int in the database @Rotheem?
Capture d’écran 2024-01-14 à 19 55 03

The change is introduced in 5430c17

app/endpoints/amap.py Show resolved Hide resolved
app/schemas/schemas_loan.py Show resolved Hide resolved
app/schemas/schemas_notification.py Show resolved Hide resolved
Copy link
Member

@armanddidierjean armanddidierjean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't test the PR, but the code looks good to me

@guillaumetavernier guillaumetavernier merged commit 3cb0984 into main Feb 23, 2024
7 checks passed
@guillaumetavernier guillaumetavernier deleted the pydantic-update branch February 23, 2024 10:11
guillaumetavernier pushed a commit that referenced this pull request Feb 29, 2024
### Description

This PR moves all module-related files to `/app/modules`, and each
module has its own directory.
It also makes modules declare their own module object.


Note: it is based on pydantic v2
(#281).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants