Skip to content

fix: Adapt project_id_exists validator for updated pydantic version - #4680

Merged
franciscojavierarceo merged 3 commits into
feast-dev:v0.40-branchfrom
Prathap-P:v0.40-branch
Sep 29, 2025
Merged

franciscojavierarceo merged 3 commits into
feast-dev:v0.40-branchfrom
Prathap-P:v0.40-branch

Conversation

@Prathap-P

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Prathap P <Prathap.P@walmart.com>
@sudohainguyen

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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 <Prathap.P@walmart.com>
@Prathap-P

Copy link
Copy Markdown
Contributor 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 <Prathap.P@walmart.com>
@Prathap-P

Copy link
Copy Markdown
Contributor Author

@sudohainguyen Can you approve other flows?
Thanks

@Prathap-P

Prathap-P commented Dec 2, 2024 •

Copy link
Copy Markdown
Contributor Author

Hi @sudohainguyen
Integration tests are failing due to reason
Local Docker Compose not found. Is docker-compose on the PATH?.
My change doesn't have anything related to docker configs, can you help on this?

@redhatHameed

Copy link
Copy Markdown
Contributor

@Prathap-P maybe try rebase again, let's see if that fixed the pipeline issue. Thanks

@Prathap-P

Copy link
Copy Markdown
Contributor Author

@redhatHameed You mean to rebase against v0.40-branch?
It's already up to date

@franciscojavierarceo
franciscojavierarceo merged commit 524e98c into feast-dev:v0.40-branch Sep 29, 2025
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.

5 participants