Skip to content
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 miq_expression setter to MiqAlert #16397

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

zakiva
Copy link
Contributor

@zakiva zakiva commented Nov 6, 2017

Adding type coercion for miq_expression column.
This will allow us to create alerts via API with miq_expression by passing a hash instead of creating the miq expression object on the API side.
This is part of adding hash_hexpression to the alert definitions API in ManageIQ/manageiq-api#76.

@miq-bot
Copy link
Member

miq-bot commented Nov 6, 2017

Checked commit zakiva@ee1d420 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@zakiva
Copy link
Contributor Author

zakiva commented Nov 6, 2017

@miq-bot add_label enhancement, alerts

@zakiva
Copy link
Contributor Author

zakiva commented Nov 6, 2017

@simon3z @moolitayer @imtayadeway Please review

@zakiva
Copy link
Contributor Author

zakiva commented Nov 6, 2017

cc @elad661

@moolitayer
Copy link

Adding type coercion for miq_expression column.
This will allow us to create alerts via API with miq_expression or with hash_hexpression.

iiuc:

This will allow us to create alerts via the API by passing a hash for miq_expression
(not related to hash expression right?)

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@zakiva
Copy link
Contributor Author

zakiva commented Nov 6, 2017

This will allow us to create alerts via the API by passing a hash for miq_expression
(not related to hash expression right?)

Correct. I meant it is part of adding the hash expression option to the API, I will rewrite that :)

@gtanzillo gtanzillo added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 14, 2017
@gtanzillo gtanzillo merged commit bda23f4 into ManageIQ:master Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants