-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
fix: broken patches #29067
fix: broken patches #29067
Conversation
saurabh6790
commented
Dec 29, 2021
02bc4ea
to
f21c0bc
Compare
@ankush fixed suggested changes ! |
@saurabh6790 can you fix the linting issues. You'll have to set up pre-commit locally as well. For this you can follow |
f21c0bc
to
950b19e
Compare
950b19e
to
5f72026
Compare
with previous query rerunning would've caused all values to become 0.
@Mergifyio copy develop |
✅ Pull request copies have been created
|
@ankush are you working on this? It's been 27 days now! +1 for adding the check of field type. But I still believe, there is no need of two queries. The field type check and sql case statement will do job for you in one go. |
Added it before adding type check cause re-running could cause the entire column to become 0; best to leave it... it doesn't take much time and it runs one time only. |
* chore: patch fixes (cherry picked from commit 8b5b146) # Conflicts: # erpnext/patches/v13_0/make_homepage_products_website_items.py * fix: remove desktop icons while deleting sales reports (cherry picked from commit 5f72026) * refactor: dont ignore dangerous exceptions in patches (cherry picked from commit 0aa1ea8) * fix: make patch kinda idempotent with previous query rerunning would've caused all values to become 0. * chore: conflicts * fix: check type before patching Co-authored-by: Saurabh <saurabh6790@gmail.com> Co-authored-by: Ankush Menat <ankush@frappe.io>