-
Notifications
You must be signed in to change notification settings - Fork 16.3k
[AIRFLOW-1814] : templatize PythonOperator op_args and op_kwargs fields #4691
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-1814] : templatize PythonOperator op_args and op_kwargs fields #4691
Conversation
a491110 to
7b14e08
Compare
|
I just rebased my branch onto master. Ready to have some feedback 😉 |
7b14e08 to
4e071a5
Compare
Codecov Report
@@ Coverage Diff @@
## master #4691 +/- ##
==========================================
- Coverage 74.94% 74.94% -0.01%
==========================================
Files 434 434
Lines 28392 28392
==========================================
- Hits 21279 21278 -1
- Misses 7113 7114 +1
Continue to review full report at Codecov.
|
|
@galak75 I created a PR with suggestion: VilledeMontreal#4 |
@mik-laj: I was initially using I'll let you know as soon as tested |
|
Oh. You're right. It may not work. I did not check it thoroughly. This construction seemed surprising to me at first. Maybe you add a comment in the code so that others can better understand the purpose of this class? |
|
I checked, and it actually fails with a You're right, this test code seems awkward at first. Using a |
fff1b51 to
213ee3d
Compare
|
@mik-laj : do you have any additional suggestion on comments I've added to the code? Any other improvement to the code? |
3dabd5e to
0852b68
Compare
[AIRFLOW-1814] : add assertCallsEqual test utility method [AIRFLOW-1814] : rename test utility class [AIRFLOW-1814] : remove parameter set with default value from test call [AIRFLOW-1814] : make test utility method private [AIRFLOW-1814] : change test values [AIRFLOW-1814] : change test code format [AIRFLOW-1814] : remove parameter types (python2 backward compatibility) [AIRFLOW-1814] : add (templated) marker to changed attributes
0852b68 to
9da5360
Compare
Fokko
left a comment
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.
Looks good @galak75, I think it is good to be able to template the op_args and op_kwargs. Cheers
|
Thanks a lot @Fokko! |
|
There is a report that this PR is breaking change: |
I will try to |
Make sure you have checked all steps below.
Jira
Description
See JIRA AIRFLOW-1814 description
Tests
test_python_operator.test_python_callable_arguments_are_templatizedtest_python_operator.test_python_callable_keyword_arguments_are_templatizedCommits
Documentation
Docstring updated
Code Quality
flake8