-
Notifications
You must be signed in to change notification settings - Fork 112
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
Migrate Viz to use Pydantic V2 #1743
Conversation
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
It's happeninggggggggg |
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
Fantastic!! |
package/requirements.txt
Outdated
@@ -2,7 +2,7 @@ packaging~=23.0 | |||
kedro>=0.18.0 | |||
ipython>=7.0.0, <9.0 | |||
fastapi>=0.73.0,<0.200.0 | |||
pydantic<2 | |||
pydantic>=2 |
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.
Do we need to put this, or should we just bump the minimum version of fastAPI ?
…irements Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
@@ -13,4 +13,3 @@ strawberry-graphql==0.192.0 | |||
networkx==2.5 | |||
orjson==3.9 | |||
secure==0.3.0 | |||
pydantic==1.10 |
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 seems different from the discussion in #1603. Just to confirm, we are dropping Pydantic v1 support altogether now.
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.
yes we are dropping support for pydantic v1 as there are issues with the v1 api mentioned here and an open PR - https://github.com/tiangolo/fastapi/pull/10223/files
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.
Thank you for the PR, @ravi-kumar-pilla . LGTM! Let's move on to v2! 🎉 🎉
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 work ! thanks @ravi-kumar-pilla
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: ravi-kumar-pilla <ravi_kumar_pilla@mckinsey.com>
Description
Resolves #1603
Development notes
bump-pydantic
tool@validators
to@field_validators
QA notes
kedro viz run
should work as expectedNote: Observed flowchart node arrangements change (mirrored) due to the migration, though the data remains un-affected as below -
Before Migration:
After Migration:
Checklist
RELEASE.md
file