-
Notifications
You must be signed in to change notification settings - Fork 62
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 graph refresh fetching custom attributes #211
Conversation
463331b
to
c4025c3
Compare
@@ -131,6 +131,23 @@ def root_folders(extra_attributes = {}) | |||
attributes.merge!(extra_attributes) | |||
end | |||
|
|||
def custom_attributes(extra_attributes = {}) |
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.
Why not to update here instead.
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 am not sure what else the core part is used for, I will ask @Ladas + its faster to merge.
@@ -5253,6 +5253,12 @@ https://localhost:8443/ovirt-engine/api/vms/3a9401a0-bf3d-4496-8acf-edd3e903511f | |||
</topology> | |||
</cpu> | |||
<cpu_shares>0</cpu_shares> | |||
<custom_properties> |
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.
Please align it with existing content
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.
sure, actually it does not work for some reason, I will probably delete this part.
@@ -5380,6 +5386,13 @@ https://localhost:8443/ovirt-engine/api/vms/3a9401a0-bf3d-4496-8acf-edd3e903511f | |||
</topology> | |||
</cpu> | |||
<cpu_shares>0</cpu_shares> | |||
<custom_properties> |
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.
As above
@@ -131,6 +131,23 @@ def root_folders(extra_attributes = {}) | |||
attributes.merge!(extra_attributes) | |||
end | |||
|
|||
def vm_and_template_ems_custom_fields(extra_attributes = {}) |
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.
@agrare do you think we should update here or move this change to core repo?
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.
it's ok to update it here, so the backport is easier
then for the upstream, we should push this to core and see if it aligns correctly with other Infra managers
2e7a14f
to
af09e2a
Compare
7c5c4d1
to
ba8742c
Compare
183aa18
to
1c7ffc7
Compare
Graph refresh fixed to fetch the custom attributes for both full and targeted refresh. Fix: https://bugzilla.redhat.com/show_bug.cgi?id=1546792
Some comments on commit borod108@bcb84da spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_custom_attributes_spec.rb
|
Checked commit borod108@bcb84da with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 **
app/models/manageiq/providers/redhat/infra_manager.rb
|
@masayag please review |
@Ladas please review |
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.
looks great 👍
@simaishi Satoe, could you please backport to 5.9? |
@miq-bot add_label bug |
Fix graph refresh fetching custom attributes (cherry picked from commit 8f9f225) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1559624
Gaprindashvili backport details:
|
Graph refresh fixed to fetch the custom attributes for both full and targeted refresh.
Fix: https://bugzilla.redhat.com/show_bug.cgi?id=1546792