-
Notifications
You must be signed in to change notification settings - Fork 357
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
Angular Form with REST API calls for Playbook Service Template type. #262
Angular Form with REST API calls for Playbook Service Template type. #262
Conversation
This pull request is not mergeable. Please rebase and repush. |
d933dfa
to
958d5be
Compare
Need to grab changes from ManageIQ/manageiq#13820 to be able to see "Ansible Playbook" entry in the Catalog Item type drop down when adding a new Catalog Item. |
Is label |
f3cef87
to
2e3de74
Compare
@bzwei updated label on the Key/Value Pairs table. |
6be21e2
to
1b2a6f7
Compare
@h-kataria Please change label |
1b2a6f7
to
e692c54
Compare
This is a work in Progress, changes in this PR load an Angular form that consumes REST API to populate/save data in form when user tries to add an 'Ansible Playbook' type Service Template or edit an existing 'Ansible Playbook' type Service Template. https://www.pivotaltracker.com/story/show/138302747
Also fixed adding/editing of key/value pairs fields in the form, changed label from "Key Value Pairs" to "Variables and Default values" https://www.pivotaltracker.com/story/show/138302747
Made changes to mark fields on Provisioning tab as required fields, fields on Retirement tab are not required for now. https://www.pivotaltracker.com/story/show/138302747
Did some cleanup of redundant code. Added changes to consume API to populate and when add/save form buttons are clicked. Added cloud type drop down to the form to be able to show cloud credentials for only selected type. https://www.pivotaltracker.com/story/show/138302747
f53149a
to
22ee313
Compare
Made changes to disable save/reset form button on initial load of Edit form https://www.pivotaltracker.com/story/show/138302747
22ee313
to
2f6125b
Compare
@himdel @martinpovolny @gmcculloug ready for review. |
179ac25
to
091c1db
Compare
minor cleanup to address rubocop warnings. Fixed nil error on edit screen https://www.pivotaltracker.com/story/show/138302747
091c1db
to
f90a520
Compare
@himdel @martinpovolny please review this is an Ansible PR |
@h-kataria: with my limited Angular skills I see that you use the API, which is very cool! 👍 We need more people writing the UI code this way. But I have noticed that you use the |
@h-kataria Agreed, I think this looks good :) (@martinpovolny, this is using I think there will be some code climate issues though, mostly that we should prefer Also, the list of provider types should probably come from the API at some point instead of being hardcoded here, but not sure if possible right now... |
@himdel getting list of Cloud credential types is being worked on, i will be making more changes in a follow up PR once API PR gets merged. |
Fixed Hosts form field to save/display data. https://bugzilla.redhat.com/show_bug.cgi?id=1422449
Checked commits h-kataria/manageiq-ui-classic@3c5455c~...d39b62c with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/controllers/catalog_controller.rb
app/views/catalog/_st_angular_form.html.haml
app/views/layouts/angular/_ansible_form_options_angular.html.haml
app/views/layouts/angular/_multi_tab_ansible_form_options.html.haml |
Tested PR and looks good. Will need some followup PRs to limit resources but this is great progress and will help others get started with testing. Leave it to the UI team to determine when this is ready to merge. |
@himdel @martinpovolny @dclarizio can you please merge, if it looks good to you guys. |
This is a work in Progress, changes in this PR load an Angular form that consumes REST API to populate/save data in form when user tries to add an 'Ansible Playbook' type Service Template or edit an existing 'Ansible Playbook' type Service Template.
https://www.pivotaltracker.com/story/show/138302747
cc @lgalis