-
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-4038] Restructure database queries on /home #4872
Conversation
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.
Seems the only main change here is to use create_session
over decorator provide_session
? What's the main advantage of doing this? Or did I miss anything?
Thanks.
Codecov Report
@@ Coverage Diff @@
## master #4872 +/- ##
==========================================
- Coverage 75.28% 75.28% -0.01%
==========================================
Files 450 450
Lines 29026 29023 -3
==========================================
- Hits 21853 21849 -4
- Misses 7173 7174 +1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4872 +/- ##
==========================================
- Coverage 75.28% 75.28% -0.01%
==========================================
Files 450 450
Lines 29026 29023 -3
==========================================
- Hits 21853 21849 -4
- Misses 7173 7174 +1
Continue to review full report at Codecov.
|
@XD-DENG: Almost, indeed the main thing is to switch from About the switch from provide_session to create_session. Me and @Fokko did a little research and using create_session keeps less time a session locked to a scope. |
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.
I think the rewrite makes it easier to understand. Any further thoughts @XD-DENG ?
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.
@Fokko LGTM
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.
Thanks @ffinfo
Make sure you have checked all steps below.
Jira
Description
Restructure database queries in /home
Tests
Commits
Documentation
Code Quality
flake8