Commit Graph

1219 Commits

Author SHA1 Message Date
Sebastian Rindom
30b6a793f1 chore: add lint-staged + husky 2021-10-12 22:09:46 +02:00
Sebastian Rindom
f02cb638db chore: remove packages/*/.eslintrc|.prettierrc 2021-10-12 21:24:01 +02:00
Sebastian Mateos Nicolajsen
84d4d791ea feat: allow product selection on discounts allocated to a specific item (#395) 2021-10-11 13:46:32 +02:00
Mark
3d891c9b4f Issue #442 Prettier rules not applied to some integration tests files (#445) 2021-10-08 12:11:58 +02:00
Vilfred Sikker Dreijer
fe0696569c Feat/bancontact payment (#452)
* add bancontact stripe payment

* rename to BancontactProviderService
2021-10-07 11:01:37 +02:00
Oliver Windall Juhl
17b192fe37 fix: Throw on cart creation when no region exist (#455)
If you try to create a cart without a region in your setup, we should throw a proper error message.
2021-10-06 11:19:38 +02:00
Sebastian Rindom
eb95b4d7bc Merge remote-tracking branch 'origin/master' into develop 2021-10-01 13:20:24 +02:00
Sebastian Rindom
27ebe2aaf9 Merge release/next 2021-10-01 13:20:00 +02:00
Sebastian Rindom
70c101c8a5 merge master 2021-10-01 13:00:53 +02:00
Oliver Windall Juhl
337fc16c38 docs: Add fileservice guides for S3 and Spaces (#430)
* docs: Add fileservice guides for S3 and Spaces

* fix: remove we in s3 guide

* fix: typos in spaces guide
2021-10-01 12:58:44 +02:00
Oliver Windall Juhl
4c343e718d fix: Add deploy admin link to guide (#437) 2021-10-01 09:29:46 +02:00
Kasper Fabricius Kristensen
22f3f2af93 fix: shipping option updates (#426)
* fix to remove req

* tested fix
2021-10-01 08:18:56 +02:00
Oliver Windall Juhl
b930100479 docs: Deploying Medusa Admin on Netlify (#431) 2021-09-30 12:49:12 +02:00
pKorsholm
cd4afd1576 fix(medusa): hide password hash (#429)
* auth tests

* customer auth tests

* user auth test

* store auth snapshot

* auth snapshot

* auth with deleted password hashes

* manual field input for test scripts

* fix circleci with double retrieve of user and customer

* add email validation to user

* fix: cleanup

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2021-09-30 12:19:37 +02:00
pKorsholm
9b64828ec3 Feat:discount expiration date (#403)
* discount expiration validation and testing

* integration testing

* double quotes

* add iso8601 package

* api testing

* add joi validation of start and end dates as well as valid_duration

* valid_duration column

* service testing

* discount validation in services

* integration test with invalid date interval

* include valid_duration when fetching a discount

* rename variable for clarity

* add test for dynamic discount with expiration date

* remove debug code

* adjust tests to reflect valid_duration being included in default fields

* additional discount update validation

* fixed failing test

* set ends_at on dynamic discount creation

* discount integration tests

* removed unused console.log

* removed validation of dynamic discounts by duration and added ends_at to dynamic discount creation

* integration tests for dynamic discount with and without duration

* optional valid duration for dynamic discounts

* allow nullable dynamic discount durations

* expect assertions

* fix unit test after change to dynamic discounts without duration

* change to date instead of string

* add assertions

* error handling

* addressed feedback
2021-09-30 12:13:59 +02:00
Oliver Windall Juhl
ae0ab03fac fix: Creating shipping options with requirements (#428) 2021-09-29 15:20:14 +02:00
Sebastian Rindom
d8e531890d fix: update seeder to product published (#423) 2021-09-29 14:07:39 +02:00
pKorsholm
42cdfde6d9 Feat/nested return reasons (#418)
* api endpoints for nested return_reasons

* add nested return reasons to database

* add parent reason to update

* integration tests

* add children relation

* integration tests for nested returns and failing doubly nesting returns

* add delete-route and nested relations

* delete return reason route

* doubly nested return reason creation check and deletion

* nested return reasons migration

* list only parent reasons

* removed null filter

* remove empty migration

* add return reason filter to get list of categories with children

* removed console log

* corrected delete route

* return reason testing

* return reasons query

* listREasonsFromIDs

* create return testing

* listReasonsFromIds

* return reason tests

* failing if returnreason has child on return

* integration tests

* cascading deletes on return reasons

* more elegant checking for children of return reasons when creating a return

* remove console.log

* pr adjust

Co-authored-by: Philip Korsholm <phko@MacBook-Pro.localdomain>
2021-09-29 09:22:09 +02:00
Oliver Windall Juhl
ff9cc0fa41 docs: Deploying Medusa on Heroku (#425) 2021-09-28 19:31:50 +02:00
dependabot[bot]
4db860f9ab chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa-test-utils (#408)
* docs: create-medusa-app article (#401)

* fix: temporarily comment out cloud related docs (#387)

* Fix typo in registerOptin section (#407)

* docs: Carts in Medusa (#406)

* hotfix: Stripe cancelPayment catch block (#416)

* chore(release): Publish

 - medusa-payment-stripe@1.1.26

* Fix typo in Plugins in Medusa doc (#414)

* chore(deps): bump tmpl in /packages/medusa-test-utils

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Vadim Smirnov <62517920+FuzzyReason@users.noreply.github.com>
Co-authored-by: ps-89 <91064940+ps-89@users.noreply.github.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 18:50:13 +02:00
dependabot[bot]
084adb72d8 chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa-core-utils (#409)
* docs: create-medusa-app article (#401)

* fix: temporarily comment out cloud related docs (#387)

* Fix typo in registerOptin section (#407)

* docs: Carts in Medusa (#406)

* chore(deps): bump tmpl in /packages/medusa-core-utils

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Vadim Smirnov <62517920+FuzzyReason@users.noreply.github.com>
Co-authored-by: ps-89 <91064940+ps-89@users.noreply.github.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 18:48:19 +02:00
dependabot[bot]
58031b10ee chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa-cli (#410)
* docs: create-medusa-app article (#401)

* fix: temporarily comment out cloud related docs (#387)

* Fix typo in registerOptin section (#407)

* docs: Carts in Medusa (#406)

* chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa-cli

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Vadim Smirnov <62517920+FuzzyReason@users.noreply.github.com>
Co-authored-by: ps-89 <91064940+ps-89@users.noreply.github.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 18:48:06 +02:00
dependabot[bot]
a44cf14fc7 chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa (#411)
* docs: create-medusa-app article (#401)

* fix: temporarily comment out cloud related docs (#387)

* Fix typo in registerOptin section (#407)

* docs: Carts in Medusa (#406)

* chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Vadim Smirnov <62517920+FuzzyReason@users.noreply.github.com>
Co-authored-by: ps-89 <91064940+ps-89@users.noreply.github.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 18:47:54 +02:00
Oliver Windall Juhl
85de2039cc hotfix: bug related to region update with no shipping address (#415) 2021-09-23 10:52:46 +02:00
Sebastian Mateos Nicolajsen
a70e3ed0ae feat: customer-information (#413)
* added the ability to update email as long as user has_account=false

* revamped and added fix for MC-132

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-09-23 10:22:18 +02:00
ps-89
a8f06a49d7 Fix typo in Plugins in Medusa doc (#414) 2021-09-22 18:37:50 +02:00
Sebastian Mateos Nicolajsen
897ccf475a Feat/note on order (#399)
* added NoteService and related endpoints && tests

* removed snapshots

* corrected error in service

* removed snapshot

* added the ability to note down author using a string

* updated model for note

* refactored to access logged in user

* added other user id option

* removed snapshot

* updated according to feedback

* removed snapshots

* reintroduced snapshots

* updated to snake case

* removed try catch from use-db
2021-09-22 15:19:35 +02:00
olivermrbl
84343c88e3 chore(release): Publish
- medusa-payment-stripe@1.1.26
2021-09-22 13:52:35 +02:00
Oliver Windall Juhl
c715077be5 hotfix: Stripe cancelPayment catch block (#416) 2021-09-22 13:42:31 +02:00
Kasper Fabricius Kristensen
a82332da3e feat: add product status (#400)
* added statuses to product + unit test for updating status

* add update to product model

* added integration tests

* added integration test to validate that updating status to null results in invalid_data error

* removed comment

* update GET /store/products integration test

* fixed unit test with IdMap

* changed dbehaviour on invalid status input on admin list products

* updated migration to add status = published on all existing products + added integration test on GET /admin/products when status null is provided

* made requested changes to migration and GET /store/products

* fixed test

* made requested changes to migration
2021-09-21 11:22:17 +02:00
Zakaria El Asri
49a132976d fix: ILIKE operator not supported in sqlite (#393)
* fix: replace ILIKE operator with ILike function where possible

* remove: unused import

* fix: remove alias from test case as it is not needed

* fix: product variant query

* add: integration tests + fallback to original query for all queries searching on the display_id field

* remove: console.log
2021-09-21 11:15:33 +02:00
Sebastian Rindom
4ee6c0afb2 docs: Carts in Medusa (#406) 2021-09-21 08:03:18 +02:00
ps-89
d2739507ab Fix typo in registerOptin section (#407) 2021-09-21 07:44:14 +02:00
Oliver Windall Juhl
00ab03f3a2 feat: Allow backorder on swaps (#404) 2021-09-19 15:33:43 +02:00
Sebastian Mateos Nicolajsen
75b608330b feat: AWS S3 file service plugin (#376) 2021-09-17 10:35:56 +02:00
Sebastian Rindom
bf43896d19 fix: customer endpoints shouldn't use customer id already provided through authentication (#402)
* Updated customers/:id to customers/me - untested

* fix: integration +unit tests

* docs: fix oas docs

Co-authored-by: ColdMeekly <20516479+ColdMeekly@users.noreply.github.com>
2021-09-17 08:27:46 +02:00
Vadim Smirnov
d2a14a5d51 fix: temporarily comment out cloud related docs (#387) 2021-09-16 07:52:03 +02:00
Vadim Smirnov
bdd1763bb2 docs: create-medusa-app article (#401) 2021-09-15 19:12:19 +02:00
Sebastian Rindom
b0420b3249 chore(release): Publish
- @medusajs/medusa@1.1.41
2021-09-15 11:50:15 +02:00
Sebastian Rindom
9e181352d0 chore(release): Publish
- babel-preset-medusa-package@1.1.15
 - create-medusa-app@0.0.3
 - @medusajs/medusa-cli@1.1.18
 - medusa-core-utils@1.1.22
 - medusa-dev-cli@0.0.20
 - medusa-file-spaces@1.1.25
 - medusa-fulfillment-manual@1.1.22
 - medusa-fulfillment-webshipper@1.1.26
 - medusa-interfaces@1.1.23
 - medusa-payment-adyen@1.1.27
 - medusa-payment-klarna@1.1.27
 - medusa-payment-manual@1.0.4
 - medusa-payment-paypal@1.0.26
 - medusa-payment-stripe@1.1.25
 - medusa-plugin-add-ons@1.1.25
 - medusa-plugin-brightpearl@1.1.30
 - medusa-plugin-contentful@1.1.27
 - medusa-plugin-discount-generator@1.1.15
 - medusa-plugin-economic@1.1.25
 - medusa-plugin-ip-lookup@1.1.15
 - medusa-plugin-mailchimp@1.1.25
 - medusa-plugin-permissions@1.1.25
 - medusa-plugin-restock-notification@0.0.18
 - medusa-plugin-segment@1.1.28
 - medusa-plugin-sendgrid@1.1.26
 - medusa-plugin-slack-notification@1.1.25
 - medusa-plugin-twilio-sms@1.1.25
 - medusa-plugin-wishlist@1.1.25
 - medusa-telemetry@0.0.5
 - medusa-test-utils@1.1.25
 - @medusajs/medusa@1.1.40
2021-09-15 11:44:37 +02:00
Sebastian Rindom
d1e8a7d702 Merge branch 'release/hotfix' 2021-09-15 11:21:33 +02:00
Sebastian Rindom
3b8901ebc2 fix: versioning 2021-09-15 11:19:19 +02:00
Oliver Windall Juhl
61c85da1d4 docs: Checkout flow guide (#396) 2021-09-15 11:18:27 +02:00
Sebastian Rindom
dd1025fd53 fix: flip seed flag to default to true (#398) 2021-09-15 11:15:00 +02:00
Sebastian Rindom
8850ad4202 Merge remote-tracking branch 'origin/release/next' 2021-09-14 18:33:01 +02:00
Sebastian Rindom
1d05854fe4 chore(release): Publish
- babel-preset-medusa-package@1.1.14
 - create-medusa-app@0.0.1
 - @medusajs/medusa-cli@1.1.17
 - medusa-core-utils@1.1.21
 - medusa-dev-cli@0.0.19
 - medusa-file-spaces@1.1.24
 - medusa-fulfillment-manual@1.1.21
 - medusa-fulfillment-webshipper@1.1.25
 - medusa-interfaces@1.1.22
 - medusa-payment-adyen@1.1.26
 - medusa-payment-klarna@1.1.26
 - medusa-payment-manual@1.0.3
 - medusa-payment-paypal@1.0.25
 - medusa-payment-stripe@1.1.24
 - medusa-plugin-add-ons@1.1.24
 - medusa-plugin-brightpearl@1.1.29
 - medusa-plugin-contentful@1.1.26
 - medusa-plugin-discount-generator@1.1.14
 - medusa-plugin-economic@1.1.24
 - medusa-plugin-ip-lookup@1.1.14
 - medusa-plugin-mailchimp@1.1.24
 - medusa-plugin-permissions@1.1.24
 - medusa-plugin-restock-notification@0.0.17
 - medusa-plugin-segment@1.1.27
 - medusa-plugin-sendgrid@1.1.25
 - medusa-plugin-slack-notification@1.1.24
 - medusa-plugin-twilio-sms@1.1.24
 - medusa-plugin-wishlist@1.1.24
 - medusa-telemetry@0.0.4
 - medusa-test-utils@1.1.24
 - @medusajs/medusa@1.1.39
2021-09-14 18:28:37 +02:00
Sebastian Rindom
4b8b241214 Merge remote-tracking branch 'origin/develop' into release/next 2021-09-14 16:55:25 +02:00
Vilfred Sikker Dreijer
d477ca9842 fix: add default relations to variants to include prices (#394) 2021-09-14 16:54:39 +02:00
Sebastian Rindom
8c8c589b0f fix: 404 product 2021-09-14 16:25:22 +02:00
Sebastian Rindom
e7bfd6202f chore: release assist 2021-09-14 16:04:13 +02:00