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

Remove services and reduce TriggerBase to a library #23

Merged
merged 8 commits into from
Sep 15, 2017

Conversation

kinghuang
Copy link
Contributor

@kinghuang kinghuang commented Sep 15, 2017

Remove leftover references to services from the switch to functions. Also, reduce TriggerBase to use as a library object instead of a framework superclass for trigger implementations.

Closes #22

The refresh_functions method replaces refresh_services.
The run method is irrelevant if TriggerBase is no longer a superclass
for implementations.
Dissociate KafkaTrigger from TriggerBase. Instead, instantiate
TriggerBase keep a reference in KafkaTrigger.
The TriggerBase class is no longer intended to be used as a superclass
for trigger implementations. Rename it to Functions, instead. It
provides supporting code for implementation to get information about
functions.
Shorten the method refresh_functions to just refresh. The “_functions”
is a bit redundant with the class being named functions.
_register_label is a property of Functions, not KafkaTrigger.
@kinghuang kinghuang added this to the 0.1 milestone Sep 15, 2017
@kinghuang kinghuang merged commit e3601cc into master Sep 15, 2017
@kinghuang kinghuang deleted the remove-services branch September 15, 2017 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant