-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upgrade agent service (Pydantic v2) #6508
Upgrade agent service (Pydantic v2) #6508
Conversation
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## pydantic_v2_migration #6508 +/- ##
=======================================================
Coverage ? 97.8%
=======================================================
Files ? 13
Lines ? 324
Branches ? 0
=======================================================
Hits ? 317
Misses ? 7
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -187,9 +188,8 @@ def caplog_info_debug( | |||
|
|||
|
|||
@pytest.fixture(scope="module") | |||
def mocked_s3_server_url(mocked_aws_server: ThreadedMotoServer) -> HttpUrl: | |||
def mocked_s3_server_url(mocked_aws_server: ThreadedMotoServer) -> HttpUrlLegacy: |
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.
This HttpUrlLegacy
has been introduced to be compliant with the previous HttpUrl
(Pydantic v1). It solves the issue with the trailing slash.
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.
Thanks! looks good.
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.
thx. go, go, go ... :-)
# via pydantic | ||
fastapi==0.96.0 | ||
fastapi==0.115.0 |
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.
OK so we also upgrade fastapi to the latest?
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.
Yup!
329b00d
into
ITISFoundation:pydantic_v2_migration
What do these changes do?
Upgrades the agent service to Pydantic v2.
Related issue/s
How to test
Dev-ops checklist