-
Notifications
You must be signed in to change notification settings - Fork 900
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
Enable operations on CloudObjectStoreObject #14080
Conversation
@miha-plesko looks like you have to update schema.yml too |
7714391
to
7ff7812
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.
Note to all, this follows through on the same pattern as #13965
def change | ||
add_column :cloud_object_store_objects, :type, :string | ||
add_index :cloud_object_store_objects, :type | ||
add_index :cloud_object_store_objects, [:ems_id, :type] |
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.
Thanks for the index.
Please drop the :type
index and swap the order of this index
add_index :cloud_object_store_objects, [:type, :ems_id]
7ff7812
to
ae55f85
Compare
29b3dc0
to
64e8b32
Compare
This commit brings support for operations on CloudObjectStoreObject. For now, only delete operation is supported. Signed-off-by: Miha Pleško <[email protected]>
64e8b32
to
81072db
Compare
Checked commit xlab-si@81072db with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
supports_not for delete was added for these objects in ManageIQ#14080 however same PR added "Delete" roles feature. "Delete" button was added to UI counterpart of this PR in ManageIQ/manageiq-ui-classic#497, so in my opinion adding supports_not for delete was incorrect https://bugzilla.redhat.com/show_bug.cgi?id=1497113
This commit brings support for operations on CloudObjectStoreObject. For now, only delete operation is supported. The two new columns
type
andname
have to be there to enable appropriate async task processing.