-
Notifications
You must be signed in to change notification settings - Fork 70
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
Csse layout 550 error #357
Conversation
Requesting review @davidbrownell, @krachwal, @rfievet, @ketanbj, @varun646, @jyoung3131 |
dself = self.dict() | ||
if version == 2: | ||
# remove harmless empty error field that v2 won't accept. if populated, pydantic will catch it. | ||
if dself.pop("error", None): |
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.
Consider removing the if statement (since it doesn't do anything) and change to dself.pop("error", None)
.
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.
fixed here and two other spots in next PR
* remove v2.Result.error field * convert subresults for error field in procedures * enforce success in v2. test success * surveys schema_version and extras * round out survey checks for now * atspec no ver * skip a couple tests on py37 * more fixes * fix selector * py37 * another
Description
v2.<>Result.error
field and forgive its empty presence inv1.<>Result.convert_v()
fnv2.<>Result
andv2.FailedOperation
schema_version
stamping instead of popping the version was convenient for theconvert_v
function when v1 and v2 were same layout. but the pop strategy might be better long-haul.Changelog description
Status