Skip to content

[flask] Reorder checkout cart quantity parsing and validation#1338

Draft
sentry[bot] wants to merge 1 commit intomasterfrom
seer/flask-reorder-checkout-validation
Draft

[flask] Reorder checkout cart quantity parsing and validation#1338
sentry[bot] wants to merge 1 commit intomasterfrom
seer/flask-reorder-checkout-validation

Conversation

@sentry
Copy link
Contributor

@sentry sentry bot commented Mar 10, 2026

Fixes MOBILE-REACT-NATIVE-1. The issue was that: quantities variable used before definition in Flask /checkout endpoint, causing NameError and 500 response.

  • Moved the initialization of the 'quantities' dictionary to occur before the empty cart check.
  • This ensures 'quantities' is always defined when its length is evaluated.

This fix was generated by Seer in Sentry, triggered by prithvirajkumar.rajakumar@sentry.io. 👁️ Run ID: 11175348

Not quite right? Click here to continue debugging with Seer.

@vercel
Copy link
Contributor

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
empower Ignored Ignored Preview Mar 10, 2026 11:40am

Request Review

@sentry sentry bot requested a review from Prithvirajkumar March 10, 2026 11:40
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 22.01%. Comparing base (743e6e1) to head (8e730c0).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
flask/src/main.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1338   +/-   ##
=======================================
  Coverage   22.01%   22.01%           
=======================================
  Files          42       42           
  Lines        1363     1363           
  Branches      176      176           
=======================================
  Hits          300      300           
  Misses       1036     1036           
  Partials       27       27           
Flag Coverage Δ
api 5.83% <0.00%> (ø)
frontend 32.33% <ø> (ø)
Components Coverage Δ
checkout_module 5.83% <0.00%> (ø)
product_component 25.98% <ø> (ø)
Files with missing lines Coverage Δ
flask/src/main.py 0.00% <0.00%> (ø)

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.

0 participants