-
Notifications
You must be signed in to change notification settings - Fork 356
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 support for displaying network adapter details #1654
Conversation
@miq-bot add_label wip |
@miq-bot remove_label wip |
I'm getting the following error when trying to render physical server summary:
|
@skovic Or is there perhaps a backend / provider PR that this change depends on? |
@mzazrivec Yes, there are backend and provider changes that this PR depends on. The changes are in manageiq-providers-lenovo PR 59 and manageiq PR 15371. |
@skovic I'm adding |
Checked commits skovic/manageiq-ui-classic@d8a6242~...6a71859 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/views/physical_server/_textual_network_adapter_table.html.haml |
@skovic : this looks all good and mergeable 👍 However there's one thing that would help us in the future. The textual summaries are to be converted to Angular in the future and at that point they are going to be rendered on the client side and the data will be passed in as JSON. To make that simpler I tried to limit the number of different Could you, please, take a look if any of the If you figure that none of the existing templates provides the formatting that you need, then just ping me here and we merge this as it is. But, please, take a look. |
@skovic Can you checkout |
@AparnaKarve I'm not sure that TextualMultilabel will be able to give me the same layout as shown in the screenshot (in regard to the ports heading and related subheadings). Also FYI, I think that the TextualMultilabel template may need to be updated. I tried using it but it keeps saying undefined variable or method 'values'. I notice that the other templates are using 'items' instead. Also, there is a typo ".pull-rigt" instead of ".pull-right" in the file. Thanks |
@skovic I recently used TextualMultilabel in https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/helpers/generic_object_definition_helper/textual_summary.rb, and did not have any issues for my use case. The typo that you indicated, needs to be fixed, however. From the screenshot above, perhaps the @martinpovolny IMO, GTG. |
@martinpovolny Hi, it seems that these changes has been approved long ago. @skovic, I understand that we will have to wait until ManageIQ/manageiq#15371 is merged (the other one has already been merged). |
The problem is: Any new formatting added here will need to be supported when we convert this to a an angular component and when we feed in the data through some API. I have spent significant time unifying the layouts and methods of the textual summaries so that we can do the next steps -- components and API. I don't want that effort to be wasted. Therefor I need to be really sure that there's no other way than adding a new layout. |
Updated the physical server summary page to display details for network adapters.