You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No. I cannot contribute this feature at this time.
Proposal Summary
Removal of pydantic deprecations when using v2
Motivation
What is the use case for this feature?
Be prepared and compatible with future pydantic 3.0, make usage of the best practices for current pydantic v2 and reduce the unnecessary warnings during tests of users applications.
Why is this use case valuable to support for MLFlow users in general?
Reduce the unnecessary warnings during tests of users applications when also using pydantic v2.
Why is this use case valuable to support for your project(s) or organization?
Reduce the unnecessary warnings during tests when also using pydantic v2.
Why is it currently difficult to achieve this use case?
As I user I can't modify mlflow code and remove the warnings, which adds difficulty on my debugging of my application.
Details
When running my unit tests application with a pydantic v2 dependency, I get this warnings that are confusing to the development, debugging and cleaning of warnings to be more difficult.
Identified deprecations
using @field_validator instead of @validator
.cache/poetry/virtualenvs/aC6kLp7V-py3.11/lib/python3.11/site-packages/mlflow/gateway/config.py:61
/builds/application/.cache/poetry/virtualenvs/aC6kLp7V-py3.11//lib/python3.11/site-packages/mlflow/gateway/config.py:61: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
using ConfigDict instead of class-based config
.cache/poetry/virtualenvs/aC6kLp7V-py3.11/lib/python3.11/site-packages/pydantic/_internal/_config.py:291
/builds/application/.cache/poetry/virtualenvs/aC6kLp7V-py3.11/lib/python3.11/site-packages/pydantic/_internal/_config.py:291: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
What component(s) does this bug affect?
area/artifacts: Artifact stores and artifact logging
area/build: Build and test infrastructure for MLflow
area/deployments: MLflow Deployments client APIs, server, and third-party Deployments integrations
area/docs: MLflow documentation pages
area/examples: Example code
area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
area/models: MLmodel format, model serialization/deserialization, flavors
Willingness to contribute
No. I cannot contribute this feature at this time.
Proposal Summary
Removal of pydantic deprecations when using v2
Motivation
Be prepared and compatible with future pydantic 3.0, make usage of the best practices for current pydantic v2 and reduce the unnecessary warnings during tests of users applications.
Reduce the unnecessary warnings during tests of users applications when also using pydantic v2.
Reduce the unnecessary warnings during tests when also using pydantic v2.
As I user I can't modify mlflow code and remove the warnings, which adds difficulty on my debugging of my application.
Details
When running my unit tests application with a pydantic v2 dependency, I get this warnings that are confusing to the development, debugging and cleaning of warnings to be more difficult.
Identified deprecations
@field_validator
instead of@validator
ConfigDict
instead of class-basedconfig
What component(s) does this bug affect?
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/deployments
: MLflow Deployments client APIs, server, and third-party Deployments integrationsarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/recipes
: Recipes, Recipe APIs, Recipe configs, Recipe Templatesarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingWhat interface(s) does this bug affect?
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportWhat language(s) does this bug affect?
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrationsThe text was updated successfully, but these errors were encountered: