Commit Graph

2038 Commits

Author SHA1 Message Date
adrien2p
9b5354502f test(medusa): Fix test pipelines 2022-05-10 11:09:52 +02:00
Adrien de Peretti
eae37d8449 Merge pull request #1344 from adrien2p/feat-improveNewBaseService
feat(medusa): Move BaseService to the core and refactor it as part of the new TransactionBaseService
2022-05-09 17:05:18 +02:00
Adrien de Peretti
90870292c6 fix(medusa): Remove line-item.js file (#1414) 2022-05-09 09:52:15 +02:00
Adrien de Peretti
c67d6bee30 fix(medusa): PluginLoaders when loading services should only look for js files (#1473) 2022-05-09 09:42:47 +02:00
Adrien de Peretti
525910f72a fix(medusa-file-spaces): Allow duplicate filenames (#1474) 2022-05-09 09:41:18 +02:00
Zakaria El Asri
f71b9b3a87 fix(medusa): support searching for price lists (#1407) 2022-05-08 18:45:18 +02:00
Kasper Fabricius Kristensen
e7cb76ab6e fix: Cascade remove prices + option values on variant and product delete (#1465) 2022-05-08 16:12:31 +02:00
Philip Korsholm
e2d08316dd fix: Use correct product price when fetching product for pricelist (#1416) 2022-05-08 13:03:29 +02:00
Shahed Nasser
98f5c4ec8b fix(medusa-js): Updated URLs for JS Client (#1435) 2022-05-06 14:54:04 +02:00
Shahed Nasser
51bd461dce add segment for API reference 2022-05-06 15:53:48 +03:00
Shahed Nasser
a78d594542 added integration 2022-05-06 15:45:05 +03:00
adrien2p
f5edaf51ea fix(medusa): Proper fix of the cart service 2022-05-06 10:31:02 +02:00
adrien2p
32a65d27fc test(medusa): Add a test to check that the shipping_address is not erase when an id is have been given 2022-05-05 15:28:33 +02:00
adrien2p
c442be47d4 fix(medusa): CartService lost shipping address when using the id 2022-05-05 15:07:00 +02:00
Shahed Nasser
6cfd007742 Merge pull request #1458 from shreedharhegde99/docs/send-grid
Docs: Heading "Order Cancelled" changed to "Order Canceled" .
2022-05-05 12:48:24 +03:00
Adrien de Peretti
3c75a65792 fix(medusa): MoneyAmountRepository#findManyForVariantInRegion sql statement for constraint related to price_list (#1462) 2022-05-05 07:56:34 +02:00
adrien2p
3ad91741b2 feat(medusa): Move some typings into the common types 2022-05-04 16:01:04 +02:00
Philip Korsholm
2260c2d09e fix(medusa-cli): allow spaces in develop command (#1430) 2022-05-04 08:44:37 +02:00
adrien2p
f7ef3aac36 feat(medusa): Rename base-service.spec to transaction-base-service.spec 2022-05-03 09:22:00 +02:00
adrien2p
978ee98dc3 refactor(medusa): Improve proposal in cartService use arguments to pass to the super 2022-05-02 18:08:03 +02:00
adrien2p
ff9ff21487 feat(medusa): Update TransactionBaseService methods visibility 2022-05-02 13:38:15 +02:00
olivermrbl
ae5801c518 chore(release): Publish
- gatsby-source-medusa@0.1.0
 - @medusajs/medusa-cli@1.3.0
 - medusa-file-s3@1.1.0
 - medusa-file-spaces@1.2.0
 - medusa-fulfillment-webshipper@1.3.0
 - medusa-interfaces@1.3.0
 - @medusajs/medusa-js@1.2.0
 - medusa-payment-klarna@1.3.0
 - medusa-payment-paypal@1.2.0
 - medusa-plugin-add-ons@1.2.0
 - medusa-plugin-algolia@0.2.0
 - medusa-plugin-brightpearl@1.3.0
 - medusa-plugin-contentful@1.2.0
 - medusa-plugin-ip-lookup@1.2.0
 - medusa-plugin-meilisearch@0.2.0
 - medusa-plugin-segment@1.3.0
 - medusa-plugin-sendgrid@1.3.0
 - medusa-plugin-slack-notification@1.3.0
 - medusa-plugin-twilio-sms@1.2.0
 - medusa-react@0.3.0
 - medusa-source-shopify@1.2.0
 - @medusajs/medusa@1.3.0
2022-05-01 15:16:35 +02:00
olivermrbl
d0675dc8b5 fix: merge conflicts 2022-05-01 14:58:28 +02:00
Shahed Nasser
56e79d334e fix(medusa-plugin-twilio-sms): fix name in README (#1457) 2022-05-01 11:56:41 +02:00
Shahed Nasser
a4bb92305b fix: removed unnecessary links from sidebar (#1456) 2022-05-01 11:55:50 +02:00
Shreedhar Hegde
508412b6c5 heading "Order Cancelled" changed to "Order Canceled" in sendgrid.mdx file 2022-04-30 18:48:30 +05:30
Shahed Nasser
f14b3d7f28 updated development 2022-04-29 16:01:54 +03:00
Shahed Nasser
6f4d1d8f34 Revert "updated development guide"
This reverts commit def2fb8543.
2022-04-29 15:57:43 +03:00
Shahed Nasser
def2fb8543 updated development guide 2022-04-29 15:56:15 +03:00
Shahed Nasser
f98d781fc7 Merge pull request #1417 from medusajs/docs/dark-mode
Docs: Add dark mode for both documentation and API reference
2022-04-29 14:26:41 +03:00
Shahed Nasser
9ff5dc98ed Merge pull request #1438 from gregorymark/docs/sendgrid
Replace `cancelled` typo with `canceled` in docs
2022-04-29 13:30:43 +03:00
Shahed Nasser
b2dc7374f2 Merge branch 'master' into docs/dark-mode 2022-04-29 13:27:59 +03:00
Shahed Nasser
b15738ac95 removed logo muted 2022-04-29 13:27:30 +03:00
Shahed Nasser
260a24981e Merge pull request #1441 from shreedharhegde99/docs/docusaurus-admonitions
Docs : Added docusaurus admonitions to set-up-your-development-environment.md
2022-04-28 16:38:46 +03:00
Shreedhar Hegde
8b4e479544 added docusaurus admonitions to set-up-your-development-environment.md 2022-04-28 16:04:16 +05:30
Shahed Nasser
f0ad555a25 Merge pull request #1420 from shreedharhegde99/docs/docusaurus-admonitions
Docs : Added docusaurus admonitions to docs
2022-04-28 12:14:23 +03:00
Shreedhar Hegde
a34e32301c modified docusaurus admonitions in notification-api.md and transaction-error-in-checkout.md files. 2022-04-28 13:23:38 +05:30
Shreedhar Hegde
c1fac27ccf modified docusaurus admonitions of the files as suggested 2022-04-28 09:35:04 +05:30
Shreedhar Hegde
a0e3f00437 Merge branch 'docs/docusaurus-admonitions' of github.com:shreedharhegde99/medusa into docs/docusaurus-admonitions 2022-04-28 08:28:59 +05:30
Shreedhar Hegde
e008814b2a modified docusaurus admonitions to docs 2022-04-28 08:28:21 +05:30
Shreedhar Hegde
1241fb7b2c added docusaurus admonitions to docs 2022-04-28 08:28:21 +05:30
Greg Hannan
ab4a141f73 Replace cancelled typo with canceled in docs as implementing the docs was causing notifications to not send emails. 2022-04-27 13:41:16 +01:00
olivermrbl
d7971ba604 fix: merge conflicts with master 2022-04-27 14:21:03 +02:00
Shahed Nasser
d162cef4c8 Merge pull request #1422 from shreedharhegde99/docs/heading-level-for-constructor
Docs : Corrected heading level for constructor
2022-04-27 14:19:58 +03:00
Shahed Nasser
10b2115d9d Merge pull request #1421 from shreedharhegde99/docs/link-to-shipping-architecture-overview
Docs : Added link to Shipping Architecture Overview
2022-04-27 14:17:24 +03:00
Philip Korsholm
00fd096d25 Feat: Discount migration (#1214)
* 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

* initial

* add migration scripts

* make getMigrationsFolder generic

* add datamodel migration command

* add datamodel run to migraitons cli

* remove data migration code from migrations

* add inner join

* add migration script for discount migration

* redo all script changes after adding script file

* address pr feedback

* cherrypick files from develop

* remove unused import

* suggestions

* Update packages/medusa/src/scripts/discount-rule-migration.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* fix: revert rule id to dr_id

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2022-04-27 10:25:04 +02:00
Philip Korsholm
40b63d092a fix: Invoke canCalculate with an entire shipping option (#1397) 2022-04-26 22:11:48 +02:00
Zakaria El Asri
b8f1ae9ff5 feat: line item adjustment migration script (#1255) 2022-04-26 16:05:33 +02:00
Philip Korsholm
f7386bf4b3 fix: Update is_giftcard type when filtering products (#1427)
* transform is_giftcard parameter and default to false

* add test for non gift_cards

* make default optional
2022-04-25 14:55:33 +02:00
Shreedhar Hegde
1d138709e2 modified docusaurus admonitions to docs 2022-04-25 16:25:10 +05:30