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

[AIRFLOW-4147] Operator to publish event to Redis #4967

Merged
merged 6 commits into from
May 24, 2019
Merged

[AIRFLOW-4147] Operator to publish event to Redis #4967

merged 6 commits into from
May 24, 2019

Conversation

mans2singh
Copy link
Contributor

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"
    • https://issues.apache.org/jira/browse/AIRFLOW-4147
    • In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.
    • In case you are proposing a fundamental code change, you need to create an Airflow Improvement Proposal (AIP).
    • In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

Description

  • Here are some details about my PR, including screenshots of any UI changes: Redis publish operator

Tests

  • My PR adds the following unit tests: tests/contrib/operators/test_redis_publish_operator.py

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
    • If you implement backwards incompatible changes, please leave a note in the Updating.md so we can assign it to a appropriate release

Code Quality

  • Passes flake8

@mans2singh
Copy link
Contributor Author

@XD-DENG - I've updated the test based on your feedback. Please let me know if you have any additional advice. Thanks

@mans2singh
Copy link
Contributor Author

@XD-DENG @zhongjiajie - Please let me know if you have more comments/recommendations and should I resolve your comments. Thanks

@codecov-io
Copy link

codecov-io commented Mar 28, 2019

Codecov Report

Merging #4967 into master will increase coverage by 2.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4967      +/-   ##
==========================================
+ Coverage   76.36%   78.48%   +2.11%     
==========================================
  Files         471      468       -3     
  Lines       30290    29782     -508     
==========================================
+ Hits        23130    23373     +243     
+ Misses       7160     6409     -751
Impacted Files Coverage Δ
...irflow/contrib/operators/redis_publish_operator.py 100% <100%> (ø)
airflow/hooks/hdfs_hook.py 30% <0%> (-62.5%) ⬇️
airflow/utils/decorators.py 85.41% <0%> (-7.69%) ⬇️
airflow/contrib/kubernetes/kube_client.py 73.91% <0%> (-5.4%) ⬇️
airflow/utils/timeout.py 75% <0%> (-3.58%) ⬇️
airflow/contrib/hooks/pinot_hook.py 80% <0%> (-2.5%) ⬇️
airflow/task/task_runner/base_task_runner.py 74.57% <0%> (-2.1%) ⬇️
airflow/utils/timezone.py 89.58% <0%> (-1.73%) ⬇️
airflow/example_dags/example_xcom.py 60.86% <0%> (-1.64%) ⬇️
airflow/api/__init__.py 72.22% <0%> (-1.47%) ⬇️
... and 130 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b93f264...e17a4fe. Read the comment docs.

@mans2singh
Copy link
Contributor Author

Hi: Just checking if you have any additional review comments/advice. Thanks

@zhongjiajie
Copy link
Member

Hi, @XD-DENG could you please take a look at this PR thanks, @mans2singh ask committer review.

@mans2singh
Copy link
Contributor Author

Hi @Fokko @mik-laj @XD-DENG - Please let me know if there are any recommendations for this PR. Thanks

@mans2singh
Copy link
Contributor Author

@Fokko @mik-laj @XD-DENG - Please let me know if you have any additional review recommendations for this PR. Mans

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

One small comment, apart from that LGTM. Sorry @mans2singh for taking so long to response, I've been a bit busy lately.

airflow/contrib/operators/redis_publish_operator.py Outdated Show resolved Hide resolved
@mans2singh
Copy link
Contributor Author

@Fokko - I've updated the code based on your feedback. Please let me know if there is anything else required. Thanks for your advice/guidance.

@Fokko Fokko dismissed XD-DENG’s stale review April 14, 2019 20:34

Additional tests have been added

@mans2singh
Copy link
Contributor Author

@zhongjiajie @XD-DENG @mik-laj - Please let me know if you have any more recommendations for this pull request. Thanks.

@mans2singh
Copy link
Contributor Author

mans2singh commented Apr 19, 2019

@Fokko, Airflow Team - Please let me know if there is any additional advice for this PR. Thanks.

@mans2singh
Copy link
Contributor Author

@mik-laj @XD-DENG @Fokko - Please let me know if you have any additional advice/comments on this pull request. Thanks

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

2 cent, otherwise LGTM

airflow/contrib/operators/redis_publish_operator.py Outdated Show resolved Hide resolved
airflow/contrib/operators/redis_publish_operator.py Outdated Show resolved Hide resolved
@mans2singh
Copy link
Contributor Author

@zhongjiajie - I've updated the code based on your feedback. Please let me know if you have any more advice. Thanks

@zhongjiajie
Copy link
Member

LGTM

@mans2singh
Copy link
Contributor Author

@zhongjiajie - thanks for your feedback.

@mans2singh
Copy link
Contributor Author

@XD-DENG and Airflow team - Please let me know if there is anything else outstanding that I need to address for this PR. Thanks.

@mans2singh
Copy link
Contributor Author

@zhongjiajie @XD-DENG @mik-laj @Fokko @ashb @r39132- Just checking if you have any additional recommendations/comments for this PR.

Thanks

Mans

@kaxil
Copy link
Member

kaxil commented May 24, 2019

Thank You @mans2singh , well done.

@kaxil kaxil merged commit ad832af into apache:master May 24, 2019
kaxil pushed a commit that referenced this pull request May 24, 2019
kaxil pushed a commit that referenced this pull request May 25, 2019
@mans2singh
Copy link
Contributor Author

Thanks @kaxil @zhongjiajie @XD-DENG @mik-laj @Fokko @ashb @r39132 @potiuk for your advice and help.

andriisoldatenko pushed a commit to andriisoldatenko/airflow that referenced this pull request Jul 26, 2019
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Jul 29, 2019
dharamsk pushed a commit to postmates/airflow that referenced this pull request Aug 8, 2019
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.

7 participants