-
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
Support operation clear
on CloudObjectStoreContainer
#498
Conversation
@miq-bot add_label enhancement,wip |
18fe2c7
to
880d1a4
Compare
This pull request is not mergeable. Please rebase and repush. |
To `clear` Container means to remove all objects from it. Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
880d1a4
to
524fe8c
Compare
clear
on CloudObjectStoreContainer
Some comments on commit miha-plesko@524fe8c spec/controllers/application_controller/ci_processing_spec.rb
|
Checked commit miha-plesko@524fe8c with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 spec/controllers/application_controller/ci_processing_spec.rb
|
@h-kataria I'd kindly ask you to look at this change. It's been a while since opened and we managed to merge all its dependencies by now so I think it's perfect time to push it forward. @miq-bot assign @h-kataria |
else | ||
display_name = _(task.capitalize) | ||
method = task = "#{klass.name.underscore.to_sym}_#{task}" | ||
end | ||
|
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.
A change in this file is needed due to naming inconsistency in the backend:
- for operation
params[:pressed] == "cloud_object_store_container_delete"
the supports? task name is ":delete" and method to be executed is "delete_cloud_object_store_container" - for operation
params[:pressed] == "cloud_object_store_container_clear"
the supports? task name is ":cloud_object_store_container_clear" and method to be executed is "cloud_object_store_container_clear".
I expect other operations to follow second convention therefore I made it default.
codeclimate errors on this PR will be worked on during refactoring tasks. |
changes look good. |
To
clear
CloudObjectStoreContainer means to remove all CloudObjectStoreObjects from it. This option is available from three views:CloudObjectStoreContainer list
CloudObjectStoreContainer details
CloudObjectStoreContainer per-storage-manager list
Depends on:
delete
on CloudObjectStoreContainer #420 (merged)clear
on CloudObjectStoreContainer manageiq#14082 (merged)