-
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
Generic Object Definition Actions #37
Generic Object Definition Actions #37
Conversation
This pull request is not mergeable. Please rebase and repush. |
Hi! It looks like your PR has been affected by the recently merged #40, and as a result will need to be rebased. First, I apologize for any inconvenience caused. After rebasing, you'll need to update some specs in order for them to pass. In particular you'll need to change any path helpers, applying the following pattern:
If you run into any issues, please ping me and I will try to help you out. Many thanks! |
Hi @jntullo maybe add the :forbidden result cases for each of the new action in case they don't have the right role. |
go_def.destroy! | ||
rescue => err | ||
raise BadRequestError, "Failed to delete generic object definition - #{err}" | ||
end | ||
|
||
def add_attributes_resource(type, id, data) | ||
go_def = fetch_generic_object_definition(type, id, data) | ||
attributes = data['attributes'] || data['resource']['attributes'] |
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.
isn't this handled by the base class, ie. if data['resource'] exists, that will be the data coming in ?
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.
@abellotti not in the case where the id is the name of the generic object
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.
👍
check permissions
@abellotti whoops, missed that. this should make them 🍏 😄 |
Checked commit jntullo@e4e5adb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks @jntullo for the update. LGTM!! 👍 |
Generic Object Definition Actions
Dependent upon ManageIQ/manageiq#15893
@miq-bot add_label enhancement, wip
@miq-bot assign @abellotti
General Usage Information
Examples
add_attributes
remove_attributes
add_methods
remove_methods
add_associations
remove_associations