-
Notifications
You must be signed in to change notification settings - Fork 141
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 create action for templates #337
Add create action for templates #337
Conversation
@abellotti could you review? |
This pull request is not mergeable. Please rebase and repush. |
api_basic_authorize(action_identifier(:cloud_templates, :create, :subcollection_actions)) | ||
ems = FactoryGirl.create(:ems_cloud) | ||
|
||
post(api_provider_cloud_templates_url(nil, ems), :params => { :name => "test-image" }) |
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.
maybe additional template parameters, like location and vendor, have a more complete sample template. Thanks.
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.
Added
looks good, maybe extend test. also conflict, so rebase/repush. thanks. |
4f21089
to
e900ca7
Compare
@andyvesel there seems to be a merge conflict, can you rebase/resolve/push ? Thanks. |
@abellotti hm, I've resolved it some time ago, but the label is still there. I shall remove it manually |
@miq-bot remove_label unmergeable |
still conflicting here, issue is the api.yml, it's no longer seeing the delete action |
5f473f3
to
030bbf2
Compare
030bbf2
to
f7864ad
Compare
Checked commits andyvesel/manageiq-api@c3ca050~...f7864ad with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/controllers/api/subcollections/cloud_templates.rb
|
Thanks @andyvesel for the API Enhancement !! 👍 |
@andyvesel , @abellotti to be able to actually use this API endpoint, we will also need an identical one for non-cloud images (MiqTemplate really). The UI form needs to be able handle both, so we need API endpoints for both. Can you take care of this? Should I create an issue? Do I have to implement it first? :) EDIT: sorry, this should have been on the update PR Also, there is currently no documentation for this endpoint, making it impossible to use, since we don't have any examples. |
Issue is fine so we don't lose track, PRs are always welcomed and preferred of course 😉 /cc @gtanzillo |
Thanks, created #381 :). (I definitely won't get to it this week, a week or two after that, I may have to :).) |
Added
create
action for images to APIhttps://bugzilla.redhat.com/show_bug.cgi?id=1487114
Depends on:
ManageIQ/manageiq#17089