Skip to content
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

Playbook automate method changes #2114

Merged

Conversation

h-kataria
Copy link
Contributor

@h-kataria h-kataria commented Sep 6, 2017

@tinaafitz
Copy link
Member

@h-kataria Changes look good. I was able to add/update new playbook type method.
screen shot 2017-09-07 at 2 26 36 pm

@gmcculloug
Copy link
Member

@h-kataria From the sceenshot it looks like the "Escalate Privilege" option is missing.

@h-kataria
Copy link
Contributor Author

@gmcculloug, on one of the calls @tinaafitz @syncrou had suggested to only keep Verbosity option on that screen and remove TTL, Escalate Privileges options.

@h-kataria h-kataria force-pushed the playbook_automate_method_changes branch 17 times, most recently from b2c5e2d to c66c22b Compare September 15, 2017 03:07
@h-kataria
Copy link
Contributor Author

@gmcculloug Escalate Privilege checkbox has been added to Playbook method editor.

@h-kataria h-kataria removed the wip label Sep 18, 2017
@h-kataria h-kataria changed the title [WIP] - Playbook automate method changes Playbook automate method changes Sep 18, 2017
@h-kataria
Copy link
Contributor Author

@martinpovolny addressed your comments above

@h-kataria h-kataria force-pushed the playbook_automate_method_changes branch 4 times, most recently from 3ef1466 to f9c8bda Compare October 2, 2017 19:51
Added angular form to be displayed when user selects to add/edit "playbook" type Automate method, all other types are still using old haml form

https://www.pivotaltracker.com/story/show/149747321
Moved couple of common methods to application controller. Removed some unrequired/leftover code

https://www.pivotaltracker.com/story/show/149747321
Fixed minor bug found during testing with validation of input parameter name.

https://www.pivotaltracker.com/story/show/149747321
Added 'playbookReusableCodeMixin' for playbook related common methods.

https://www.pivotaltracker.com/story/show/149747321
Needed to add checks if @angular_form is set to handle screens differently for Playbook type method add/edit.

https://www.pivotaltracker.com/story/show/149747321
- removed a leftover debugging statement from view
- moved methods that should be private to private area

https://www.pivotaltracker.com/n/projects/1613907/stories/149747321
- Made changes to store all API.get promises and resolve them all at once and set afterGet flag to load the form
- Fixed a repositoryChanged method call

https://www.pivotaltracker.com/story/show/149747321
Hoping to fix code climate warning for "Avoid using a variable and instead use chaining with the getter syntax."

https://www.pivotaltracker.com/story/show/149747321
@h-kataria h-kataria force-pushed the playbook_automate_method_changes branch from f9c8bda to d24f423 Compare October 2, 2017 19:51
@miq-bot
Copy link
Member

miq-bot commented Oct 2, 2017

Checked commits h-kataria/manageiq-ui-classic@a23f61d~...d24f423 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
15 files checked, 10 offenses detected

app/controllers/application_controller.rb

app/helpers/view_formatting_helper.rb

app/views/layouts/angular/_ansible_form_options_angular.html.haml

  • ⚠️ - Line 220 - Line is too long. [216/160]

app/views/miq_ae_class/_angular_inputs_form.html.haml

  • ⚠️ - Line 96 - Avoid defining class in attributes hash for static class names
  • ⚠️ - Line 96 - Line is too long. [163/160]
  • ⚠️ - Line 97 - Line is too long. [201/160]
  • ⚠️ - Line 99 - Line is too long. [164/160]

app/views/miq_ae_class/_class_instances.html.haml

  • ⚠️ - Line 14 - Avoid more than 3 levels of block nesting.

@h-kataria
Copy link
Contributor Author

@martinpovolny please re-review, spec test failures are unrelated to changes in this PR

@martinpovolny martinpovolny merged commit 7ed9fbf into ManageIQ:master Oct 3, 2017
@martinpovolny martinpovolny added this to the Sprint 71 Ending Oct 16, 2017 milestone Oct 3, 2017
@h-kataria h-kataria deleted the playbook_automate_method_changes branch October 3, 2017 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants