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

Targeted scope serialization #17408

Merged
merged 10 commits into from
May 14, 2018
Merged

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented May 11, 2018

Modeling targeted_scope as ReferenceStorage and making it serializable.

After merging this, we need to merge these to fix failing CI:
ManageIQ/manageiq-providers-kubevirt#68
ManageIQ/manageiq-providers-vmware#258

Ladas added 9 commits May 10, 2018 16:58
Enhance ReferenceStorage so it's usable for TargetedScope
Turn targeted_scope into ReferenceStorage
Update usage of targeted_scope
Make targeted_scope serialization work
Fix typo in comment
Simplify to_hash serialization condition
Add guard for full reference building.
Make targeted_scope serialization non recursive for now
Test targeted_scope serialization works
@Ladas
Copy link
Contributor Author

Ladas commented May 11, 2018

@miq-bot add_label enhancement
@miq-bot assign @agrare

@miq-bot miq-bot added the wip label May 11, 2018
@Ladas Ladas changed the title [WIP] Targeted scope serialization Targeted scope serialization May 11, 2018
@miq-bot miq-bot removed the wip label May 11, 2018
@@ -74,7 +74,7 @@ def build_full_reference(data, keys)
if data.kind_of?(Hash)
data
else
# assert_index makes sure that only keys of size 1 can go here
raise "Please provide Hash as a reference, :manager_ref count includes more then 1 attribute. keys: #{keys}, data: #{data}" if keys.size > 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo more then -> more than

Fix typo
@miq-bot
Copy link
Member

miq-bot commented May 14, 2018

Checked commits Ladas/manageiq@fc2b8e8~...a0e65d1 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
9 files checked, 0 offenses detected
Everything looks fine. 🍰

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending approval of ManageIQ/manageiq-providers-kubevirt#68

@agrare agrare merged commit 0ead320 into ManageIQ:master May 14, 2018
@agrare agrare added this to the Sprint 86 Ending May 21, 2018 milestone May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants