-
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 Web Server service (Pydantic v2) #6584
⬆️ Upgrade Web Server service (Pydantic v2) #6584
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pydantic_v2_migration_do_not_squash_updates #6584 +/- ##
===============================================================================
- Coverage 71.63% 68.83% -2.81%
===============================================================================
Files 1100 954 -146
Lines 49250 42328 -6922
Branches 1390 1300 -90
===============================================================================
- Hits 35281 29136 -6145
+ Misses 13736 12968 -768
+ Partials 233 224 -9
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
…1/upgrade-web-server-service
…rloromeo/osparc-simcore into is4481/upgrade-web-server-service
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.
great job! thanks!
packages/models-library/src/models_library/api_schemas_directorv2/clusters.py
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_directorv2/clusters.py
Outdated
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_webserver/auth.py
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_webserver/clusters.py
Show resolved
Hide resolved
last_page = ceil(total / limit) - 1 | ||
|
||
data = [item.model_dump() if hasattr(item, "model_dump") else item for item in chunk] | ||
|
||
return PageDict( | ||
_meta=PageMetaInfoLimitOffset( | ||
total=total, count=len(chunk), limit=limit, offset=offset | ||
total=total, count=len(data), limit=limit, offset=offset | ||
), |
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.
not sure I understand that change. chunk is a list, so why does it need a change?
packages/pytest-simcore/src/pytest_simcore/hypothesis_type_strategies.py
Show resolved
Hide resolved
…rv2/clusters.py Co-authored-by: Sylvain <[email protected]>
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 have some concerns that might cause issues. Please see them below.
packages/models-library/src/models_library/api_schemas_directorv2/clusters.py
Outdated
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_webserver/projects.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/dynamic_scheduler/settings.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/payments/_methods_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/studies_dispatcher/_catalog.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/users/_schemas.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/users/_schemas.py
Outdated
Show resolved
Hide resolved
packages/models-library/src/models_library/api_schemas_directorv2/clusters.py
Show resolved
Hide resolved
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!!
packages/models-library/src/models_library/api_schemas_webserver/auth.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/announcements/_models.py
Outdated
Show resolved
Hide resolved
@@ -54,7 +63,7 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings): | |||
# CODE STATICS --------------------------------------------------------- | |||
API_VERSION: str = API_VERSION | |||
APP_NAME: str = APP_NAME | |||
API_VTAG: VersionTag = parse_obj_as(VersionTag, API_VTAG) | |||
API_VTAG: VersionTag = TypeAdapter(VersionTag).validate_python(API_VTAG) |
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.
MINOR: in next PRs we can refactor all ApplicationSettings
to inherit from settings_library.application.BaseApplicationSettings
. That base class includes all env vars expected from the Dockerfile
services/web/server/src/simcore_service_webserver/application_settings.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/products.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/director_v2/_models.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/director_v2/_models.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/dynamic_scheduler/settings.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/security/_authz_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/studies_dispatcher/_catalog.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/users/_schemas.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
8402270
into
ITISFoundation:pydantic_v2_migration_do_not_squash_updates
What do these changes do?
Upgrade the Web Server service to Pydantic v2.
Related issue/s
How to test
Dev-ops checklist