Commit Graph

3485 Commits

Author SHA1 Message Date
github-actions[bot]
0be70113f9 chore: Version Packages (#4074)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 11:03:47 +02:00
Adrien de Peretti
9518efccae fix(medusa): Product repo typeorm issues (#4084)
* fix(medusa): Product repo typeorm issues

* chore: fixed category scopes

* WIP fix categories

* fix product repo to attach categories

* fix uni tests

* Create eighty-icons-exercise.md

* revert package.json

* fix change set

* last fixes

* cleanup iteration

* fix repository deep relations joining aliasing

* improve response time

* improve category test case

* fix free texts search

* fix repo

* centralise repository manipulation into utils and use the utils in the product repo

* fix product repo

* fix customer group

* update changeset

* fix customer group

* include feedback

* fix repo

* remove query strategy

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-05-16 09:36:52 +02:00
olivermrbl
26963acc0a chore(medusa): Minor bump 2023-05-16 09:04:20 +02:00
Adrien de Peretti
cdbac2c840 feat(medusa,utils): Add support for multiple where condition on the same column (#4046) 2023-05-15 21:04:03 +02:00
Oliver Windall Juhl
a86f0e815a chore(medusa): Expose ioredis options (#4073)
* chore(medusa): Expose ioredis options

* Create empty-clocks-tease.md
2023-05-15 18:56:23 +02:00
Shahed Nasser
7da6cc961e docs: used the NPX CLI tool across docs (#4099) 2023-05-15 11:04:14 +03:00
github-actions[bot]
23a0c5b71e chore(docs): Removed Docs Announcement Bar (automated) (#4097)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-05-15 09:50:07 +03:00
Oliver Windall Juhl
a666462333 feat(medusa): Cart custom query strategy (#4083) 2023-05-12 14:06:55 +02:00
Oliver Windall Juhl
6511959e23 chore: Revert to official Typeorm package (#4072) 2023-05-11 13:08:38 +02:00
Lacey Pevey
cfcd2d54fd fix(medusa-oas-cli): Add separator after tmpdir base (#3924)
* add separator after tmpdir base

* Create late-badgers-do.md

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-05-11 12:32:55 +02:00
github-actions[bot]
7963c16233 chore(docs): Generated API Reference (#4054)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-09 18:12:00 +03:00
github-actions[bot]
c95ebdfdb3 chore(docs): Generated Services Reference (automated) (#4055)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-09 17:53:18 +03:00
github-actions[bot]
81403746dd chore(docs): Generated Docs Announcement Bar (automated) (#4056)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-09 16:12:07 +02:00
Oliver Windall Juhl
aa1bc2bcf9 docs: Add 1.10.1 upgrade guide (#4053)
* Add guide

* Update docs/content/upgrade-guides/medusa-core/1-10-1.md

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

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-05-09 16:05:55 +02:00
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