Repository navigation
[sql lab] Use context manager for sqllab sessions - #4927
Merged
Merged
Conversation
Member
|
The approach LGTM except for the fact that it breaks the build. Look into the travis logs for more details. |
added 10 commits
May 4, 2018 09:30
…ib2 import contextmanager should be before import sqlalchemy
Contributor
Author
|
Ready for review |
Codecov Report
@@ Coverage Diff @@
## master #4927 +/- ##
==========================================
- Coverage 77.12% 77.06% -0.07%
==========================================
Files 44 44
Lines 8539 8555 +16
==========================================
+ Hits 6586 6593 +7
- Misses 1953 1962 +9
Continue to review full report at Codecov.
|
Member
|
Nice. |
mistercrunch
pushed a commit
that referenced
this pull request
May 14, 2018
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering (cherry picked from commit 8591319)
michellethomas
pushed a commit
to michellethomas/panoramix
that referenced
this pull request
May 24, 2018
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering
timifasubaa
pushed a commit
to timifasubaa/incubator-superset
that referenced
this pull request
May 31, 2018
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering
wenchma
pushed a commit
to wenchma/incubator-superset
that referenced
this pull request
Nov 16, 2018
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering
cccs-rc
pushed a commit
to CybercentreCanada/superset
that referenced
this pull request
Mar 6, 2024
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering (cherry picked from commit a00d216)
qfcwell
pushed a commit
to qfcwell/superset
that referenced
this pull request
May 12, 2026
* use session context manager * contextlib2 added to requirements.txt * Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy * Fixing return inside generator * fixed C812 missing trailing comma * E501 line too long * fixed E127 continuation line over-indented for visual indent * E722 do not use bare except * reorganized imports * added context manager contextlib2.contextmanager * fixed import ordering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solution for #4666
http://docs.sqlalchemy.org/en/latest/orm/session_basics.html#when-do-i-construct-a-session-when-do-i-commit-it-and-when-do-i-close-it