Skip to content
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: make parameters of create_subscription_process optional (and other minor fixes) #38360

Merged

Conversation

sagarvora
Copy link
Collaborator

@sagarvora sagarvora commented Nov 27, 2023

Issue originated in #37126
Closes #38219

Changes Made

  • make parameters of create_subscription_process and process_all optional
  • perf: remove unnecessary call to doc.insert (taken care of by subsequent call to doc.submit). also ignore_permissions isn't required because this function is currently only called via scheduler_events where Administrator has the relevant permissions already.
  • move event to daily_long from hourly_long - it was previously kept in hourly_long for redundancy, but user can create a Process Subscription manually now

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Nov 27, 2023
@sagarvora sagarvora added backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Nov 27, 2023
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #38360 (e598f86) into develop (dd016e6) will decrease coverage by 0.04%.
Report is 35 commits behind head on develop.
The diff coverage is 70.83%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #38360      +/-   ##
===========================================
- Coverage    67.27%   67.23%   -0.04%     
===========================================
  Files          757      758       +1     
  Lines        60572    60616      +44     
===========================================
+ Hits         40749    40756       +7     
- Misses       19823    19860      +37     
Files Coverage Δ
...xt/accounts/doctype/journal_entry/journal_entry.py 69.41% <100.00%> (ø)
...rpnext/accounts/doctype/pos_invoice/pos_invoice.py 67.98% <100.00%> (ø)
...ctype/process_subscription/process_subscription.py 0.00% <ø> (ø)
...next/accounts/doctype/subscription/subscription.py 84.29% <ø> (ø)
erpnext/controllers/selling_controller.py 79.94% <100.00%> (ø)
erpnext/hooks.py 100.00% <ø> (ø)
erpnext/selling/doctype/sales_order/sales_order.py 79.00% <100.00%> (ø)
...pnext/stock/doctype/delivery_note/delivery_note.py 81.22% <ø> (ø)
erpnext/stock/doctype/item/item.py 85.01% <100.00%> (ø)
erpnext/stock/doctype/packed_item/packed_item.py 87.40% <100.00%> (ø)
... and 6 more

... and 6 files with indirect coverage changes

@deepeshgarg007 deepeshgarg007 merged commit 5a53a4b into frappe:develop Nov 27, 2023
16 checks passed
mergify bot pushed a commit that referenced this pull request Nov 27, 2023
@sagarvora sagarvora deleted the fix-subscription-event branch November 27, 2023 15:35
sagarvora added a commit that referenced this pull request Nov 27, 2023
…-38360

fix: make parameters of `create_subscription_process` optional (and other minor fixes) (backport #38360)
frappe-pr-bot pushed a commit that referenced this pull request Nov 28, 2023
# [15.4.0](v15.3.0...v15.4.0) (2023-11-28)

### Bug Fixes

* allow on submit for child table fields ([ac7615a](ac7615a))
* annual income and expenses in digest ([ca2ad17](ca2ad17))
* check reposting settings before allowing editable si ([25bf475](25bf475))
* condition in other bundle utils ([e4d9ef1](e4d9ef1))
* create contact if existing customer doesn't have contact ([b1b065d](b1b065d))
* display all item rate stop messages (backport [#38289](#38289)) ([#38307](#38307)) ([99c1fbf](99c1fbf))
* do not set repost flag without validating voucher ([6a3c3b4](6a3c3b4))
* don't depreciate assets with no schedule on scrapping (backport [#38276](#38276)) ([#38293](#38293)) ([18613c5](18613c5))
* filter bundle items based on disabled check ([fb517e8](fb517e8))
* fiscal year using future date ([b9a1fac](b9a1fac))
* has_product_bundle util to only check for enabled bundles ([5c12872](5c12872))
* job card overlap validation (backport [#38345](#38345)) ([#38348](#38348)) ([d6fe7eb](d6fe7eb))
* make parameters of `create_subscription_process` optional (and other minor fixes) ([#38360](#38360)) ([721b429](721b429))
* Negative Qty and Rates in SO/PO (backport [#38252](#38252)) ([#38357](#38357)) ([14174df](14174df))
* no fstring in translation (backport [#38381](#38381)) ([#38387](#38387)) ([c101855](c101855))
* patch - Duplicate entry quality inspection parameter (backport [#38262](#38262)) ([#38264](#38264)) ([4c9890a](4c9890a))
* Payment Reco Issue and chart of account importer ([4699887](4699887))
* serial no status (backport [#38391](#38391)) ([#38397](#38397)) ([b65c225](b65c225))
* Server Error while creating Product Bundle (backport [#38377](#38377)) ([#38380](#38380)) ([922aef6](922aef6))
* skip disabled bundles for non-report utils ([3d46b32](3d46b32))
* skip fixed assets in parent ([314a91a](314a91a))
* Supplier `Primary Contact` (backport [#38268](#38268)) ([#38286](#38286)) ([37d1f1a](37d1f1a))
* **ux:** Sales Order Stock Reservation Dialog (backport [#38261](#38261)) ([#38344](#38344)) ([3cbe599](3cbe599))
* validation for existing bundles ([c0de9c0](c0de9c0))

### Features

* add Bank Transaction to connections in Journal and Payment Entry (backport [#38297](#38297)) ([#38301](#38301)) ([72647b8](72647b8))
* add disabled field in product bundle ([fcd53be](fcd53be))
* new Report "Lost Quotations" ([#38309](#38309)) ([ea2c348](ea2c348))

### Performance Improvements

* optimize total_purchase_cost update ([deed9f5](deed9f5))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduled Job Failed: process_subscription.create_subscription_process
2 participants