-
Notifications
You must be signed in to change notification settings - Fork 376
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
lyaml: fix alias serialization #9736
Conversation
The tarantool#8350 was introduced by the commit b42302f ("lua-yaml: enable aliasing for objects returned by __serialize") so the patch is effectively reversed. The idea is to call all object __serialize methods recursively before finding references. In the process we need to keep an eye on reference structure of course. Closes tarantool#8350 Closes tarantool#8321 Closes tarantool#8310 NO_DOC=bugfix
aa91fa1
to
b606dac
Compare
@@ -0,0 +1,3 @@ | |||
## bugfix/lua | |||
|
|||
* Fixed yaml alias serialization (gh-8350, gh-8321, gh-8310). |
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 yaml alias serialization (gh-8350, gh-8321, gh-8310). | |
* Fixed serialization of YAML aliases (gh-8350, gh-8321, gh-8310). |
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.
Thank you for the decent work!
I've several topics to discuss together. Please, consider them in the discussion threads below.
@nshy asked me to send my proposal from this comment as a pull request. It is done in PR #9777. |
Closed as superseded by PR #9777 |
The #8350 was introduced by the commit b42302f ("lua-yaml: enable aliasing for objects returned by __serialize") so the patch is effectively reversed.
The idea is to call all object
__serialize()
methods recursively before finding references. In the process we need to keep an eye on reference structure of course.Closes #8350
Closes #8321
Closes #8310