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

perf: batch and commit inventory updates to shopify #233

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

ankush
Copy link
Member

@ankush ankush commented Feb 28, 2023

If there are more updates than what can be synced in 5 minutes
background job then there's possibility that inventory sync gets stuck
in infinite loop of never committing the synced data.

By adding commits and batching we can ensure that data is reliably
pushed and committed.

If there are more updates than what can be synced in 5 minutes
background job then there's possiblilty that inventory sync gets stuck
in infinite loop of never commiting the synced data.

By adding commits and batching we can ensure that data is reliably
pushed and commited.
@ankush ankush merged commit 0dbdc0b into frappe:develop Feb 28, 2023
@ankush ankush deleted the perf/inventory_sync branch February 28, 2023 05:49
github-actions bot pushed a commit that referenced this pull request Feb 28, 2023
## [1.15.3](v1.15.2...v1.15.3) (2023-02-28)

### Performance Improvements

* batch and commit inventory updates to shopify ([#233](#233)) ([0dbdc0b](0dbdc0b))
@github-actions
Copy link

🎉 This PR is included in version 1.15.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to mohsinalimat/ecommerce_integrations that referenced this pull request Apr 18, 2023
# [1.8.0](v1.7.2...v1.8.0) (2023-04-18)

### Bug Fixes

* 401 from parallel logins ([c5136fd](c5136fd))
* add defaults if mfg/expirty dates are missing ([ceb72e6](ceb72e6))
* better error message in case of HTTPError ([e70e586](e70e586))
* bump shopify api version ([203df24](203df24))
* capture curency code from order data ([5023dc0](5023dc0))
* cast to string before concatenating ([3cf612b](3cf612b))
* ci commits ([23e2234](23e2234))
* convert HTML to text while syncing description ([frappe#235](https://github.com/mohsinalimat/ecommerce_integrations/issues/235)) ([3546eca](3546eca))
* dont log error for item query ([2b3fa0c](2b3fa0c))
* dont upload price on unicommerce ([6a526e1](6a526e1))
* handle inconsistency in state naming in Unicommerce ([50d3f1a](50d3f1a))
* ignore any possible exception from old deleted doctype ([32a62fc](32a62fc))
* ignore deleted variants from sync ([27c6907](27c6907))
* item wise tax detail missing on shipping lines ([frappe#232](https://github.com/mohsinalimat/ecommerce_integrations/issues/232)) ([08e41d2](08e41d2))
* misleading "success" message for DN when SO doesn't exist ([7ea6d15](7ea6d15))
* only log inventory sync failure in single log ([5e8928e](5e8928e))
* phone number mapping in address ([frappe#198](https://github.com/mohsinalimat/ecommerce_integrations/issues/198)) ([66a3782](66a3782))
* remove the trailing comma after the last SKU ([frappe#201](https://github.com/mohsinalimat/ecommerce_integrations/issues/201)) ([2894160](2894160))
* State mapping ([f158a4a](f158a4a))
* **unicommerce:** set `name` also when syncing new item ([6b2199f](6b2199f))
* **unicommerce:** use updated since instead of from_date ([91b2ee9](91b2ee9))
* use separate endpoint if item exists ([29944f3](29944f3))
* **UX:** show logs button on shopify setting ([9d131f5](9d131f5))
* wrap resync in savepoint ([fcd7680](fcd7680))
* zenoti settings shouldn't trigger unless enabled ([e79f701](e79f701))

### Features

* item variant sync ([frappe#212](https://github.com/mohsinalimat/ecommerce_integrations/issues/212)) ([d1c6b22](d1c6b22))
* log clearing support ([0d8d5b5](0d8d5b5))
* **minor:** add raw data to doc to allow scripting ([26e2903](26e2903))
* set scan identifier as first barcode ([bc74a90](bc74a90))
* **shopify:** consolidate tax accounts in order ([4d60fb0](4d60fb0))
* **shopify:** resync item in bulk import ([bed3723](bed3723))
* **shopify:** sync shopify selling rate ([frappe#221](https://github.com/mohsinalimat/ecommerce_integrations/issues/221)) ([3ae06a6](3ae06a6))
* **unicommerce:** capture batch group field ([frappe#186](https://github.com/mohsinalimat/ecommerce_integrations/issues/186)) ([e8a932b](e8a932b))

### Performance Improvements

* batch and commit inventory updates to shopify ([frappe#233](https://github.com/mohsinalimat/ecommerce_integrations/issues/233)) ([0dbdc0b](0dbdc0b))
github-actions bot pushed a commit to mohsinalimat/ecommerce_integrations that referenced this pull request Jun 16, 2023
# [1.8.0](v1.7.2...v1.8.0) (2023-06-16)

### Bug Fixes

* 401 from parallel logins ([c5136fd](c5136fd))
* add defaults if mfg/expirty dates are missing ([ceb72e6](ceb72e6))
* better error message in case of HTTPError ([e70e586](e70e586))
* bump shopify api version ([203df24](203df24))
* capture curency code from order data ([5023dc0](5023dc0))
* cast to string before concatenating ([3cf612b](3cf612b))
* ci commits ([23e2234](23e2234))
* convert HTML to text while syncing description ([frappe#235](https://github.com/mohsinalimat/ecommerce_integrations/issues/235)) ([3546eca](3546eca))
* dont log error for item query ([2b3fa0c](2b3fa0c))
* dont run invoice hooks if unicommerce isn't enabled ([cb5853f](cb5853f))
* dont upload price on unicommerce ([6a526e1](6a526e1))
* handle inconsistency in state naming in Unicommerce ([50d3f1a](50d3f1a))
* ignore any possible exception from old deleted doctype ([32a62fc](32a62fc))
* ignore deleted variants from sync ([27c6907](27c6907))
* ignore permissions while updating token ([fa461c8](fa461c8))
* item wise tax detail missing on shipping lines ([frappe#232](https://github.com/mohsinalimat/ecommerce_integrations/issues/232)) ([08e41d2](08e41d2))
* misleading "success" message for DN when SO doesn't exist ([7ea6d15](7ea6d15))
* only log inventory sync failure in single log ([5e8928e](5e8928e))
* phone number mapping in address ([frappe#198](https://github.com/mohsinalimat/ecommerce_integrations/issues/198)) ([66a3782](66a3782))
* remove the trailing comma after the last SKU ([frappe#201](https://github.com/mohsinalimat/ecommerce_integrations/issues/201)) ([2894160](2894160))
* State mapping ([f158a4a](f158a4a))
* **unicommerce:** set `name` also when syncing new item ([6b2199f](6b2199f))
* **unicommerce:** use updated since instead of from_date ([91b2ee9](91b2ee9))
* use separate endpoint if item exists ([29944f3](29944f3))
* **UX:** show logs button on shopify setting ([9d131f5](9d131f5))
* wrap resync in savepoint ([fcd7680](fcd7680))
* zenoti settings shouldn't trigger unless enabled ([e79f701](e79f701))

### Features

* (Uni-commerce) generate Delivery Note and sync item fields ([frappe#239](https://github.com/mohsinalimat/ecommerce_integrations/issues/239)) ([f474301](f474301))
* item variant sync ([frappe#212](https://github.com/mohsinalimat/ecommerce_integrations/issues/212)) ([d1c6b22](d1c6b22))
* log clearing support ([0d8d5b5](0d8d5b5))
* **minor:** add raw data to doc to allow scripting ([26e2903](26e2903))
* set scan identifier as first barcode ([bc74a90](bc74a90))
* **shopify:** consolidate tax accounts in order ([4d60fb0](4d60fb0))
* **shopify:** resync item in bulk import ([bed3723](bed3723))
* **shopify:** sync shopify selling rate ([frappe#221](https://github.com/mohsinalimat/ecommerce_integrations/issues/221)) ([3ae06a6](3ae06a6))
* **unicommerce:** capture batch group field ([frappe#186](https://github.com/mohsinalimat/ecommerce_integrations/issues/186)) ([e8a932b](e8a932b))
* **unicommerce:** Sales Invoice creation through picklist ([frappe#240](https://github.com/mohsinalimat/ecommerce_integrations/issues/240)) ([8410c59](8410c59))

### Performance Improvements

* batch and commit inventory updates to shopify ([frappe#233](https://github.com/mohsinalimat/ecommerce_integrations/issues/233)) ([0dbdc0b](0dbdc0b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant