-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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(python-cdk): Ensure at least one element returned by decoder #43043
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
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.
LGTM!
This solution is preferable since there are other places where decoder is used.
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 also looks good to me. Thanks!
CATs for shopify are failing but the error is the same as the ones on master in the previous days and should be fixed with #42973. The Hence, we will merge this change even with the red in the CI. |
/approve-regression-tests
|
What
Another proposition for #43018
This P1 shows a bug where if the response is an empty list, this line will break with a stop iteration. The interface is not meant to raise a
StopIteration
error and the user should always expect to have at least one answer. This is my hypothesis based on this case hence, we will perform the same behavior on empty lists.How
If the response is an empty list, return a generator that will have only one empty dictionary
User Impact
This should fix the P1 issue.
Can this PR be safely reverted and rolled back?