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
chore: update sqlchemy dependency #5902
chore: update sqlchemy dependency #5902
Conversation
@iamareebjamal How do I resolve the lock conflicts? |
git pull |
requirements/common.txt
Outdated
@@ -51,7 +51,7 @@ raven[flask] | |||
healthcheck | |||
elasticsearch-dsl | |||
flask-redis | |||
SQLAlchemy==1.1.15 # 1.2.0 doesn't work, check if any future versions work | |||
SQLAlchemy>=1.3.0 # 1.2.0 doesn't work, check if any future versions work |
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.
SQLAlchemy>=1.3.0 # 1.2.0 doesn't work, check if any future versions work | |
SQLAlchemy>=1.3.0<2.0.0 # 1.2.0 doesn't work, check if any future versions work |
Let the tests run first. They'll most likely fail |
@iamareebjamal Okay few queries, I tried And I have to use |
Yes, the command is correct. About |
@iamareebjamal This is the shell display on
|
I meant |
Now your PR has conflicts in Pipfile.lock You should have let the tests run first and if they passed, fix the conflicts |
@iamareebjamal I will move back one commit and push again, that will be fine? |
69d5664
to
8eeca38
Compare
Build is failing. Please check why |
@iamareebjamal This is happening due to : https://docs.sqlalchemy.org/en/13/changelog/migration_13.html#key-behavioral-changes-orm As for this particular query, in def sales_per_location_by_status(status):
return db.session.query(
Event.location_name.label('location'),
func.sum(Order.amount).label(status + '_sales'),
func.sum(OrderTicket.quantity).label(status + '_tickets')) \
.outerjoin(Order) \
.outerjoin(OrderTicket) \
.filter(Event.id == Order.event_id) \
.filter(Order.status == status) \
.group_by(Event.location_name, Order.status) \
.cte() is the issue. I can change |
@uds5501 See the previous result and match it after upgrading |
Codecov Report
@@ Coverage Diff @@
## development #5902 +/- ##
===============================================
- Coverage 66.54% 66.53% -0.01%
===============================================
Files 286 286
Lines 13919 13921 +2
===============================================
Hits 9262 9262
- Misses 4657 4659 +2
Continue to review full report at Codecov.
|
@iamareebjamal have a look? |
Great. Please resolve conflicts and I will merge it. Also, remove the comment about SQLAlchemy in requirements.txt |
Fixes #5828
Updates the SQLAlchemy dependency to
1.3.0