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

🐛 Separate v4 req vals checks by output type. Resolves #177 #178

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

annakrystalli
Copy link
Member

This PR fixes the bug reported in #177 . It appeared that the new logic behind optional output types having all required values was not being handled properly and as a result evaluations of different output types were leaking into checks of other output types returning non-sensical false positives.

Given the fact that in v4 we have a much easier way of determining whether an output type should be examined (all is_required + any optional output type submitted, an optimisation I was planning to make to reduce memory pressure and speed up required value validation was to chunk the evaluation by output type, sth that was not possible with v3. Turns out this optimisation also keeps things clean and fixes the bug reported in #177! Double win!

Copy link

github-actions bot commented Dec 12, 2024

Copy link
Member

@zkamvar zkamvar left a 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 quick turnaround on this! The solution (checking each output type individually) makes sense and the test is clear. And I like that you included the issue number in the tests.

At some point I'd like to pick your brain about how these checks work and why this approach can only work for v4, but that's for later.

@zkamvar zkamvar merged commit 48037a3 into main Dec 12, 2024
8 checks passed
@zkamvar zkamvar deleted the ak/debug-v4-req-vals/177 branch December 12, 2024 14:42
@zkamvar zkamvar mentioned this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants