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

fix(declarative) yaml anchors were not properly processed #7748

Merged
merged 1 commit into from Aug 25, 2021

Conversation

bungle
Copy link
Member

@bungle bungle commented Aug 23, 2021

Summary

The lyaml is used to parse the YAML input. When YAML anchors are used the library optimizes decoding by reusing referenced table. Our generate ids procedure did not take that in the account as explained on issue #7620 by @bforbis. So we ended up inserting the item with same id on SHM on import. And that could also be seen from admin api where it only listed the entity once instead of as many times as it has been used and referenced.

Issues Resolved

Fix #7620

### Summary

The `lyaml` is used to parse the YAML input. When YAML anchors are used
the library optimizes decoding by reusing referenced table. Our generate
ids procedure did not take that in the account as explained on issue
#7620 by @bforbis. So we ended up inserting the item with same id on SHM
on import. And that could also be seen from admin api where it only listed
the entity once instead of as many times as it has been used and referenced.

### Issues Resolved

Fix #7620
@bungle bungle force-pushed the fix/7620-yaml-anchors branch 2 times, most recently from 0cc668e to 1cb4f5a Compare August 25, 2021 17:44
@bungle bungle merged commit 08f9f4e into master Aug 25, 2021
@bungle bungle deleted the fix/7620-yaml-anchors branch August 25, 2021 18:05
kikito pushed a commit that referenced this pull request Aug 31, 2021
### Summary

The `lyaml` is used to parse the YAML input. When YAML anchors are used
the library optimizes decoding by reusing referenced table. Our generate
ids procedure did not take that in the account as explained on issue
#7620 by @bforbis. So we ended up inserting the item with same id on SHM
on import. And that could also be seen from admin api where it only listed
the entity once instead of as many times as it has been used and referenced.

### Issues Resolved

Fix #7620
javierguerragiraldez pushed a commit that referenced this pull request Sep 2, 2021
### Summary

The `lyaml` is used to parse the YAML input. When YAML anchors are used
the library optimizes decoding by reusing referenced table. Our generate
ids procedure did not take that in the account as explained on issue
#7620 by @bforbis. So we ended up inserting the item with same id on SHM
on import. And that could also be seen from admin api where it only listed
the entity once instead of as many times as it has been used and referenced.

### Issues Resolved

Fix #7620

(cherry picked from commit 08f9f4e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin API Does Not Properly List Plugins Created Using YAML Anchors
3 participants