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
Display assets detail #1224
Display assets detail #1224
Conversation
86e907b
to
c323c0f
Compare
= render :partial => "layouts/flash_msg" | ||
.row | ||
.col-md-12.col-lg-6 | ||
= render :partial => "shared/summary/textual", :locals => {:title => _("Properties"), :items => textual_group_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.
This is not how it is done any more. Please, see #274 that includes many examples on how to define the groups.
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.
OK, Just fixed it.
This pull request is not mergeable. Please rebase and repush. |
This pull request is not mergeable. Please rebase and repush. |
@@ -2,5 +2,7 @@ | |||
- arr = %w(physical_server physical_servers) | |||
- if arr.include?(@display) && @showtype != "compare" | |||
= render(:partial => "layouts/gtl", :locals => {:action_url => "show/#{@ph_server.id}"}) | |||
- elsif @showtype == 'main' | |||
= render :partial => "layouts/textual_groups_generic" | |||
- else | |||
= render(:partial => @showtype) |
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, don't do this:
render(:partial => @showtype)
I guess you don't need the else branch at all. And if you do, then list all the @showtype
values explicitly. It's hard to figure the possible values for @showtype
later on and it is a dangerous practice. If user data would reach @showtype
then this can lead to a security issue.
I bet you can just remove it for you case.
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've just removed it.
6f1f39e
to
02d035c
Compare
@@ -33,7 +33,7 @@ def show_list | |||
end | |||
|
|||
def textual_group_list | |||
[] | |||
[%i(properties relationships assets)] |
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.
Cannot test assets
in the UI since it has too many dependencies that are not merged in yet.
This depends on ManageIQ/manageiq-providers-lenovo#43 which depends on ManageIQ/manageiq#14827.
I recommend taking assets
out for now until the above PRs are merged... and make this PR about only properties
and relationships
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.
Wait, looks like textual_group_properties
and textual_group_relationships
are already merged here 90e3a5a
Ideally, that commit should have had [%i(properties relationships)]
Could you make a separate PR that would just have [%i(properties relationships)]
in textual_group_list
as a follow-up to #1295.
/cc @gabrielsvinha
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.
#1272 can address the above. No need for a separate PR to add [%i(properties relationships)]
.
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 like we also have #1294 that can address the above.
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 believe the branch that originated this Pull Request is behind master (that already have these changes)
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 think this should come as a follow up to #1294
This pull request is not mergeable. Please rebase and repush. |
02d035c
to
afe78f4
Compare
This pull request is not mergeable. Please rebase and repush. |
aaf62a9
to
64c3661
Compare
64c3661
to
aaf62a9
Compare
This pull request is not mergeable. Please rebase and repush. |
aaf62a9
to
daed4ad
Compare
This pull request is not mergeable. Please rebase and repush. |
Fixed rubocop issues Fixed rubocop issues
5041a97
to
ca99634
Compare
Checked commits MaysaMacedo/manageiq-ui-classic@36f2517~...ca99634 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
ca99634
to
777cc6d
Compare
@martinpovolny Didn't this PR have a spec failure? |
@AparnaKarve : Was I trigger happy? Sorry for that! |
@martinpovolny No worries. |
This PR is able to:
Depends on: