-
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 Copy option to Catalog Item/Bundle #5667
Conversation
87873b8
to
1b25a35
Compare
ce7138f
to
2cf99cd
Compare
9ff1e21
to
db47ee7
Compare
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 have prefilled name in the form like "Copy of X", but form in initial state can't be submitted (Add button is disabled).
|
||
handleError = (error) => { | ||
const { data: { error: { message } } } = error; | ||
return !!message ? message : __('There was an error in copying. Item is not valid or Ansible.'); |
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.
This error message is little bit confusing. I needed to read it several times to understand it correctly.
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.
@ZitaNemeckova maybe message should be "Selected Catalog Bundle or Ansible Playbook Items can not be copied."
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.
I went with Selected item can not be copied. Because it's Ansible Playbook or not valid.
db47ee7
to
df6c3c4
Compare
b8e2671
to
6e11493
Compare
@miq-bot remove_label wip |
@ZitaNemeckova it seems to be working pretty good. Minor issues noticed
|
f4f0ddb
to
97e3000
Compare
Checked commits ZitaNemeckova/manageiq-ui-classic@97d6abf~...97e3000 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 app/controllers/catalog_controller.rb
|
@h-kataria Fixed first point. About the second I still think that leaving trailing/leading blank spaces is ok. Fixing it would probably create more trouble. |
@ZitaNemeckova @d-m-u found another issue, when copying a catalog item, it's additional Tenant information does not get copied. |
@d-m-u Can you add the additional tenant information @h-kataria mentioned above? |
verified in UI. Looks good. |
Go to Services -> Catalogs -> Catalog Items -> select one -> Configuration -> Copy this Item
Backend PR(merged) ManageIQ/manageiq#18464 . Only valid and non-
ServiceTemplateAnsiblePlaybook
items can be copied.Not all attributes are copied. Tracked in ManageIQ/manageiq#18949
It's not possible to copy a copy with custom buttons. Tracked in ManageIQ/manageiq#18954 => Fixed in ManageIQ/manageiq#18960
Toolbar:
Form:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1678149
@miq-bot add_label wip