-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
refactor: Transaction Deletion record for large volumes (backport #39717) #40574
refactor: Transaction Deletion record for large volumes (backport #39717) #40574
Conversation
(cherry picked from commit 0d65d87) # Conflicts: # erpnext/setup/doctype/transaction_deletion_record/transaction_deletion_record.py
(cherry picked from commit 6fbb67b)
(cherry picked from commit d0dc2c6)
(cherry picked from commit 8944ab8)
(cherry picked from commit 6a77d86) # Conflicts: # erpnext/setup/doctype/transaction_deletion_record_item/transaction_deletion_record_item.py
(cherry picked from commit cccb2d5)
(cherry picked from commit b12ca65)
(cherry picked from commit 49d3bcb)
(cherry picked from commit b98a5e4)
(cherry picked from commit 7c4cff2)
(cherry picked from commit 86b5e2e)
(cherry picked from commit 1014940)
(cherry picked from commit 2dbe68a)
(cherry picked from commit 55e93b3)
(cherry picked from commit 31a2da5)
(cherry picked from commit 98afb4d)
(cherry picked from commit 78c9cc6)
(cherry picked from commit ec194ef)
(cherry picked from commit 3046365)
(cherry picked from commit eea260b)
(cherry picked from commit 4a55240)
(cherry picked from commit 0455d0c)
(cherry picked from commit 3cec62d)
(cherry picked from commit 5fe0b20)
(cherry picked from commit 5a3afea) # Conflicts: # erpnext/setup/doctype/company/company.js # erpnext/setup/doctype/company/company.py
(cherry picked from commit a158b82)
(cherry picked from commit 8130957) # Conflicts: # erpnext/setup/demo.py # erpnext/setup/doctype/transaction_deletion_record/test_transaction_deletion_record.py
(cherry picked from commit 02c522b)
Cherry-pick of 0d65d87 has failed:
Cherry-pick of 6a77d86 has failed:
Cherry-pick of 5a3afea has failed:
Cherry-pick of 8130957 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Linter failure is unrelated |
🎉 This PR is included in version 14.66.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Transaction Deletion Record
- tool used to clear all transactions related to a company, timesout when there are large number of transactions. To fix this, tool will be redesign to run in background/Overview
Data clearing will be performed as a series of consecutive tasks, with each task give an ample timeout limit of 25mins.
Each task is executed only after the previous one is completed.
The last task - 'Delete Transactions', will clear transaction data in batches of 5000, with each batch having timeout of 25mins.
Safegaurds
Validation is added to prevent new docs from being created while the Deletion job is running.
todo:
Screenshots
Video
tdr.mov
This is an automatic backport of pull request #39717 done by [Mergify](https://mergify.com).