-
Notifications
You must be signed in to change notification settings - Fork 113
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
Support for Pydantic V2 [Planned for Q1 2024] #1603
Comments
I think this is not the right way to do things (or at least not for a long time). While the addition of Besides, many of the things that are doing in So what I would recommend is to support both pydantic v1 and v2 but use only the v1 API, as in #1529. Then in due course convert from pydantic v1 to v2 API, which means you can then use |
kedro-org/kedro-plugins#511 (comment) There is more pressure from upstream dependencies to support Pydantic v2. |
Also to make things clear, supporting Pydantic v2 is not about performance (which for Kedro-Viz will have a negligible impact), but about allowing Kedro-Viz to coexist with Pydantic v2 in the same environment. |
@astrojuanlu Hi, big fan of Kedro (and your latest YouTube video series), trying to convince my organisation to adopt the platform in day-to-day operations. Is it possible for this to be released earlier in 2024 (perhaps Q2 or late Q1?)? Even in a non-stable development version? 2025 Q2 timeframe is a deal-breaker since our tech stack heavily uses Pydantic v2, and if I say to upper management that we'll need to wait to 2025 then I'll be fighting a losing battle when pitching Kedro. Thanks |
Hi @butterlyn , thanks for your kind words! I'm almost sure 2025 is a typo, we definitely want to tackle this in 2024. Watch this space. |
Hi @butterlyn , Thank you for your patience. As @astrojuanlu pointed out, we will be prioritizing pydantic v2 support in Q1, 2024. |
@ravi-kumar-pilla Got the green light to trial Kedro after saying this feature was planned for Q1 2024. Thank you!! 😀 Will prepare to migrate in anticipation of the update |
FYI vizro now supports pydantic 1 and 2 and uses the v1 API throughout - see mckinsey/vizro#189. Don't be put off by the size of the diff in the PR. It was actually very easy to do 🙂 Although we did not have any complications with having FastAPI as a dependency which I know was an issue on kedro-viz. |
@MarkusSagen also proposed migrating to Pydantic v2 in #1719 |
Anything I can help with to speed up the timeline for this? |
@rashidakanchwala any ongoing work that would be blocking this? @MarkusSagen we'd be happy to have an external contribution for this! be mindful that there are several aspects to consider (FastAPI compatibility among them). you can read past discussion in #1529, #1634 |
In any case, let's wait for confirmation from the team - there are a couple of refactors ongoing and it might not make sense for you to open a PR against current |
Thanks for letting me know! |
Hi @MarkusSagen -- we will be doing this work in our next sprint which is Monday onwards. So hopefully we shld get this merged by 3rd or 4th week of Feb. |
For the record, we decide to support V2 only going forward. For pydantic v1 user they should be able to use the older version of kedro-viz. |
Description
Context
Possible Implementation
https://docs.pydantic.dev/2.0/migration/
Timelines - We will work on the migration to pydantic v2 next year (Q1, 2024)
Possible Alternatives
NA
Checklist
The text was updated successfully, but these errors were encountered: