-
Notifications
You must be signed in to change notification settings - Fork 898
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
Add template methods needed for provision report #17884
Add template methods needed for provision report #17884
Conversation
88cc5ed
to
534a1bf
Compare
Checked commit PanSpagetka@534a1bf with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add_label hammer/yes |
if respond_to?(:volume_template?) || respond_to?(:volume_snapshot_template?) | ||
_("N/A") | ||
elsif respond_to?(:deprecated) | ||
_(deprecated.to_s) |
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.
@mzazrivec is this ok?
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.
Yes, as long as deprecated.to_s
is already tagged somewhere for string collection. Otherwise this won't work.
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 is true/false string and it was used before in Views. So i think it should be ok.
@h-kataria do you know if someone else would like to review these changes? |
@miq-bot add_label blocker |
@PanSpagetka as this for a blocker issue, do you have an update on this PR. |
ping @martinpovolny |
…ort-methods Add template methods needed for provision report (cherry picked from commit 67fd66a) https://bugzilla.redhat.com/show_bug.cgi?id=1610927
Hammer backport details:
|
This will break the moment we actually add those methods. Should we not be actually calling (Especially since given those names, those methods should exist on the base class, so that they're always available.) |
@himdel, @PanSpagetka, @lpichler : From the last comment it seems there's some unresolved issue in this PR. Can you, please, take a look into it? |
Everybody ... this is even more problematic :(.... Ruport is using those See ManageIQ/manageiq-ui-classic#4509 (comment) for details. EDIT: confirmed none of the fields changed here are used in the regular Instances or Templates view in the UI, so this does not break those views. It may still break reports (when sorting by such fields), and definitely breaks in the provisioning screen where the columns are used (but which was not using Ruport before ManageIQ/manageiq-ui-classic#4509). So.. the 2 PRs are mutually exclusive now :) (EDIT2: note that just doing EDIT3: Fixed in #18217 :) |
This is needed for report generation in ManageIQ/manageiq-ui-classic#4509
Links [Optional]
https://bugzilla.redhat.com/show_bug.cgi?id=1610927
ManageIQ/manageiq-ui-classic#4509