Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Changing bracket syntax for method/attribute syntax in update_alerts #39

Merged
merged 1 commit into from
Sep 6, 2017

Conversation

israel-hdez
Copy link
Member

Because of:

Usage of alert[:expression] no longer works. Changing everything to use method/attribute accessors.

Method update_alerts receives a MiqAlert. It was accessing attributes
using brackets [] syntax. However, MiqAlert#expression attribute was
renamed in the database and the brackets syntax no longer works for this
attribute; it is now a method. Changing reads to attributes to use
method/attribute-like syntax instead of brackets [] syntax.
@israel-hdez
Copy link
Member Author

@miq-bot add_label alerts, bug, fine/no

@miq-bot
Copy link
Member

miq-bot commented Sep 4, 2017

Checked commit israel-hdez@f854583 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@israel-hdez
Copy link
Member Author

@miq-bot assign @mtho11
Quick fix. Please, review/merge.

@mtho11
Copy link
Contributor

mtho11 commented Sep 6, 2017

LGTM

@mtho11 mtho11 merged commit 47834f5 into ManageIQ:master Sep 6, 2017
@abonas abonas added this to the Sprint 69 Ending Sep 18, 2017 milestone Sep 8, 2017
@israel-hdez israel-hdez deleted the alerts_property_rename_issue branch September 11, 2017 20:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants