Commit Graph

2503 Commits

Author SHA1 Message Date
olivermrbl
8b44618e7c fix: Merge conflicts with master 2022-10-21 14:21:06 +02:00
Ketan Saraf
26627c69a9 docs: fix broken link redis (#2481)
* fix: fixed broken link redis

* Update docs/content/advanced/backend/notification/how-to-create-notification-provider.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-10-20 21:42:49 +03:00
Adrien de Peretti
299c4ae7f5 feat(medusa): Align product import and export (#2471)
**What**

Create a data structure that facilitate the addition of new column descriptor for both export and import and ensure that the column name is shared between bother import and export to facilitate the import with an exported file. 

**Tests**

Add an additional integration tests that export a file, update the data, and re import the same file

FIXES CORE-716
FIXES CORE-713
2022-10-20 14:48:34 +00:00
Adrien de Peretti
13611e3e53 fix(medusa): Select config should be undefined if length === 0 (#2469) 2022-10-20 13:25:23 +02:00
Shahed Nasser
a03bdaf375 docs: added core package to troubleshooting step (#2473) 2022-10-19 20:07:07 +03:00
Adrien de Peretti
2f00bd100a chore(medusa): Move formatException to the errorHandler to be always applied and not have to apply it manually (#2467)
**What**

Move the usage of the formatException to the errorHandler level in order to not have to try catch here and there to apply it. Also make our error handling uniformed and avoid forgetting to apply it.

FIXES CORE-721
2022-10-19 16:22:42 +00:00
Kasper Fabricius Kristensen
fcfb7d167b fix(medusa): Allow AddressPayload or string on DraftOrder creation (#1902) 2022-10-19 18:01:08 +02:00
Adrien de Peretti
8be67c734c feat(medusa): Filter product list by discount condition id (#2464) 2022-10-19 11:23:33 +02:00
Adrien de Peretti
9deec0fc3c fix(medusa): Idempotency workStage used within transaction (#2358) 2022-10-19 10:47:31 +02:00
Philip Korsholm
3c5e31c645 fix(medusa, medusa-file-*): Protected uploads for file services (#2433) 2022-10-18 10:46:47 +02:00
Oliver Windall Juhl
7d77d91a3d chore: Automate staging releases with action (#2458) 2022-10-17 18:11:49 +02:00
Frane Polić
73db8cfca6 feat: list OE by order id (#2457)
**What**
- allow passing `order_id` param to OE list endpoint
2022-10-17 15:34:20 +00:00
Adrien de Peretti
48411157b1 feat(medusa): Support batch remove resources on discount condition (#2444)
**what**
- Add support to remove resources by batch on discount conditions
- Add support on medusa-js and medusa-react

**Tests**
- Add integration tests to validate that the resources have been deleted and the length is the one expected
- Add unit tests on medusa react

FIXES CORE-609
2022-10-17 09:03:38 +00:00
Shahed Nasser
479ae1e257 docs: Added automated freshness check (#2428)
* docs: created freshness check script

* added github action
2022-10-17 10:01:45 +03:00
github-actions[bot]
cae71fee0f chore(docs): Removed Docs Announcement Bar (automated) (#2452)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-10-17 09:59:50 +03:00
Shahed Nasser
554360ba19 docs: added missing import in Create Service docs (#2446) 2022-10-14 15:02:46 +03:00
Shahed Nasser
f79698838c docs: changed heroku based on their plan changes (#2441) 2022-10-13 17:57:44 +03:00
Shahed Nasser
6335f166e7 docs: changed JavaScript files to TypeScript (#2440) 2022-10-13 17:40:19 +03:00
Adrien de Peretti
765a2cccda Feat/add discount condition batch (#2430)
* feat(medusa): Allow to add items to a discount condition by batch + cleanup of discounts and discount conditions end points

* style(medusa): cleanup catch and log

* feat(medusa-react, medusa-js): Add support to add item batch to discount condition

* cleanup

* cleanup

* rename items to resources

* fix(medusa-js): url

* Create fast-suns-repair.md

* update naming

* tests(integration): Update tests to reflect API changes

* feat(medusa): Delete a condition should be idempotent on discount and condition

* revert
2022-10-13 16:34:06 +02:00
Shahed Nasser
358b52cf4f docs: added Dependency Container documentation (#2439) 2022-10-13 16:25:50 +03:00
Adrien de Peretti
143f8543e5 feat(medusa, medusa-js, medusa-react): Support listing order edits (#2436)
* feat(medusa, medusa-js, medusa-react): Support listing order edits

* feat(medusa): Update OAS

* fix oas

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-10-13 14:44:08 +02:00
Akarsh Jain
2e350b204c docs: added missing tabs in Create a Batch Job Strategy documentation (#2434)
Fixes: 2423
2022-10-13 15:20:50 +03:00
Zainab Lawal
60cd94fd60 docs: added missing import for add cart functionality documentation (#2425)
* Add missing import for add cart functionality file

* Added the Tab section to the Update Cart section

* Removed unnecessary spaces
2022-10-13 12:59:08 +03:00
Kasper Fabricius Kristensen
69e579758f fix(medusa, medusa-js): Use price selection strategy for GET /admin/variants (#2270)
**What**
- Adds the use of price selection strategy to the endpoint `GET /admin/variants`
- Updates medusa-js to reflect this change (expanding the parameters).

**Testing**
- Adds a new integration test validating that returned variants are now of type PricedVariant, with the expected fields: original_price, calculated_price, etc.

**Why**
- Our current RMA flows (in our admin dashboard) relied heavily on simply using `order.tax_rate` to calculate variant prices in the different RMA menus. As taxes in Medusa, have become feature complete this approach had become very naive and has several potential issues. Moving the responsibility for calculating the correct prices guarantees that we always show the correct prices to admins.
2022-10-13 08:54:03 +00:00
Kasper Fabricius Kristensen
211720f24c fix(medusa): List products by type_id (#2427)
**What**
- Fixes `GET /products` in both admin and store API so they no longer accept the param `type?: string`, but instead accept `type_id?: string[]`

**Why**
- Filtering by type would never return any products as `ptyp_:id` !== `ProductType`.

**Testing**
- Added an integration test for each endpoint.

Closes CORE-695
2022-10-12 18:56:56 +00:00
Frane Polić
05f921711f fix(medusa): Product import - allow null product type (#2424)
**What**
- allow the product type field to be null

**How**
- in case the type is `null`, pass `undefined` as the value of type prop to product create/update services, otherwise pass an object with `{value}` which will be upserted

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-10-12 12:43:41 +00:00
Oliver Windall Juhl
4013c0c5da chore: Update README.md 2022-10-12 14:38:07 +02:00
Philip Korsholm
bb75a0bc5e fix(medusa): Ensure no orphan product option values (#2408) 2022-10-12 12:48:50 +02:00
Frane Polić
69ef713854 fix(medusa): remove changes when deleting order edits (#2420)
**What**
- when deleting an OE cloned items are deleted, this would fail if there were changes associated with the OE since line items were referenced from the item changes and couldn't be deleted

**How**
- when deleting an order edit also remove it's item changes

Fixes CORE-689
2022-10-12 08:04:29 +00:00
Sebastian Rindom
196595cb65 fix(medusa-dev-cli): Avoid dev cli auth (#2360) 2022-10-12 09:45:45 +02:00
olivermrbl
5efbee32b9 Merge branch 'master' into develop 2022-10-12 09:30:15 +02:00
olivermrbl
93bf1118eb chore(release): Publish 2022-10-12 09:29:39 +02:00
olivermrbl
5cb7618a22 chore: Add changeset for medusa-core-utils 2022-10-12 09:27:25 +02:00
Adrien de Peretti
c717442451 feat(medusa): Allow to filter collections by discount condition id (#2411) 2022-10-11 16:14:10 +02:00
Shahed Nasser
f1605ae2a1 docs: migrated from javascript to typescript (#2398) 2022-10-11 16:36:08 +03:00
Shahed Nasser
2ac8d8e979 docs: added a note about generate command (#2418) 2022-10-11 16:33:21 +03:00
Shahed Nasser
8ca9354c50 docs: updated js client reference (#2414)
* docs: updated js client reference

* docs: fixed link
2022-10-11 16:32:41 +03:00
github-actions[bot]
b3ebc78b95 chore(docs): Generated Entities Reference (automated) (#2415)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-10-11 16:11:35 +03:00
github-actions[bot]
10b9b0dc49 chore(docs): Generated API Reference (#2417)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-10-11 16:11:11 +03:00
Shahed Nasser
c4c83c9717 docs: fixed some types in oas comments (#2413) 2022-10-11 16:05:39 +03:00
Shahed Nasser
53e34d33d9 docs: update announcement version (#2412) 2022-10-11 14:58:02 +03:00
Frane Polić
308b99cc5d fix(medusa-react): OrderEdit add item hook renaming (#2392) 2022-10-11 12:28:24 +02:00
Adrien de Peretti
a9c703d56c feat(medusa): Allow to query product tags by condition id (#2340) 2022-10-11 11:24:50 +02:00
Shahed Nasser
18e7f57852 docs: added how-to use sales channels guide (#2345)
* docs: added how-to use sales channels guide

* fix link

* docs: added link to sidebar
2022-10-11 11:42:56 +03:00
Shahed Nasser
8ec89d0977 docs: added user guide for import prices (#2268) 2022-10-11 11:06:02 +03:00
Shahed Nasser
7c30c249dc docs: added import prices how-to (#2266) 2022-10-11 11:05:37 +03:00
Shahed Nasser
78e7361f7e docs: added missing date typecast in release script (#2409) 2022-10-11 10:43:40 +03:00
Shahed Nasser
14d4b9d95c chore: generate API reference (#2410) 2022-10-11 10:30:45 +03:00
Adrien de Peretti
94c242f476 feat(medusa): Allow to filter customer groups by discount condition id (#2346) 2022-10-11 08:39:21 +02:00
Adrien de Peretti
19ca18e71c feat(medusa): Allow to query product types by discount condition id (#2359) 2022-10-11 08:36:08 +02:00