-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(checkout-page): Calculate final amount in cart #1256
Conversation
c84925f
to
796512d
Compare
62eca7c
to
d2f0161
Compare
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
👋 Hi there! Here is a root cause analysis of issue SEER-CF automatically generated by Autofix 🤖 This analysis was triggered by Rohan Agarwal. Lack of Validation for 'age' Field in User DataDescriptionThe Relevant Code ContextReference Snippet from
|
A fix has been generated and is available here for your review. Autofix Run ID: 1027 |
👋 Hi there! Here is a root cause analysis of issue SEER-CF automatically generated by Autofix 🤖 This analysis was triggered by Rohan Agarwal. Lack of Data Validation for User Age in 'buggy_code' FunctionDescriptionThe 'TypeError' is caused by multiplying a NoneType user age by an integer in the 'buggy_code' function within 'src/seer/automation/tasks.py'. The issue arises because the code does not verify if 'age' is 'None' or a valid integer before performing operations. Reproduction StepsExecute the 'buggy_code' function in 'src/seer/automation/tasks.py'. Ensure the 'user_data' list contains an entry with 'age' set to 'None'. This triggers a 'TypeError' during age multiplication. Relevant Code ContextSnippet from buggy_code FunctionDemonstrates the code that attempts to multiply 'age' by 12, causing a TypeError when encountered with 'None'. File: src/seer/automation/tasks.py
More InfoIf you have any questions or feedback for the Sentry team about this fix, please email [email protected] with the Run ID (see below). 🤓 Stats for the nerds:Run ID: 1039 |
A fix has been generated and is available here for your review. Autofix Run ID: 1027 |
A fix has been generated and is available here for your review. Autofix Run ID: 1027 |
This PR adds a Celery task to calculate the cart total in the checkout page periodically.