-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix(storage): blob metadata to None regression #10108
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
Conversation
|
|
| """ | ||
| value = {k: str(v) for k, v in value.items()} | ||
| if value is not None: | ||
| value = {k: str(v) for k, v in value.items()} |
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.
value has tag Optional, so it really looks like a regression
Do we need to do the same thing for bucket labels? I don't see Optional tag for them. Still, stringifying was added for them
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.
I think the documentation is incorrect. The code is correct in that the property metadata is optional but should not be optional when setting this value.
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.
Okay, I've deleted Optional tag. As I see, it was added by some kind of a script
| """ | ||
| value = {k: str(v) for k, v in value.items()} | ||
| if value is not None: | ||
| value = {k: str(v) for k, v in value.items()} |
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.
I think the documentation is incorrect. The code is correct in that the property metadata is optional but should not be optional when setting this value.
Fixes #10107