Oliver Windall Juhl
e707b46499
fix(medusa-plugin-meilisearch): Update meilisearch dependency ( #2140 )
2022-09-05 18:15:09 +02:00
Oliver Windall Juhl
ad717b9533
chore(medusa): Remove deprecated dependency @hapi/joi ( #2069 )
2022-09-05 16:03:06 +02:00
Oliver Windall Juhl
d14a0398fb
fix(medusa): Delete ProductOption on Product without Variants ( #1846 )
...
**What**
Solves admin issue [166](https://github.com/medusajs/admin/issues/166 )
Deleting a product option on a product without variants currently throws, because we are cleaning up variant options as well.
**How**
Only do variant clean up, if product has variants
2022-08-29 18:51:45 +00:00
Oliver Windall Juhl
6a62a8f1ed
chore: Remove lerna ( #2116 )
...
**What**
- Removes `lerna` as we are now using `changesets` + Turborepo to handle builds and releases
2022-08-29 13:26:58 +00:00
Oliver Windall Juhl
5ac7f08e4d
fix(medusa): Incorrect swap difference due ( #2086 )
...
### What
Creating a swap on an order with a discount leads to an incorrect difference due.
**Scenario**
- Create a store with minimum 2 products (Prod A, Prod B)
- Create a discount that only works for Prod A
- Create an order for Prod A with the discount applied
- Create a swap between Prod A and Prod B
**Expected outcome**
We would expect the difference_due amount to come out to the sum of:
- -1 * (price of prod a - discount applied to prod a)
- price of prod b
**Actual outcome**
Instead the discount is applied across both products when calculating difference due. This results in a total that is instead the sum of:
- -1 * (price of prod a - discount applied to prod a)
- price of prod b - discount on prod b ignoring the condition
### How
Adds `line_item.adjustments` to relations in cart retrieval prior to setting the difference_due to car total
Fixes CORE-361
2022-08-24 14:07:44 +00:00
Oliver Windall Juhl
fb1105b9c0
fix(medusa-payment-stripe): Add item adjustments relation in CartSubcriber ( #2052 )
2022-08-16 19:36:57 +02:00
Oliver Windall Juhl
0ba63c70b0
fix(medusa): Complete cart with 100% discount ( #2032 )
...
**What**
Naive fix to allow carts with 100% discount to be completed.
**Why**
Discount total is wrongly calculated if `items` and `items.adjustments` is not included in relations upon retrieving the cart.
**Thought**
This is yet another example of why we need to rethink and refactor totals computation to not depend on what is provided by the user.
2022-08-16 09:21:01 +00:00
Oliver Windall Juhl
900260c5b9
feat(medusa,medusa-telemetry): Add telemetry on feature flags ( #2017 )
2022-08-09 16:27:12 +02:00
Oliver Windall Juhl
b1f88f917b
chore: Update yarn.lock + jest matchers in integration test ( #1989 )
2022-08-04 10:16:55 +02:00
Oliver Windall Juhl
1998902a94
fix(medusa-js): Use correct customer payment methods path ( #1934 )
2022-07-28 20:43:42 +02:00
Oliver Windall Juhl
dafbfa7799
fix(medusa): Create tax lines when marking DraftOrder as paid ( #1852 )
2022-07-15 11:57:46 +02:00
Oliver Windall Juhl
7162972318
fix(medusa): Free text search for PriceList Products ( #1843 )
...
**What**
Fixes #1831 and #1336
2022-07-13 14:06:33 +00:00
Oliver Windall Juhl
4e375c2203
feat(medusa): Prevent default channel from being deleted ( #1835 )
...
**What**
Prevent the default channel from being deleted
Fixes CORE-317
2022-07-13 06:41:03 +00:00
Oliver Windall Juhl
fb82d3dd22
fix(medusa): Add migration ensuring correct state of BatchJob model ( #1825 )
2022-07-11 15:50:01 +02:00
Oliver Windall Juhl
02967f95b1
fix(medusa): Refresh adjustments when region on cart is changed ( #1827 )
...
* fix(medusa): Refresh adjustments when region on cart is changed
* fix test
* Fix unit test
* fix: integration tests
* fix: comment
2022-07-11 10:51:55 +02:00
Oliver Windall Juhl
f0704a7e17
chore(medusa-react): Move @medusajs/medusa to peerDeps in medusa-react ( #1771 )
...
* chore: Move @medusajs/medusa to peerDeps in medusa-react
* update README
2022-07-04 11:25:35 +02:00
Oliver Windall Juhl and Sebastian Rindom
c76e23e84d
fix(medusa): Remove deps mongoose + mongodb ( #1218 )
...
* fix(medusa): Remove deps mongoose, mongodb and transaction service + base model
* chore: delete permissions+add-ons legacy plugins
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2022-07-04 09:10:32 +02:00
Oliver Windall Juhl
19a715d217
chore: Add contact links to issue overview ( #1680 )
2022-07-02 17:49:21 +02:00
Oliver Windall Juhl
7bee57f7c5
fix(medusa-js): Fix stringifyNullProperties util ( #1766 )
...
**What**
Changes the order of object type evaluation to properly handle null properties.
Previously, `stringifyNullProperties({ test: null })` would fail in the 2nd iteration due to an attempt to iterate `null` in `Object.keys(obj)`.
2022-07-02 15:29:27 +00:00
Oliver Windall Juhl
a5f717be5a
fix(medusa-file-spaces,medusa-file-s3,medusa-file-minio): Add options to super call in file plugins ( #1714 )
2022-06-24 09:15:57 +02:00
Oliver Windall Juhl
7302d76e12
feat(medusa,medusa-js,medusa-react): Add BatchJob API support in medusa-js + medusa-react ( #1704 )
...
* Add BatchJob API to medusa-js
* Adds BatchJob API hooks
* Fix tests in medusa-react
2022-06-21 11:08:44 +02:00
Oliver Windall Juhl
6b23208d63
fix(medusa): Include adjustments when authorizing payment ( #1697 )
2022-06-19 12:58:47 +02:00
Oliver Windall Juhl
2c266302c8
chore: Add issue template for feature requests ( #1679 )
2022-06-17 09:50:40 +02:00
Oliver Windall Juhl
35a1733073
chore: Add issue template for bug reports ( #1676 )
2022-06-17 09:50:23 +02:00
Oliver Windall Juhl
c9041d042e
fix: Issue with cache in CI pipeline
2022-06-16 13:25:04 +02:00
Oliver Windall Juhl
f0ecef6b9a
fix(medisa): Deleting price list should use remove ( #1540 )
2022-05-19 18:56:58 +02:00
Oliver Windall Juhl
a87e1cdf65
feat(medusa): Add endpoint for retrieving a DiscountCondition ( #1525 )
2022-05-17 11:17:17 +02:00
Oliver Windall Juhl
02eab5ee86
fix(medusa): Include adjustments in cart retrieval relations in setPaymentSessions ( #1518 )
2022-05-16 13:39:38 +02:00
Oliver Windall Juhl
9ca45ea492
feat(medusa): Add endpoints specific to DiscountConditions ( #1355 )
2022-05-13 12:42:23 +02:00
Oliver Windall Juhl
9acee2799e
fix(medusa): Remove unsupported Discount endpoints ( #1367 )
2022-04-19 13:39:49 +02:00
Oliver Windall Juhl
edc6d9d29c
fix: Remove region_id from countries on region deletes ( #1330 )
...
* Remove region id from countries on delete
* Update snapshots
2022-04-13 10:52:25 +02:00
Oliver Windall Juhl
ecc5bdd362
Only use country if part of a region ( #1183 )
2022-04-12 16:42:53 +02:00
Oliver Windall Juhl
cab5821f55
chore: Update README ( #1280 )
...
Update roadmap in README
2022-03-30 20:53:19 +02:00
Oliver Windall Juhl
a610805917
feat: Add DiscountConditions ( #1230 )
...
* feat: Add DiscountCondition entity + Join table per relation (#1146 )
* feat: Convert DiscountService to TypeScript (#1149 )
* feat: Add DiscountRepository + bulk insert and remove (#1156 )
* feat: Add `conditions` to payload in `POST /discounts` and `POST /discounts/:id` (#1170 )
* feat: Add DiscountRuleCondition entity
* fix relation
* fix join key
* Add discount rule condition repo
* add join table per relation
* Convert DiscountService to TypeScript
* feat: Add DiscountConditionRepository
* Add migration + remove use of valid_for
* revert changes to files, not done yet
* init work on create discount endpoint
* Add conditions to create discount endpoint
* Add conditions to update discount endpoint
* Add unique constraint to discount condition
* integration tests passing
* fix imports of models
* fix tests (excluding totals calculations)
* Fix commented code
* add unique constraint on discount condition
* Add generic way of generating retrieve configs
* Requested changes + ExactlyOne validator
* Remove isLocal flag from error handler
* Use postgres error constant
* remove commented code
* feat: Add `isValidForProduct` to check if Discount is valid for a given Product (#1172 )
* feat: Add `canApplyForCustomer` to check if Discount is valid for customer groups (#1212 )
* feat: Add `calculateDiscountForLineItem` (#1224 )
* feat: Adds discount condition test factory (#1228 )
* Remove use of valid_for
* Tests passing
* Remove valid_for form relations
* Add integration tests for applying discounts to cart
2022-03-24 16:47:50 +01:00
Oliver Windall Juhl
6603d3850a
chore: Replace old Medusa domain with new ( #1222 )
2022-03-22 15:46:51 +01:00
Oliver Windall Juhl
549ad3b907
fix: Add tax repo to withTransaction in region service ( #1126 )
2022-02-28 11:21:49 +01:00
Oliver Windall Juhl
7c31acb064
Add expand to /admin/customers/:id ( #1070 )
...
* fix: 1055 add expand to /admin/customers/:id
* fix tests
* fix tests
2022-02-25 18:53:49 +01:00
Oliver Windall Juhl
7a3a1837a1
fix: use /admin/returns/:id/receive for swap returns ( #1041 )
2022-02-25 18:53:49 +01:00
Oliver Windall Juhl
9bb544e967
bump ( #1040 )
2022-02-25 18:53:49 +01:00
Oliver Windall Juhl
93bc6a164a
chore: Add video guide for medusa-file-spaces ( #1090 )
2022-02-19 17:10:37 +01:00
Oliver Windall Juhl
25b2cd846e
chore: Add video guide for medusa-plugin-sendgrid ( #1088 )
2022-02-19 17:07:20 +01:00
Oliver Windall Juhl
e096804d32
chore: Add video deployment guide for Heroku ( #1086 )
2022-02-19 17:06:57 +01:00
Oliver Windall Juhl
9fda392aab
chore: Add video guide for medusa-payment-stripe ( #1087 )
2022-02-19 17:06:45 +01:00
Oliver Windall Juhl
1c601a7340
chore: Update README
2022-02-17 09:56:01 +01:00
Oliver Windall Juhl
9f4a9f7db4
Add expand to /admin/customers/:id ( #1070 )
...
* fix: 1055 add expand to /admin/customers/:id
* fix tests
* fix tests
2022-02-16 23:41:30 +01:00
Oliver Windall Juhl
7ae754bb61
fix: use /admin/returns/:id/receive for swap returns ( #1041 )
2022-02-15 14:15:00 +01:00
Oliver Windall Juhl
ba77fc920f
bump ( #1040 )
2022-02-11 15:54:37 +01:00
Oliver Windall Juhl
80e86ca08c
chore: Update README
2022-02-09 11:37:24 +01:00
Oliver Windall Juhl
362d106086
chore: Update company logo
2022-02-07 09:52:36 +01:00
Oliver Windall Juhl
59bb413245
fix: Updating store currencies ( #984 )
...
* fix: Adds default currency to store currencies on create
* fix: Adds integration tests + currency update error handling
* add test
* Lowercase currency codes
* fix tests
* fix: Await drop database to stop Jest from complaining
* revert itnegration tests fix
* fix store tests
2022-02-03 20:03:25 +01:00
Oliver Windall Juhl
fdc493df7f
fix: Support array of payment status filters when listing orders ( #1013 )
2022-02-01 17:24:13 +01:00
Oliver Windall Juhl
a0a21d15ef
fix: Adds default currency to store currencies on create ( #982 )
2022-01-10 16:08:26 +01:00
Oliver Windall Juhl
8782016095
fix(medusa-payment-klarna): Default shipping fee name in Klarna plugin ( #926 )
2021-12-15 13:18:25 +01:00
Oliver Windall Juhl
85ef51ad34
Adds admin giftcard API to medusa-js ( #921 )
2021-12-14 16:06:39 +01:00
Oliver Windall Juhl
006e67eea1
Adds admin invites API to medusa-js ( #922 )
2021-12-14 15:34:23 +01:00
Oliver Windall Juhl
4ffe50a798
Adds admin notes API to medusa-js ( #923 )
2021-12-14 15:27:31 +01:00
Oliver Windall Juhl
7f4a7cbed0
Adds DraftOrder Admin routes to JS client ( #920 )
2021-12-14 09:48:16 +01:00
Oliver Windall Juhl
2ca1a8762d
feat: Add Discount Admin endpoint to JS client ( #919 )
2021-12-14 09:47:15 +01:00
Oliver Windall Juhl
25fe224a10
feat: Adds Customer Admin routes to JS client ( #918 )
2021-12-13 21:32:47 +01:00
Oliver Windall Juhl
5c47184b10
feat: Adds Auth Admin API to medusa-js ( #917 )
2021-12-13 19:35:57 +01:00
Oliver Windall Juhl
6579c13111
feat: Admin shipping options routes to Typescript ( #891 )
2021-12-07 17:07:23 +01:00
Oliver Windall Juhl
33bdb8f06c
fix: Docs redirect to new domain ( #853 )
2021-12-01 15:39:01 +01:00
Oliver Windall Juhl
1de0b28f38
docs: Adds guides for plugins and storefront starters ( #840 )
2021-11-23 18:08:00 +01:00
Oliver Windall Juhl
ab84aca9cb
chore: Add medusa-js README ( #828 )
2021-11-23 09:14:02 +01:00
Oliver Windall Juhl
0380cdf0b2
docs: Adds new index page and design tweaks ( #833 )
2021-11-22 17:01:18 +01:00
Oliver Windall Juhl and Philip Korsholm
f387b4919f
fix: Addresses breaking change from library class-transformer ( #835 )
...
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
2021-11-22 13:39:38 +01:00
373532ecbc
feat: Typescript for API layer ( #817 )
...
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
Co-authored-by: Zakaria El Asri <33696020+zakariaelas@users.noreply.github.com >
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
Co-authored-by: Sebastian Rindom <seb@medusa-commerce.com >
2021-11-18 15:19:17 +01:00
Oliver Windall Juhl
1e50aee4fe
feat: Allow retrieval of soft-deleted products ( #723 )
2021-11-10 22:23:56 +01:00
Oliver Windall Juhl
6f4e128944
hotfix: Search service interfaces should import base from folder ( #766 )
2021-11-10 21:57:13 +01:00
Oliver Windall Juhl
5ce949f3b0
Revert "fix: make packages/medusa/src/api/routes/store/carts pass eslint ( #652 )" ( #689 )
...
Integration tests not passing.
2021-10-29 11:27:40 +02:00
Oliver Windall Juhl
3e68069a89
fix: Prepare routes for linting ( #603 )
2021-10-24 15:13:49 +02:00
Oliver Windall Juhl
94402a7204
Merge branch 'develop' into develop
2021-10-19 16:49:03 +02:00
Oliver Windall Juhl
9dd3a26a71
Merge branch 'develop' into chore/lint
2021-10-19 16:42:36 +02:00
Oliver Windall Juhl
d8e0f75406
docs: Deploying our Gatsby storefront on Netlify ( #443 )
2021-10-13 20:41:05 +02:00
Oliver Windall Juhl
61bd7de9a3
docs: Guide on deploying on DigitalOcean ( #483 )
2021-10-13 18:28:04 +02:00
Oliver Windall Juhl
a175560efa
chore: Update README
2021-10-07 20:34:08 +02:00
Oliver Windall Juhl
17b192fe37
fix: Throw on cart creation when no region exist ( #455 )
...
If you try to create a cart without a region in your setup, we should throw a proper error message.
2021-10-06 11:19:38 +02:00
Oliver Windall Juhl
66b17055ea
docs: Deploying on Qovery ( #456 )
2021-10-06 11:07:44 +02:00
Oliver Windall Juhl
337fc16c38
docs: Add fileservice guides for S3 and Spaces ( #430 )
...
* docs: Add fileservice guides for S3 and Spaces
* fix: remove we in s3 guide
* fix: typos in spaces guide
2021-10-01 12:58:44 +02:00
Oliver Windall Juhl
4c343e718d
fix: Add deploy admin link to guide ( #437 )
2021-10-01 09:29:46 +02:00
Oliver Windall Juhl
b930100479
docs: Deploying Medusa Admin on Netlify ( #431 )
2021-09-30 12:49:12 +02:00
Oliver Windall Juhl
ae0ab03fac
fix: Creating shipping options with requirements ( #428 )
2021-09-29 15:20:14 +02:00
Oliver Windall Juhl
ff9cc0fa41
docs: Deploying Medusa on Heroku ( #425 )
2021-09-28 19:31:50 +02:00
Oliver Windall Juhl
85de2039cc
hotfix: bug related to region update with no shipping address ( #415 )
2021-09-23 10:52:46 +02:00
Oliver Windall Juhl
c715077be5
hotfix: Stripe cancelPayment catch block ( #416 )
2021-09-22 13:42:31 +02:00
Oliver Windall Juhl
00ab03f3a2
feat: Allow backorder on swaps ( #404 )
2021-09-19 15:33:43 +02:00
Oliver Windall Juhl
61c85da1d4
docs: Checkout flow guide ( #396 )
2021-09-15 11:18:27 +02:00
Oliver Windall Juhl
27150959ff
fix: Ensure uniqueness for products, variants, collections and discounts ( #382 )
2021-09-10 16:03:44 +02:00
Oliver Windall Juhl
e2897e2a62
hotfix: Adds options to cloned RestockNotificationService ( #369 )
2021-09-02 17:49:02 +02:00
Oliver Windall Juhl
29f2b01f9c
chore: Update README
2021-08-27 10:26:53 +02:00
f76aa816a5
feat: Documentation and API reference ( #348 )
...
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com >
Co-authored-by: zakariasaad <zakaria.elas@gmail.com >
Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com >
Co-authored-by: Kasper <kasper@medusa-commerce.com >
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2021-08-24 18:16:42 +02:00
Oliver Windall Juhl
5d63b0c8d2
hotfix: Allow sale_amount product updates ( #346 )
2021-08-20 17:14:19 +02:00
Oliver Windall Juhl
fd14e243da
fix: Account for non-discountable items in getRefundTotal ( #347 )
2021-08-20 17:12:37 +02:00
Oliver Windall Juhl
44fce520aa
docs: Plugin overview ( #327 )
2021-08-05 10:41:01 +02:00
Oliver Windall Juhl
6053c4a8dd
feat: Add discountable flag to product ( #329 )
2021-08-05 10:40:12 +02:00
Oliver Windall Juhl
fb14ca7124
hotfix: Add swaps.additional_items relation to order total calculation ( #317 )
2021-07-16 10:29:03 +02:00
Oliver Windall Juhl
8838b506c8
hotfix(medusa): Optimize swap repository findOne and find ( #301 )
2021-07-02 14:43:06 +02:00
Oliver Windall Juhl
6358f8fc75
fix(medusa): Resolve issue with soft-delete and unique indexes in DB ( #296 )
2021-07-01 14:59:44 +02:00
Oliver Windall Juhl
c1bec4f843
cleanup: Eventbus, BP, Contentful, NotificationService ( #292 )
2021-06-24 17:56:02 +02:00
Oliver Windall Juhl
350603ac57
fix: Adds manual return option ( #290 )
2021-06-22 09:05:17 +02:00