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
Show Configuration Workflows in UI #4138
Show Configuration Workflows in UI #4138
Conversation
50bca7a
to
12cee3c
Compare
Looks good. Restarting travis. |
12cee3c
to
d16e470
Compare
@martinpovolny test failures are due to backend PR not being merged yet. |
@dclarizio @gmcculloug @tinaafitz mostly addressed all the items discussed that were needed in this PR, now we need to change all references to cc @lgalis |
This pull request is not mergeable. Please rebase and repush. |
26a29e5
to
73aaeed
Compare
d8a6e6e
to
b8a92e1
Compare
@martinpovolny please re-review, this is still waiting on core PR merge |
@h-kataria : the style issues in Other than that I have no further comments. Thx! |
Oh, the core PR is still not merged :-( |
Changes to show list of Job Templates and Configuration Workflows in existing UI under Automation/Ansible Tower/Explorer in Templates Accordion. https://bugzilla.redhat.com/show_bug.cgi?id=1590441
- Further changes to update titles on screen and show toolbar buttons when Workflow Template record is selected, and render correct textual summary when printing summary to PDF. - Changes to Catalo Items editor to show grouping in the Template drop down. https://bugzilla.redhat.com/show_bug.cgi?id=1590441
Reverted some of the changes that were made to use ManageIQ/manageiq#17580 and adjusted code to use subclass in ManageIQ/manageiq#17659 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1590441 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1468339
528e87d
to
f8c41a4
Compare
Reverted some of the changes that were made to use ManageIQ/manageiq#17580 and adjusted code to use subclass in ManageIQ/manageiq#17720 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1590441 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1468339
f8c41a4
to
661b789
Compare
00cdb56
to
26ae0c9
Compare
Checked commits h-kataria/manageiq-ui-classic@96b8283~...26ae0c9 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 **
|
@martinpovolny core PR is merged, addressed all rubocop warnings as well. Ready for merge. |
def available_job_templates(manager_id) | ||
@edit[:new][:available_templates] = [] | ||
all_job_templates = ExtManagementSystem.find_by(:id => manager_id).send('configuration_scripts').collect { |t| [t.name, t.id] }.sort | ||
all_workflow_templates = ExtManagementSystem.find_by(:id => manager_id).send('configuration_workflows').collect { |t| [t.name, t.id] }.sort |
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.
@h-kataria method configuration_workflows
does not exist. You need to rework on this PR.
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.
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.
you can just filter what you've got from the previous query all_job_templates
to get the workflows.
(If you are making another call to db to get just the workflows
, that would defeat the purpose of the whole remodeling in configuration_workflow
which is to allow ui to get back both types of objects in one db/api call)
Follow up fix for changes requested in ManageIQ#4138 (review)
Follow up fix for changes requested in ManageIQ#4138 (review)
Follow up fix for changes requested in ManageIQ#4138 (review)
Addressed codeclimate warning Method available_job_templates has a Cognitive Complexity of 6 Follow up fix for changes requested in ManageIQ#4138 (review)
Addressed codeclimate warning Method available_job_templates has a Cognitive Complexity of 6 Follow up fix for changes requested in ManageIQ#4138 (review)
Addressed codeclimate warning Method available_job_templates has a Cognitive Complexity of 6 Follow up fix for changes requested in ManageIQ#4138 (review) https://bugzilla.redhat.com/show_bug.cgi?id=1590441
Changes to show list of Job Templates and Configuration Workflows in existing UI under Automation/Ansible Tower/Explorer in Templates Accordion.
https://bugzilla.redhat.com/show_bug.cgi?id=1590441
before:
after:
Depends on ManageIQ/manageiq#17720