-
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
[WIP] Use a single view for rendering all the topology screens #942
Conversation
Accessing the values declared using the DSL is realised by For example, in the controller: angular_controller 'cloudTopologyController' # gets stored in @ng_controller Accessing it in the view: controller.ng_controller I'm not sure if this is The Right Way™ as it uses a pair of method-instvar with a different name, so I'd like to ask @martinpovolny and @himdel to review this. |
Yup, I think this looks like a step in the right direction :) (assuming we do it for all of them :)) |
4103769
to
3b11fcf
Compare
Yes, for all or don't do it! The last thing we want is having 2 ways of doing things. I was also thinking about not having the (ruby) controllers for topology -- having just one for all. Although that might complicate menus, toolbars and other things that |
I want this for all the screens, of course! But we already have 2 ways of doing things 😞 the container topology is using some ✨ magic ✨ with the toolbars to build their toolbar and the others have a common partial for the same. So that needs to be addressed first... I was thinking about creating a PR for each screen and then delete the |
3b11fcf
to
e70f460
Compare
e70f460
to
7698719
Compare
7698719
to
9197222
Compare
Checked commits skateman/manageiq-ui-classic@b040b6c~...9197222 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Missed Middleware topology ;) aand also ContainerProjectTopology which is apparently new and |
This pull request is not mergeable. Please rebase and repush. |
@miq-bot add_label topology |
I found out that the topology screens only differ in the entities in their legend and the angular controller name. I created a simple DSL to declare these values in the ruby controller and I moved the universal show screen into
layouts/topology.html.haml
.Depends on: #955
Pivotal story: https://www.pivotaltracker.com/n/projects/1613907