Skip to content
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

fix: Adapt project_id_exists validator for updated pydantic version #4680

Open
wants to merge 3 commits into
base: v0.40-branch
Choose a base branch
from

Conversation

Prathap-P
Copy link

What this PR does / why we need it:

With pydantic version 2.9.2, values dict inside field validator will have all details like project_id, billing_project_id nested within data, this PR handles that and has one test case to validate.

Which issue(s) this PR fixes:

Fixes #4678

@sudohainguyen
Copy link
Collaborator

hey could fix the lint PR title issue?

for the change, I think need to verify backward compatibility for lower pydantic versions 😄

@Prathap-P Prathap-P changed the title adapt project_id_exists validator for updated pydantic version fix: adapt project_id_exists validator for updated pydantic version Oct 24, 2024
@Prathap-P
Copy link
Author

Done

@Prathap-P Prathap-P changed the title fix: adapt project_id_exists validator for updated pydantic version fix: Adapt project_id_exists validator for updated pydantic version Oct 24, 2024
Signed-off-by: Prathap P <[email protected]>
@Prathap-P
Copy link
Author

Hi @sudohainguyen
I tested with 0.37 and 0.40 and found that project_id_exists validator fails due to pydantic version 2.9.2.
When I was testing with 0.34, there were no issues which is because in that feast version, pydantic was 1.10.18.

Signed-off-by: Prathap P <[email protected]>
@Prathap-P
Copy link
Author

@sudohainguyen Can you approve other flows?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants