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

Nuage events callbacks for targeted refresh #204

Merged

Conversation

miha-plesko
Copy link
Contributor

@miha-plesko miha-plesko commented Oct 26, 2017

With this commit we first specify automate class for dealing with Nuage events. Then we define rel4 callbacks for events that we currently support. All callbacks simply point to the event_target_parser where appripriate targets get queued for refresh.

Related PR where event_target_parser.rb implementation is: ManageIQ/manageiq-providers-nuage#28

@miq-bot add_label enhancement
@miq-bot assign @gmcculloug

/cc @gberginc @Ladas

description:
fields:
- rel4:
value: "/System/event_handlers/refresh"
Copy link
Contributor

Choose a reason for hiding this comment

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

so before @gmcculloug and @blomquisg were rather for manually defining handlers for every event, instead of method_missing. Since the handlers also solve as documentation of 'these are the events we support'

With this commit we first specify automate class for dealing with
Nuage events. Then we define rel4 callbacks for events that we
currently support. All callbacks simply point to the event_target_parser
where appripriate targets get queued for refresh.

Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
@miha-plesko miha-plesko changed the title Nuage default event callback Nuage events callbacks for targeted refresh Oct 26, 2017
@miq-bot
Copy link
Member

miq-bot commented Oct 26, 2017

Checked commit miha-plesko@2a80d72 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@miha-plesko
Copy link
Contributor Author

@Ladas thanks, I've now added the event definitions for events currently supported by targeted refresh, and removed the rel4 from the _missing.yaml.

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@chargio
Copy link

chargio commented Oct 26, 2017

👌

@gmcculloug
Copy link
Member

@lfu Please review

@lfu
Copy link
Member

lfu commented Oct 26, 2017

LGTM 👍

@gmcculloug gmcculloug merged commit 563c5f8 into ManageIQ:master Oct 27, 2017
@gmcculloug gmcculloug added this to the Sprint 72 Ending Oct 30, 2017 milestone Oct 27, 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.

6 participants