-
Notifications
You must be signed in to change notification settings - Fork 1
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
Goonj code refactor #4
base: master
Are you sure you want to change the base?
Conversation
Merging upstream master to my master
@AdityaMisra What is this pull request for? Please add details. Second, you are not allowed to merge a pull request without review. |
Thanks for adding the details. I've just finished reviewing Sohit's PR.. Can you two sync up and see who needs to back merge from whom? He's adding functionality and you're refactoring, so best keep things in sync. I can then do the PR. |
@varunachar I'll sync up with @keshrisohit |
goonj/channels/base_channel.py
Outdated
|
||
class BaseChannel(object): | ||
""" | ||
Base class for all alerting channels | ||
""" | ||
|
||
@abc.abstractmethod | ||
def send(self, sev, message, subject, error_id, error, tag_list): | ||
def send_message(self, sev, message, subject=None, error_id=None, error=None, tag_list=None): |
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.
make this private by adding _ so that noone will use it directly
I have just refactored the code.
I know I'm not suppose to merge a PR without anybody's review. I was waiting for Bibek to review it. I've sent him the PR.
If you get time can you review it.