Refactor Sqlalchemy queries to 2.0 styles (Part 2)#31772
Merged
ephraimbuddy merged 17 commits intoJun 27, 2023
Conversation
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
6 times, most recently
from
June 7, 2023 18:07
174adae to
ce9a926
Compare
ephraimbuddy
commented
Jun 8, 2023
uranusjr
reviewed
Jun 8, 2023
uranusjr
reviewed
Jun 8, 2023
uranusjr
reviewed
Jun 8, 2023
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
3 times, most recently
from
June 9, 2023 14:08
0e1c5d6 to
878d9b1
Compare
ephraimbuddy
marked this pull request as ready for review
June 9, 2023 14:08
ephraimbuddy
requested review from
XD-DENG,
ashb,
kaxil and
pierrejeambrun
as code owners
June 9, 2023 14:08
Contributor
Author
|
Marking this PR ready for review, there's still a lot of work to be done and this is already getting big, so shifting the work to the next PR. |
uranusjr
reviewed
Jun 12, 2023
uranusjr
reviewed
Jun 12, 2023
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
2 times, most recently
from
June 15, 2023 14:25
9e8dea4 to
52aa81c
Compare
uranusjr
reviewed
Jun 16, 2023
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
from
June 16, 2023 08:07
52aa81c to
acb30f1
Compare
uranusjr
reviewed
Jun 16, 2023
Member
|
Is this one missed? #31772 (comment) |
uranusjr
reviewed
Jun 16, 2023
uranusjr
reviewed
Jun 16, 2023
uranusjr
reviewed
Jun 16, 2023
uranusjr
reviewed
Jun 16, 2023
uranusjr
reviewed
Jun 16, 2023
Contributor
Author
|
What do you think about this latest commit: cad7874 |
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
from
June 27, 2023 07:35
cad7874 to
3e31197
Compare
uranusjr
reviewed
Jun 27, 2023
uranusjr
approved these changes
Jun 27, 2023
This is a continuation of the effort to refactor the queries to sqlalchemy 2.0 style
The count should happen *after* we apply the filters, and is (slightly) different from the automatic 404 case.
Co-authored-by: Tzu-ping Chung <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
ephraimbuddy
force-pushed
the
sqlalchemy-20-query-style2
branch
from
June 27, 2023 11:42
e153b1d to
844deeb
Compare
ferruzzi
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jun 27, 2023
* Refactor Sqlalchemy queries to 2.0 styles (Part 2) This is a continuation of the effort to refactor the queries to sqlalchemy 2.0 style * Fix total_entries counting logic The count should happen *after* we apply the filters, and is (slightly) different from the automatic 404 case. * Update queries in models/ * fixup! Update queries in models/ * Add triggerer_job in query * fixup! fixup! Update queries in models/ * Revert changes to dagwarning.py * Use session.scalar * Convert DagWarning to SQLAlchemy 2.x syntax * Fix dagwarning * fix typing and remove todo comment * Apply suggestions from code review Co-authored-by: Tzu-ping Chung <[email protected]> * Use scalars instead of execute and fix typing * Apply suggestions from code review Co-authored-by: Tzu-ping Chung <[email protected]> * Apply suggestions from code review Co-authored-by: Tzu-ping Chung <[email protected]> * remove all * Remove one_or_none where possible --------- Co-authored-by: Tzu-ping Chung <[email protected]>
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.
This is a continuation of the effort to refactor the queries to sqlalchemy 2.0