8000 Add `Config.val_json_bytes` by josh-newman · Pull Request #9770 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@josh-newman
Copy link
Contributor
@josh-newman josh-newman commented Jun 26, 2024

Change Summary

Update Config with new option added in pydantic/pydantic-core#1308.

Related issue number

None.

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Jun 26, 2024
@codspeed-hq
Copy link
codspeed-hq bot commented Jun 26, 2024

CodSpeed Performance Report

Merging #9770 will not alter performance

Comparing d8e-ai:validate-base64 (1beb296) with main (fe08181)

Summary

✅ 14 untouched benchmarks

@sydney-runkle sydney-runkle added relnotes-feature and removed relnotes-fix Used for bugfixes. labels Jun 27, 2024
Copy link
Contributor
@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! You can use a specific xfail reason argument instead of a comment above :).

We can go ahead and merge this before the corresponding pydantic-core release is out, but could you please provide a screenshot that these tests are passing locally with your branch of pydantic-core?

@sydney-runkle
Copy link
Contributor

Let's add the changes in #9772 to this PR as well :). Thanks!

@josh-newman
Copy link
Contributor Author

Thanks @sydney-runkle, I've updated the xfail reasons and run tests at pydantic/pydantic-core#1308's HEAD:
Screenshot 2024-07-05 at 17 53 35

When pydantic/pydantic-core#1308 is incorporated, cherry-picking d7b2fd2 should fix the tests.

@josh-newman josh-newman marked this pull request as ready for review July 6, 2024 01:08
@sydney-runkle
Copy link
Contributor

Just provided some feedback on pydantic/pydantic-core#1308 (review), thanks for your work here @josh-newman!

Copy link
Contributor
@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! Just a quick note on the docs

@pydantic-hooky pydantic-hooky bot added the awaiting author revision awaiting changes from the PR author label Jul 18, 2024
@sydney-runkle
Copy link
Contributor

Awesome job on getting the tests to pass locally.

We can go ahead and merge this before the corresponding pydantic-core release is out, but could you 8000 please provide a screenshot that these tests are passing locally with your branch of pydantic-core?

I realize, I want to walk this back just a bit - given that this is a new feature and not a bug fix, we'll want to wait for a release. That being said, I can do a minor release of pydantic-core once we get your core PR in (should be quite soon), then immediately merge this one as well.

Sorry for the delay on my review, was out for a long holiday. We're super excited about this new feature and your great work!

@sydney-runkle
Copy link
Contributor

^^ That being said, I'm not worried about the integration tests failing on the pydantic-core end, we can merge that despite the failures knowing that things are working end to end locally.

@sydney-runkle
Copy link
Contributor

I realize, I want to walk this back just a bit - given that this is a new feature and not a bug fix, we'll want to wait for a release. That being said, I can do a minor release of pydantic-core once we get your core PR in (should be quite soon), then immediately merge this one as well.

To elaborate a bit more, in case others are curious in the future: merging this into main would result in new docs being added to our latest page that were a bit inaccurate, as said features wouldn't yet be available. Thus, I think it makes more sense to wait. It's a bit of an awkward dance with things not in one repo, but we definitely appreciate having the PRs open in both pydantic and pydantic-core so that we can see what upstream changes look like.

Copy link
Contributor
@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will wait to merge until we pull the pydantic-core changes in 👍

@sydney-runkle
Copy link
Contributor

Awesome work! Merged into main 🥳 !

@josh-newman
Copy link
Contributor Author

Thanks for the reviews!

@josh-newman josh-newman deleted the validate-base64 branch August 6, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting author revision awaiting changes from the PR author relnotes-feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0