Commit Graph

3471 Commits

Author SHA1 Message Date
Oliver Windall Juhl
ebfc8777f0 fix(workflows): Script name 2023-05-09 15:59:16 +02:00
olivermrbl
27ff5a7f52 chore: Release 2023-05-09 15:52:14 +02:00
github-actions[bot]
a8f43055db chore: Version Packages (#4020)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 15:49:04 +02:00
Riqwan Thamir
aa74ebb181 fix(admin-ui): ensure that sales channel names are always an array (#4049) 2023-05-09 12:25:43 +02:00
Kasper Fabricius Kristensen
2829537592 fix(admin-ui): Template download path (#4050)
* pin react-router-dom

* fix template download path

* add changeset
2023-05-09 12:13:54 +02:00
Oliver Windall Juhl
1e404b43dc chore(workflows): Automate Discord message (#4047) 2023-05-09 11:16:38 +02:00
Philip Korsholm
353fc94e4f feat(admin-ui): Manage inventory toggle (#4041) 2023-05-08 18:44:27 +02:00
Lacey Pevey
1ea57c3a69 chore(utils): update class-validator to 0.14.0 (#4032)
* update class-validator to 0.14.0 in utils package

* Create new-jokes-relax.md

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-05-08 18:29:31 +02:00
Shahed Nasser
a8887cd02f docs: added idempotency key documentation (#4039) 2023-05-08 19:21:07 +03:00
Shahed Nasser
e9ca647a1d docs: added taxes conceptual guide (#3975)
* docs: added taxes conceptual guide

* fixed metadata

* added an example for the tax provider
2023-05-08 13:41:59 +03:00
Shahed Nasser
bd2a06f48c docs: added more details on variant pricing (#4035)
* docs: added more details on variant pricing

* Update manage-products.mdx

* Update products.md

* Update show-products.mdx

* shortened down the price details in the admin guide
2023-05-08 13:06:14 +03:00
Shahed Nasser
a4e614f658 docs: fix events link (#4036)
Fix events link in medusa development page
2023-05-08 12:42:16 +03:00
Frane Polić
a8e73942e6 feat(medusa): handle product categories in import/export strategies (#3842)
**What**
- add ProductCategories to import and export strategies
- refactor ProductCategoriesService methods to use "retrieve_" pattern

---

RESOLVES CORE-1275
2023-05-08 08:58:11 +00:00
Frane Polić
0c58ead6d8 fix(medusa): Validate customer_id when completing a cart (#3967) 2023-05-07 13:12:06 +02:00
Philip Korsholm
eff9f4c6f9 chore(medusa-plugin-contentful): Cleanup plugin (#3990) 2023-05-07 13:01:12 +02:00
patpich
3d6bcaaf65 fix(medusa): ShippingOptionService.list method param type (#4018)
## What

Fix typing on ShippingOptionService.list selector parameter

## Why

A backend server interfacing with the `ShippingOptionService.list()` method will throw TS error when attempting to pass selector values that should be valid.

## Steps to reproduce

* In a IDE that can display TS errors
* Create an instance of the ShippingOptionService
* Call the `list()` method on the instance with the following selector parameter: `{ region_id: "foobar" }`
* Expect: No TS error
* Actual: `TS2345: Argument of type '{ region_id: string; }' is not assignable to parameter of type 'Selector<ShippingMethod>'.`

## How

* Change the `selector` type to `Selector<ShippingOption>`
2023-05-07 10:52:45 +00:00
Adrien de Peretti
cff54d7325 fix(medusa-payment-stripe): Catch on idempotency key retrieve if not found (#4025)
**What**
In case the idempotency key is not found, an error will be thrown. We actually want to catch this error and create the key if it does not exists
2023-05-05 14:54:38 +00:00
patpich
ff37cd190f fix(search): add missing default product relations (#4008)
* fix(search): add missing default product relations

Add missing default product relations for events calling SearchService.addDocuments

For the following events: `ProductService.Events.UPDATED,  ProductVariantService.Events.CREATED, ProductVariantService.Events.UPDATED]`,
`SearchService.addDocuments` will fail due to `product` missing its `variants` relations.

The issue can be observed with the Algolia plugin where `reduce` is being attempted on `product.variants`.
https://github.com/medusajs/medusa/blob/develop/packages/medusa-plugin-algolia/src/utils/transformer.ts#L14

Implement the same retrieve pattern as `handleProductCreation` method.

* chore(changeset): patch

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-05-05 13:04:56 +02:00
Derek Wene
bd53adb238 fix(medusa): has-changes (#4023)
* fix(medusa): has-changes

* add changeset
2023-05-05 11:05:20 +02:00
Shahed Nasser
afd79c9c39 docs: added details about overriding scheduled jobs (#4021)
* docs: added details about overriding scheduled jobs

* remove link

* eslint fixes
2023-05-04 20:02:34 +03:00
Shahed Nasser
e046aa17db docs: added loaders documentation (#4019)
* docs: added loaders documentation

* added a link to the loaders documentation
2023-05-04 18:55:50 +03:00
Philip Korsholm
7fd22ecb4d feat(client-types, types, medusa, inventory): Inventory item and reservation item datamodel updates (#3971)
* add fields

* add title in migration

* update api endpoints to reflect datamodel changes

* update migration exports for inventory module

* add changeset

* add created_by for reservation item
2023-05-04 17:25:48 +02:00
Shahed Nasser
09e206fc1b docs: added search service documentation (#4017)
* docs: added search service documentation

* added a note about search plugins

* eslint fixes
2023-05-04 17:43:07 +03:00
github-actions[bot]
0dbca9552e chore(docs): Generated API Reference (#4014)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-04 14:23:29 +03:00
Shahed Nasser
a5707b48fc docs: added create file service guide (#4009)
* docs: added create file service guide

* fix eslint
2023-05-04 13:51:12 +03:00
github-actions[bot]
2394c533d3 chore(docs): Generated Services Reference (automated) (#4015)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-04 12:37:29 +03:00
github-actions[bot]
cb66cd2a06 chore(docs): Generated Docs Announcement Bar (automated) (#4016)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-05-04 11:08:15 +02:00
Shahed Nasser
98f70550cd docs: added an upgrade guide for v1.10.0 (#4013)
* docs: added an upgrade guide for v1.10.0

* removed redis update command

* small text fix

* Update 1-10-0.md

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-05-04 11:08:01 +02:00
olivermrbl
731f05d3e1 chore: Release 2023-05-04 10:53:28 +02:00
github-actions[bot]
6b2bcc1a36 chore: Version Packages (#3942)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 10:51:13 +02:00
Oliver Windall Juhl
440110493e chore(workflows): Temporarily disable automated releases 2023-05-04 10:12:28 +02:00
Oliver Windall Juhl
284f1eed9a fix(medusa): Only set product availability + prices if requested (#4010)
* fix(medusa): Only set product availability if variants are requested

* Add checks to get products as well

* Create nasty-fans-suffer.md
2023-05-04 09:29:13 +02:00
Adrien de Peretti
0e488e71b1 fix(medusa, types, utils, event-bus-local): Revert retrieveSubscribers (#4002)
* fix(medusa, event-bus-redis, event-bus-local): Revert retrieveSubscribers as the wildcard prevent us from filtering

* Create calm-eggs-collect.md

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-05-03 18:55:45 +02:00
Shahed Nasser
bcaaa0288b docs: added how to override strategy documentation (#4004) 2023-05-03 19:09:55 +03:00
Shahed Nasser
3a585cbdb3 docs: added manage invites documentation (#4001)
* docs: added manage invites documentation

* eslint fixes

* fixed indentation
2023-05-03 18:26:56 +03:00
Philip Korsholm
d2443d83e6 initial create-swap with sales channel (#3998) 2023-05-03 17:03:33 +02:00
olivermrbl
8b93bae8f8 chore(medusa): Minor bump 2023-05-03 16:37:43 +02:00
Kasper Fabricius Kristensen
a7adb8fbf4 fix(admin-ui): Pin react-router-dom (#3999)
**What**
- Pins the version of `react-router-dom` to `6.8.0` as the upgrade to `6.11.0` broke usage of `useNavigate` in nested routes.
2023-05-03 14:31:18 +00:00
Shahed Nasser
f9886a5b9f docs: added manage users documentation (#4000)
* docs: added manage users documentation

* fix link
2023-05-03 17:16:08 +03:00
Shahed Nasser
b8e976ecab docs: added how to manage user profile guide (#3997) 2023-05-03 16:41:45 +03:00
Kasper Fabricius Kristensen
596566a510 fix(admin-ui): Navigating to tax settings should not break URL (#3989)
* fix navigation to taxes page, and switch out react-helmet with react-helemt-async

* add changeset

* pinpoint react-hot-toast
2023-05-03 13:40:04 +02:00
Leon Alvarez Del Canto
6c0dcc20c9 docs: fix create category curl example (#3962)
* Fix create category curl example

Fix trailing comma on category create example

* Update create-product-category.ts

Fix trailing comma example

* Update manage-categories.mdx

remove trailing comma

* Revert

* Update manage-categories.mdx

Fix curl example
2023-05-03 14:36:09 +03:00
Philip Korsholm
9838723192 fix(medusa): Performance improvement for variant availability (#3921)
**What**
- refactor availability invocations to only do one call to the inventory module

@adrien2p would love to run through some tests of this with you and get your take on approach
2023-05-03 09:17:55 +00:00
Shahed Nasser
f8532cb7fd docs: added send invitation guide (#3994)
* docs: added send invitation guide

* eslint fixes
2023-05-03 12:05:07 +03:00
Shahed Nasser
d44737c049 docs: added user conceptual guide (#3993) 2023-05-03 11:34:22 +03:00
Oliver Windall Juhl
b7a7826394 feat(medusa): Use query relation load strategy on Carts (#3984) 2023-05-02 21:10:44 +02:00
Riqwan Thamir
4e8045a0ac fix(medusa): Use query relation load strategy on Products (#3926)
* fix(medusa): products retrieve uses query strategy for performance

* chore: packaged version of medusa typeorm fix

* chore: update path

* chore: stock locations uses typeorm version

* chore: resolve typeorm to medusa package

* chore: Update medusa project in CI action

* chore: temp disable transaction timeout for plugins

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2023-05-02 19:37:44 +02:00
Shahed Nasser
c04cbbaa1b docs: fixed cors import in endpoints documentation (#3987)
Fixed import of the `cors` package to the following:

```ts
import * as cors from "cors"
```
2023-05-02 19:57:42 +03:00
Shahed Nasser
d5d1c4c102 docs: added manage tax rates documentation (#3986) 2023-05-02 19:43:26 +03:00
Oliver Windall Juhl
d539c6feeb chore: Bump Typeorm to Medusa fork (#3981)
* chore: Bump typeorm to medusa fork

* Update types + utils

* Bump integration test suites

* Create good-parents-prove.md
2023-05-02 14:37:19 +02:00