-
Notifications
You must be signed in to change notification settings - Fork 7
SONIC-1091: Remove old active carts with incorrect order number format #498
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds a Django management command to clean up old active carts in Commercetools that have incorrect order number formats. The command targets carts created before August 7, 2024, that are in "Active" state and lack payment information.
- Implements a batch processing system to handle large datasets efficiently
- Validates order number format (must start with "2U-" and be exactly 9 characters)
- Provides detailed logging of the deletion process with error handling
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
commerce_coordinator/apps/commercetools/management/commands/remove_old_order_number_carts.py
Outdated
Show resolved
Hide resolved
commerce_coordinator/apps/commercetools/management/commands/remove_old_order_number_carts.py
Show resolved
Hide resolved
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
commerce_coordinator/apps/commercetools/management/commands/remove_old_order_number_carts.py
Show resolved
Hide resolved
commerce_coordinator/apps/commercetools/management/commands/remove_old_order_number_carts.py
Show resolved
Hide resolved
commerce_coordinator/apps/commercetools/management/commands/remove_old_order_number_carts.py
Show resolved
Hide resolved
closing PR as this was a one-time activity |
Description
Supporting Information
Relevant JIRA Ticket: SONIC-1091