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

fix more sqlalchemy #1417

Merged
merged 118 commits into from
Jan 21, 2025
Merged

fix more sqlalchemy #1417

merged 118 commits into from
Jan 21, 2025

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Nov 14, 2024

Description

Fix remaining queries affected by the upgrade to sqlalchemy 2.0

NOTE: To find things that need changing the search is grep -ri "query\." ./**/**.py. In order to make search either, occurrences where 'query' was just being used as a variable name were changed to 'querie'.

NOTE: There is one test in notification_dao where I changed the expected result. I think sqlalchemy broke whatever strange thing that test was trying to do. As a matter of good maintenance, I don't think the test is doing the right thing trying to override the behavior of the Pagination object based on a flag.

Security Considerations

N/A

@terrazoon terrazoon marked this pull request as draft November 15, 2024 15:26
@ccostino
Copy link
Contributor

Looks like this PR needs another quick sync with main @terrazoon - thanks!

@ccostino ccostino removed the request for review from a team January 17, 2025 19:10
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks a ton for all of this, @terrazoon!

I only had two remaining questions to check on quick. Thanks for calling out the pagination within the tests, too. As long as those results are working as expected I think that's okay for now and we can clean that up more afterward.

app/config.py Outdated Show resolved Hide resolved
app/dao/inbound_sms_dao.py Show resolved Hide resolved
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks again, @terrazoon!

@terrazoon terrazoon merged commit e6899ef into main Jan 21, 2025
7 checks passed
@terrazoon terrazoon deleted the clean_up_sqlalchemy branch January 21, 2025 18:51
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.

3 participants