Commit Graph

1189 Commits

Author SHA1 Message Date
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
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
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
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
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
Sebastian Rindom
41a5425405 Merge remote-tracking branch 'origin/develop' into release/next 2021-09-14 11:14:32 +02:00
dependabot[bot]
167a9f45c7 chore(deps): bump axios from 0.21.1 to 0.21.4 in /packages/medusa (#391)
* docs: add guide on fulfillment api (#388)

* Create fulfillment-api.md

* fix: sidebar

* chore(deps): bump axios from 0.21.1 to 0.21.4 in /packages/medusa

Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.4)

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

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

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-14 11:14:19 +02:00
dependabot[bot]
9462d0a498 chore(deps): bump axios from 0.21.1 to 0.21.2 in /packages/medusa-cli (#390)
* docs: add guide on fulfillment api (#388)

* Create fulfillment-api.md

* fix: sidebar

* chore(deps): bump axios from 0.21.1 to 0.21.2 in /packages/medusa-cli

Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

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

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-14 11:13:58 +02:00
Vilfred Sikker Dreijer
d4397d4954 add Stripe Ideal service (#389) 2021-09-14 11:11:28 +02:00
Sebastian Rindom
5d5c659f8a fix: typo 2021-09-13 19:35:42 +02:00
Sebastian Rindom
59bb3a62c6 docs: add guide on fulfillment api (#388)
* Create fulfillment-api.md

* fix: sidebar
2021-09-13 19:26:11 +02:00
Sebastian Rindom
04dde7ca62 Merge remote-tracking branch 'origin/develop' into release/next 2021-09-12 11:30:15 +02:00
Sebastian Rindom
0812acaf0d fix: adds transform medusa ids (#385) 2021-09-12 11:29:57 +02:00
Sebastian Rindom
60d6e44163 fix: add microbundle 2021-09-10 16:09:18 +02:00
Oliver Windall Juhl
27150959ff fix: Ensure uniqueness for products, variants, collections and discounts (#382) 2021-09-10 16:03:44 +02:00
Sebastian Rindom
ec6d16e945 feat: adds create-medusa-app (#377)
* feat: copied from medusa-cli

* chore: gitignore

* fix: add admin + storefront

* fix: dev experience enhancement
2021-09-10 16:02:54 +02:00
Vilfred Sikker Dreijer
682741041a Feat: add product default relations support for variant prices (#359)
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-09-10 14:53:12 +02:00
Sebastian Mateos Nicolajsen
cf66f97758 feat: update and cancel swaps, claims, and returns (#310) 2021-09-10 13:57:34 +02:00
pKorsholm
fab155c246 Merge pull request #373 from medusajs/feat/product-variant-rank
Feat: Add product variant rank
2021-09-09 09:58:27 +02:00
Sebastian Mateos Nicolajsen
234be4e307 Feat/update discount on draft order (#349)
* only looked for rules when existing

* removed logging
2021-09-09 09:40:41 +02:00
Sebastian Rindom
da329359a9 Merge remote-tracking branch 'origin/master' into develop 2021-09-09 09:28:56 +02:00
pKorsholm
84e2081955 added missing brackets to control structures 2021-09-09 09:26:49 +02:00
pKorsholm
1331a7d4ce rename migraiton 2021-09-09 09:23:38 +02:00
Kasper Fabricius Kristensen
16b0fa377a fix: make shipping_option_id on requirements optional (#340)
* changed validator so that reqiurement shipping_option_id is now optional + added integration test that confirms that when an update contains a requirement without an ID it is created

* fix: formatting

* fix: un-bump babel-preset-medusa-package

* chore: update yarn.lock

* fix: implemented suggested changes, need to validate behaviour on clean branch so NOT ready for merging just yet

* fix: implemented suggested changes, need to validate behaviour on clean branch so NOT ready for merging just yet

* afix: made it impossible to set a min. subtotal requirement that is greater than max. subtotal

* fix: added explanation to error

* fix: Error when removing requirement on update

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-09-09 09:03:00 +02:00
pKorsholm
976b57f944 adjusted product tests after removing sorting and public variant ranks 2021-09-08 15:19:46 +02:00
pKorsholm
8e6bd6c97e nullable variant_rank with defaulvalue of 0 excluded from select queries in database 2021-09-08 15:07:22 +02:00
pKorsholm
f5ee870854 product variant test adjustsments after variant was removed from the api 2021-09-08 15:04:03 +02:00
pKorsholm
6bd0d4458c moved variant sorting from service to the repository 2021-09-08 14:14:28 +02:00
pKorsholm
ecad9db924 product-list snapshot test 2021-09-08 14:12:27 +02:00
Sebastian Rindom
da40c240d1 Update README.md 2021-09-08 08:10:43 +02:00
Vadim Smirnov
2030ab6d35 change target branch (#375) 2021-09-07 17:24:35 +02:00
Kasper Fabricius Kristensen
56a1d99a07 fix: the topbar was positioned above the mobile docsearch search input. This fixes the z-index order of components (#371) 2021-09-07 16:59:53 +02:00
Vadim Smirnov
16c381f6b6 fix Discord link (#372) 2021-09-07 16:50:16 +02:00
Sebastian Mateos Nicolajsen
0076332e0e Fix/create customer in draft order (#285)
* draft order now creates customer when creating cart

* corrected to update instead of create

* corrected tests

* added creation of customer to create of cart

* removed update function from mock

* added test

* corrected update to update email properly

* corrected tests

* removed unused func

* updated core properly

* removed manual-payment service
2021-09-07 11:15:43 +02:00
pKorsholm
5d9d34edf4 Create variant appends variant in rankings 2021-09-06 14:20:00 +02:00