-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[AIRFLOW-4069] Add Opsgenie Alert Hook and Operator #4903
Conversation
924610a
to
a911721
Compare
Codecov Report
@@ Coverage Diff @@
## master #4903 +/- ##
==========================================
+ Coverage 76.23% 76.29% +0.05%
==========================================
Files 466 468 +2
Lines 30101 30188 +87
==========================================
+ Hits 22949 23031 +82
- Misses 7152 7157 +5
Continue to review full report at Codecov.
|
@zhongjiajie Fair point, I removed the ability to explicitly pass the |
@nritholtz Well I notice that you add new hook without operator. should we add operator to this new hook? |
@zhongjiajie On second thought, Ill add an operator as well since I'm already in this code. |
Added operator for the hook, and also converted the |
9aa25da
to
886f8be
Compare
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.
My 2 cents.
f7057ae
to
1adaa4f
Compare
cc @mik-laj we still have discuss in #4903 (comment) and #4903 (comment). |
I've updated the PR as per the suggestions and also added additional test coverage for the hook. |
d7853a3
to
3c9bb51
Compare
Made suggested changes. Just an FYI, while reviewing the |
Yes it does, good catch. |
c230a47
to
39ed1a6
Compare
@ashb Only one job in the build failed due to unrelated tests:
All suggested changes have been made. PTAL |
Taking a look. Yeah, the kube tests timeout sometimes :( |
@nritholtz Two small changes - if you can make them soon I can get this in to 1.10.3 |
@ashb looks like unrelated test failures again on 2 of the jobs. Otherwise made all suggested changes. Thanks. |
@ashb Thanks for the rebuild, looks all green now. 🎉 |
Good catch, I will add new line tomorrow, Thanks. @nritholtz |
Make sure you have checked all steps below.
Jira
Description
Add a hook and operator for the Opsgenie Alert API to create alerts.
Tests
tests/contrib/hooks/test_opsgenie_alert_hook.py
andtests/contrib/operators/test_opsgenie_alert_operator.py
Commits
Documentation
Code Quality
flake8