2530 Commits
Author SHA1 Message Date
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 Kristensenandolivermrbl 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 6bd0d4458c moved variant sorting from service to the repository 2021-09-08 14:14:28 +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
pKorsholm 0c47c78c08 change variant column 'rank' to 'variant_rank' 2021-09-06 13:29:24 +02:00
olivermrbl 1a87a463b4 adds money amount migration 2021-09-05 21:39:00 +02:00
olivermrbl 8fdfc87049 integration tests passing 2021-09-05 21:34:13 +02:00
pKorsholm 13d539b882 add rank enforcement at product variant level 2021-09-03 17:24:06 +02:00
pKorsholm 73a4746500 add cascading deletes to product variant 2021-09-03 17:20:11 +02:00
pKorsholm 3ae6bdb7fc add ranking of variants to product creation implementation 2021-09-03 17:18:20 +02:00
pKorsholm 32880dbed3 add ranking of variants to product creation 2021-09-03 17:17:43 +02:00
pKorsholm f73841c384 add variant ranking on creation of a product 2021-09-02 11:42:02 +02:00
pKorsholm 1bf2b9c2ac Test if productservice.update updates rankings of variants 2021-09-02 09:53:58 +02:00
pKorsholm 7681e6a641 add rank updates to productservice.update 2021-09-02 09:53:07 +02:00
pKorsholm 99b6a94146 add rank field to product variant 2021-09-02 09:51:53 +02:00
Sebastian Rindom ae82cfc70a feat: creates support for swaps on the storefront (#355) 2021-08-30 12:14:56 +02:00
Oliver Windall Juhl 5d63b0c8d2 hotfix: Allow sale_amount product updates (#346) 2021-08-20 17:14:19 +02:00
Oliver Windall Juhl fd14e243da fix: Account for non-discountable items in getRefundTotal (#347) 2021-08-20 17:12:37 +02:00
Sebastian Rindom 8f60f430cc fix: add cross-spawn (#341) 2021-08-17 13:18:25 +02:00
Sebastian Rindom 9467f7ecbd fix: build openapi (#338) 2021-08-16 15:45:50 +02:00
Sebastian Rindom 1039d040e9 Add SQLite support for easy setup (#336)
* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process.

* Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected.

* Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js

* Small improvements to bin resolution

* Improvements to endpoint stability
2021-08-16 15:45:26 +02:00
Sebastian Rindom 9a701ff229 fix: improves integration tests (#332)
* fix: improves integration tests

* fix: giftcard order with total 0

* fix: remove breaking eager
2021-08-11 09:26:25 +02:00
Sebastian Rindom 3d65ed9b78 hotfix(medusa): null check 2021-08-09 16:34:12 +02:00
Sebastian Rindom 1295ceb792 fix: return lines allow_discounts 2021-08-05 17:01:11 +02:00
Zakaria El Asri ca0de00d0b add: is_discount filtering + unit tests (#330) 2021-08-05 16:44:19 +02:00
Zakaria El Asri b101725396 fix: product and variant api route validation (#331) 2021-08-05 15:36:14 +01:00
Sebastian Rindom cfe19f7f9d feat: medusa-telemetry (#328)
* feat: adds a telemetry package to collect anonymous usage data

* fix: update telemetry host

* fix: adds medusa telemetry --disable

* fix: add tracking of link,login,new

* fix: interactively collect db credentials

* fix: require seed file

* fix: removes tracking from reporter
2021-08-05 12:23:05 +02:00
Kasper Fabricius Kristensenandolivermrbl f07cc0fa40 feat: In band inventory updates (#311)
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-08-05 12:21:15 +02:00
Oliver Windall Juhl 6053c4a8dd feat: Add discountable flag to product (#329) 2021-08-05 10:40:12 +02:00
Zakaria El Asri 821d8be733 feat: add route for retrieving a swap (#326)
* feat: swap details

* test: add get-swap and list-swaps route tests

* test: add swaps integration tests

* fix: use IdMap.getId in complete-cart unit test

commit 289d191 uses the IdMap.getId in the SwapServiceMock retrieve method, so a unit test in complete-cart needs to be adjusted accordingly

* fix: prefix default fields and totals with 'cart'
2021-07-29 16:47:33 +01:00
Sebastian Rindom f4a7138a58 feat: CLI + local linking (#313)
* fix: allow local cmd without exiting process

* fix: improves cli experience

* fix: allow running link with --develop

* test: adds snapshot testing of error logs

* chore: cleanup

* feat(medusa-cli): new command (#320)

* adds: new command

* fix: creates  command for easy project setup

* chore: deps

* chore: deps

* fix: loggin

* fix: logging

* fix: adds cli as dependency in core

* fix: consolidates CLI in medusa

* fix: use project deps medusa bin

* fix: use project deps medusa bin

* fix: use cli path

* fix: new command setup db + env vars

* fix: new command with db seed

* fix: cleanup
2021-07-26 10:09:55 +02:00
Sebastian Rindomandolivermrbl 804a2f6ed9 docs: adds tutorial (#323)
* docs: adds installation guide for tutorial

* docs: adds creating your medusa server guide

* add quick starter

* rename to reflect docker usage

* docs: adds custom functionality tutorial

* docs: adds linking with medusa cloud

* fix: PR

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-07-25 09:58:16 +02:00
Zakaria El Asri b378a4f8bc fix: enforce 1 shipping method per profile (#322)
prevents the scenario where multiple concurrent calls to insert a shipping method may lead to an inconsistent cart state with more than 1 shipping method per profile.
2021-07-23 11:26:20 +01:00
Abraham Ugbeshe 8c26a5fd88 chore: issue #299: implemented DUPLICATE_ERROR in places necessary (#314) 2021-07-22 18:28:12 +02:00
Sebastian Rindom 8783de17cd Feat/manual payment (#318)
What
A dummy payment provider for testing and potentially other relevant use cases like accepting cash payments. Also makes it possible to start server without notification/payment/fulfillment providers.

Why
When setting up a starter project it introduces unnecessary overhead to have to set up an account with a payment provider (e.g. Stripe). Adding a dummy provider will remove friction.

How
Extremely simple wrapper functionality.
2021-07-16 17:03:35 +02:00
Oliver Windall Juhl fb14ca7124 hotfix: Add swaps.additional_items relation to order total calculation (#317) 2021-07-16 10:29:03 +02:00
2585e958de release: next (#315)
Co-authored-by: Sebastian Mateos Nicolajsen <sebastian.m.nicolajsen@gmail.com>
Co-authored-by: Abraham Ugbeshe <abrahamugbeshe@gmail.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-07-15 09:37:27 +02:00
Oliver Windall Juhl 8838b506c8 hotfix(medusa): Optimize swap repository findOne and find (#301) 2021-07-02 14:43:06 +02:00
Oliver Windall Juhl c1bec4f843 cleanup: Eventbus, BP, Contentful, NotificationService (#292) 2021-06-24 17:56:02 +02:00
Sebastian Rindom db9d6c0cf5 Merge pull request #271 from medusajs/fix/mp
Fix/mp
2021-06-22 10:38:44 +02:00
Sebastian Rindom 5829550517 fix: lint 2021-06-21 17:13:42 +02:00
Sebastian Rindom c88c407096 fix: giftcard-order relation 2021-06-21 17:10:50 +02:00
Sebastian Rindom 0d3e8f717d Merge pull request #284 from medusajs/fix/idable-fields
fix: adds transformer to map field names to field_id names
2021-06-16 08:54:14 +02:00
Sebastian Rindom 88d96a29fd fix: adds transformer to map field names to field_id names 2021-06-15 17:55:22 +02:00
Sebastian Rindom 8e29e6e63c fix: region sync 2021-06-15 15:45:59 +02:00
Sebastian Rindom 27173d7e6a wip 2021-06-15 15:03:03 +02:00