Commit Graph

2202 Commits

Author SHA1 Message Date
Shahed Nasser
0703dd94e8 docs: add export options for minio (#2029) 2022-08-10 16:03:31 +03:00
Shahed Nasser
b5b3b5431e docs: added report issue link (#2028) 2022-08-10 14:54:33 +03:00
Shahed Nasser
1bc517da64 docs: improved cart documentation (#2027) 2022-08-10 14:54:15 +03:00
Shahed Nasser
cef081d2f2 docs: Change :id to {id} in OAS comments (#2015) 2022-08-08 16:35:13 +02:00
Shahed Nasser
1c6fcb2ede docs: added video track event (#2010) 2022-08-08 11:27:48 +03:00
Noru
edd93bbecb docs: fixed Next.js link in S3 plugin documentation (#2006) 2022-08-08 10:32:56 +03:00
Shahed Nasser
73383cc466 chore(docs): Refactor API Reference (#1883) 2022-08-05 14:06:12 +02:00
Shahed Nasser
b126ab4dec docs: update doocusaurus to 2.0.1 (#1997) 2022-08-04 19:09:36 +03:00
Shahed Nasser
3746099288 docs: added revert migration command (#1999) 2022-08-04 18:59:41 +03:00
Shahed Nasser
37423d3e91 chore: increase node version for docs test (#1998) 2022-08-04 18:58:48 +03:00
Debashis Biswal
95f5e918c6 docs: fix comma splice on introduction.md (#1967)
Co-authored-by: Debashis Biswal <debashisonsoftware@gmail.com>
2022-08-04 18:37:10 +03:00
Shahed Nasser
bf44294c6b docs: updated event reference (#1996)
* docs: updated event reference

* added note about sales channels
2022-08-04 18:03:01 +03:00
Shahed Nasser
02d5c1da88 docs: update Typedoc and regenerate references (#1994)
* generated new services reference

* changed from automatic push to automated pull request

* updated typedoc, regenerated JS Client reference

* regenerated the reference after updating typedoc

* added action for js client
2022-08-04 17:29:52 +03:00
olivermrbl
6663a6290b chore(release): Publish 2022-08-04 14:12:54 +02:00
Philip Korsholm
3cde817482 fix(medusa-file-minio): Add missing path import (#1991) 2022-08-04 12:35:30 +02:00
Adrien de Peretti
badda5233c fix(medusa-js): Allow payload in DELETE and POST (#1985) 2022-08-04 11:47:54 +02:00
Oliver Windall Juhl
b1f88f917b chore: Update yarn.lock + jest matchers in integration test (#1989) 2022-08-04 10:16:55 +02:00
olivermrbl
bc7c2d9c4a chore(release): Publish 2022-08-03 18:34:24 +02:00
olivermrbl
77ef28d274 Merge branch 'master' into develop 2022-08-03 18:03:14 +02:00
Shahed Nasser
5578fbe743 docs: Improved Algolia documentation (#1984)
* improved algolia documentation

* typo fix
2022-08-03 17:26:39 +03:00
Shahed Nasser
948a9f1188 docs: fixes to the meilisearch docs (#1979) 2022-08-03 14:27:23 +03:00
Shahed Nasser
736db771e6 docs: improved spaces documentation (#1978) 2022-08-03 12:17:56 +03:00
Shahed Nasser
acd73a7e6a docs: fixes to the digitalocean documentation (#1975) 2022-08-03 11:00:19 +03:00
Shahed Nasser
7aaf424b99 docs: show last updated time (#1972) 2022-08-02 17:47:51 +03:00
Shahed Nasser
d7328e6b73 docs: improved meilisearch docs (#1969) 2022-08-02 17:44:39 +03:00
Shahed Nasser
bb136530c1 docs: fix search in reference (#1971) 2022-08-02 17:30:33 +03:00
Shahed Nasser
36e2e7a4df chore: fix for deployment (#1970)
* fix for deployment

* fixed gitignore files to match that of the root

* add to gitignore in root
2022-08-02 17:16:18 +03:00
Philip Korsholm
87fc18137d Feat(medusa): Convert middleware service to typescript (#1936)
Fixes CORE-351
2022-08-02 12:43:55 +00:00
Philip Korsholm
6251aecdaa Feat/convert return reason service to typescript (#1961)
**What**
- Convert return reason service to typescript

Fixes CORE-355
2022-08-02 11:40:11 +00:00
olivermrbl
1dec44287d chore: Add changeset to version bump packages missing changesets 2022-08-02 13:18:01 +02:00
Adrien de Peretti
b603f7dc8f chore(medusa): Add transaction on mutation actions (2) (#1855)
**What**
Wrap all actions that require the usage of an atomic phase into a transaction from the handler

**Info**
The following end points have been removed since that they rely on non existing stuff and can't be used and are not used
admin - create-order
admin - delete order metadata
admin - set region metadata
admin - remove region metadata

Fixes CORE-358
2022-08-02 10:23:01 +00:00
Philip Korsholm
d530ac23d6 Feat(medusa): Convert inventory service to ts (#1937)
Fixes CORE-350
2022-08-02 09:56:57 +00:00
Shahed Nasser
5065b7bc5e docs: improved s3 documentation (#1965) 2022-08-02 11:34:05 +03:00
Adrien de Peretti
051bb16dd7 chore(medusa): Add transactions in mutating actions 2 (#1853)
* chore(medusa): Add transaction on mutation actions

* chore(medusa): continue refactoring

* chore(medusa): continue refactoring

* chore(medusa): continue refactoring

* feat(medusa): update invite service mock to provide a withTransaction

* feat(medusa): Include pr feedback

* feat(medusa): Cleanup idempotent places

* feat(medusa): Cleanup idempotent places

* feat(medusa): Better Cleanup idempotent places

* feat(meudsa): cleanup transaction

* fix(medusa): Create cart transaction usage

* fix(medusa): Use the right variable

* fix(medusa): Use the right variable

* fix(medusa): Transaction usage in cart creation flow
2022-08-02 10:04:43 +02:00
Richard Ward
2b574185ca docs: update create plugin docs (#1953)
* docs: update create plugin docs

Closes #1945 

This updates the documentation to add some troubleshooting to the [Create a Plugin page](https://docs.medusajs.com/advanced/backend/plugins/create)

* Add new section to plugin documentation and updated existing content

* Update docs/content/advanced/backend/plugins/create.md

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

* Update docs/content/advanced/backend/plugins/create.md

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

* Update docs/content/advanced/backend/plugins/create.md

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

* Update docs/content/advanced/backend/plugins/create.md

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-01 18:07:42 +03:00
Shahed Nasser
f5a42c43fd docs: improved segment documentation (#1956) 2022-08-01 17:50:30 +03:00
Richard Ward
db842b7da9 docs: add troubleshooting to medusa-file-s3 plugin (#1952)
* docs: add troubleshooting to medusa-file-s3 plugin

Closes #1943 

This updates the documentation to add some troubleshooting to the medusa-file-s3 plugin documentation.

The fix has been show to work with 2 installations so far - context is here: https://discord.com/channels/876835651130097704/877195433649258536/1003273089284571156

* Update docs/content/add-plugins/s3.md

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

* Update docs/content/add-plugins/s3.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-01 15:07:40 +03:00
Richard Ward
ee58c588f1 docs: last storage plugin is default - spaces (#1951)
* docs: last storage plugin is default

Add caution that only the last configured storage plugin will be used

* Update docs/content/add-plugins/spaces.md

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-01 14:57:52 +03:00
Richard Ward
33a3aa5e60 docs: last storage plugin is default - s3 (#1950)
* docs: storage plugin default

add caution that only last storage plugin will be used

* Update docs/content/add-plugins/s3.md

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-01 14:56:49 +03:00
Richard Ward
83f5ef1554 docs: last storage plugin is default - minio (#1949)
* docs: caution to say only last configured storage plugin will be used

Added a caution that only the lat configured storage provider will be used

* Update docs/content/add-plugins/minio.md

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-08-01 14:54:29 +03:00
Debashis Biswal
058e66a4d2 docs: fix typos for overview on the homepage.md 📕✏️ (#1954)
* Fix typos for overview in the homepage documentation file

* Rollback partial changes for overview on homepage.md as per PR(#1954) comment
2022-08-01 14:48:04 +03:00
Omar Moustafa
f26d0fcd53 docs: removed docs link from the footer (#1955)
Closes #1906
2022-08-01 14:47:33 +03:00
Olanrewaju Olatunde
aeb5c68d97 docs: Added a note to create PostgreSQL database (#1916)
* Added a note to create PostgreSQL database

* fixed grammar

* closed admonition

* fixed admonition
2022-08-01 12:21:57 +03:00
Adrien de Peretti
b54d5178c9 feat(medusa): Migrate and fix order service (#1894)
* feat(medusa): Migrate and fix order service

* fix(medusa): Order service pass Payment instead of the session:

* fix(medusa): Remove unnecessary method in the client library

* test(medusa): Fix unit tests

* test(medusa): Fix unit tests

* fix(medusa): Typo

* test(meduas): fix unit test

* feat(medusa): Update base service used and missing transaction

* test(meduas): fix unit test

* fix(medusa): cleanup and missing transaction

* fix(medusa): missing withTransaction on some mocks

* feat(medusa): Update order service method visibility

* include feedback

* feat(medusa); revert order payment status"

* test(medusa): fix unit

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-08-01 11:01:17 +02:00
Oliver Windall Juhl
1998902a94 fix(medusa-js): Use correct customer payment methods path (#1934) 2022-07-28 20:43:42 +02:00
Adrien de Peretti
3b28998421 feat(medusa): Create/update Product Sales Channels (#1870)
* feat(medusa): Allow to create/update object sales channels assignment

* feat(medusa): cleanup

* feat(medusa): Update oas

* feat(medusa): Only add relation if required

* feat(medusa): Add feature flag decorators

* style(medusa): PR feedback

* feat(medusa): Remove circular by moving sales channel product existence check to the repo layer

* feat(medusa): Reduce selected column as they are not necessary

* feat(medusa): Refactor repository and usage

* feat(medusa): Improve entity name formatting

* feat(medusa): Add feature flag to the service

* fix(medusa): typo

* test(medusa): fix unit tests

* feat(medusa): include feedback

* feat(medusa): Adds validator pipe for Sales Channel existence (#1930)

* feat(medusa): Allow to create/update object sales channels assignment

* feat(medusa): cleanup

* feat(medusa): Update oas

* feat(medusa): Only add relation if required

* feat(medusa): Add feature flag decorators

* style(medusa): PR feedback

* feat(medusa): Remove circular by moving sales channel product existence check to the repo layer

* feat(medusa): Reduce selected column as they are not necessary

* feat(medusa): Refactor repository and usage

* feat(medusa): Improve entity name formatting

* feat(medusa): Add feature flag to the service

* fix(medusa): typo

* test(medusa): fix unit tests

* feat(medusa): Adds validator pipe for Sales Channel existence

* feat: Move product payload classes to types file

* fix unit tests

* fix integration test

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>

* feat(medusa): Revert base repository and related

* feat(medusa): cleanup

* remove base repo export

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-07-28 20:19:30 +02:00
Philip Korsholm
5ce8839c54 add is_disabled to create sales channel (#1928)
**What**
- include `is_disabled` when creating a sales channel

**Why**
- To enable creation of draft sales channels
2022-07-28 14:17:11 +00:00
Frane Polić
97c48a5ab9 feat: invalidate product list hooks (#1931)
**What**
- invalidate cache on prodcut list hooks when a product is added/removed to/from a sales channel
2022-07-28 14:01:35 +00:00
Adrien de Peretti
7cb8095ed4 chore(medusa): Add transactions in mutating actions in store domain (#1858) 2022-07-28 11:48:55 +02:00
Frane Polić
3fbe8d7d08 feat(medusa): Validate LineItems in SalesChannel (#1871)
* wip: validate line item SC

* fix: repository type, remove relation, use sc id, check if cart has associated sc

* feat: setup tests and seeder, change entity retrieval in cart service method

* feat: remove repo usage and method, use Adrien's method from product service to check sc association, add test cases, add seeder entities, accept flag for validating sc on the endpoint

* feat: add a unit test to ensure validation method is called if flag is passed

* feat: allow `validate_sales_channels` flag in other relevant endpoints

* fix: typo

* fix: flag rename

* fix: correct FF in test suites

* fix: address PR feedback

* fix: change error message

* feat: remove query params, guard with FF, refactor

* feat: guard validation in the service

* refactor: rename validation method

* refactor: reorganise tests

* wip: cleanup test file

* wip: revert cart seeder changes use factories

* fix: remove seeder, update mocks

* fix: method name

* fix: units, validate by default

* git: resolve merge conflicts

* refactor: separate line item sales chanel units

Co-authored-by: fPolic <frane@medusajs.com>
2022-07-27 21:39:06 +02:00