Commit Graph

1111 Commits

Author SHA1 Message Date
Sebastian Rindom
bd1e115696 fix: account for non-division currencies in sales credit (#342) 2021-08-30 12:03:46 +02:00
Vilfred Sikker Dreijer
d9d84e1353 Merge pull request #351 from medusajs/feat/add-to-wishlist-extension
feat/ Extends addToWishlist with metadata
2021-08-30 09:06:51 +02:00
Vilfred Sikker
15594f9d31 fix pr request 2021-08-27 15:59:50 +02:00
Kasper Fabricius Kristensen
d89332b91a fix: improvements to Algolia DocSearch (#357)
What

Changes selectors of API references to improve DocSearch results
Implements custom navigation for DocSearch in both API ref and docs. (Uses goTo method for in page navigation, Gatsby navigate for navigation within Gatsby site, changes URL's to API reference to make use of methods implemented to provide better metadata etc.)
Implements a new way to make all HTML available in API reference without need the crawler to have Javascript enabled which should allow Algolia to crawl our site faster.
Why

To provide users with a good search experience within our docs and API reference
Testing

Tested using a local setup of the Algolia crawler
2021-08-27 14:38:35 +02:00
Vilfred Sikker
5261999d12 grap line item from develop 2021-08-27 11:22:14 +02:00
Vilfred Sikker
f34a099a77 Merge branch 'develop' into feat/add-to-wishlist-extension 2021-08-27 11:21:17 +02:00
Vilfred Sikker
ab5704208b use develop line-item service 2021-08-27 11:19:04 +02:00
Vilfred Sikker
af59095d85 add error catching and response for customer 2021-08-27 11:10:59 +02:00
olivermrbl
b1132eec23 fix: 404 2021-08-26 13:57:30 +02:00
olivermrbl
5150a6b4d9 Merge branch 'feat/add-to-wishlist-extension' of https://github.com/medusajs/medusa into feat/add-to-wishlist-extension 2021-08-26 13:12:24 +02:00
olivermrbl
2c72227244 chore: update 2021-08-26 13:12:21 +02:00
Vilfred Sikker
ae192d844b wip 2021-08-26 13:00:45 +02:00
Kasper Fabricius Kristensen
15161bb0e9 feat: Enable API search (#353)
* enabled search in ref and changed from section -> main so Algolia will index ref content

* fix: algolia apu key
2021-08-25 15:51:00 +02:00
Oliver Windall Juhl
f76aa816a5 feat: Documentation and API reference (#348)
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com>
Co-authored-by: zakariasaad <zakaria.elas@gmail.com>
Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com>
Co-authored-by: Kasper <kasper@medusa-commerce.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2021-08-24 18:16:42 +02:00
Vilfred Sikker
f77fd38369 extended add to wishlist with metadata 2021-08-24 12:45:03 +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
Kasper Fabricius Kristensen
143f06aa39 feat: Update to API references look and feel (#343)
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com>
Co-authored-by: zakariasaad <zakaria.elas@gmail.com>
Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-08-20 10:26:29 +02:00
Sebastian Rindom
40400b483c chore(release): Publish
- @medusajs/medusa@1.1.38
2021-08-17 13:19:49 +02:00
Sebastian Rindom
8f60f430cc fix: add cross-spawn (#341) 2021-08-17 13:18:25 +02:00
Sebastian Rindom
690718602c chore(release): Publish
- @medusajs/medusa-cli@1.1.16
 - medusa-telemetry@0.0.3
 - @medusajs/medusa@1.1.37
2021-08-17 09:06:43 +02:00
Sebastian Rindom
617e13a56b Update README.md (#337)
* Update README.md

* Update README.md

* Update README.md

* Create CONTRIBUTING.md

* Update README.md

* Update README.md

* Update CONTRIBUTING.md

* Update README.md
2021-08-17 09:05:54 +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
09d1b1a141 chore(release): Publish
- @medusajs/medusa@1.1.36
2021-08-11 09:37:47 +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
8edf8aacfa chore(release): Publish
- @medusajs/medusa@1.1.35
2021-08-09 16:34:37 +02:00
Sebastian Rindom
3d65ed9b78 hotfix(medusa): null check 2021-08-09 16:34:12 +02:00
Sebastian Rindom
8275b1623e chore(release): Publish
- @medusajs/medusa-cli@1.1.15
 - medusa-core-utils@1.1.20
 - medusa-file-spaces@1.1.23
 - medusa-fulfillment-manual@1.1.20
 - medusa-fulfillment-webshipper@1.1.24
 - medusa-interfaces@1.1.21
 - medusa-payment-adyen@1.1.25
 - medusa-payment-klarna@1.1.25
 - medusa-payment-manual@1.0.2
 - medusa-payment-paypal@1.0.24
 - medusa-payment-stripe@1.1.23
 - medusa-plugin-add-ons@1.1.23
 - medusa-plugin-brightpearl@1.1.28
 - medusa-plugin-contentful@1.1.25
 - medusa-plugin-economic@1.1.23
 - medusa-plugin-mailchimp@1.1.23
 - medusa-plugin-permissions@1.1.23
 - medusa-plugin-restock-notification@0.0.16
 - medusa-plugin-segment@1.1.26
 - medusa-plugin-sendgrid@1.1.24
 - medusa-plugin-slack-notification@1.1.23
 - medusa-plugin-twilio-sms@1.1.23
 - medusa-plugin-wishlist@1.1.23
 - medusa-telemetry@0.0.2
 - medusa-test-utils@1.1.23
 - @medusajs/medusa@1.1.34
2021-08-05 17:23:19 +02:00
Sebastian Rindom
1295ceb792 fix: return lines allow_discounts 2021-08-05 17:01:11 +02:00
Sebastian Rindom
65d50724a6 Merge remote-tracking branch 'origin/develop' into release/next 2021-08-05 16:44:48 +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
c8d8fa28ca fix: deps 2021-08-05 13:22:05 +02:00
Sebastian Rindom
9475ed7689 fix: ci detection 2021-08-05 13:17:17 +02:00
Sebastian Rindom
b988b67118 fix: canary assist 2021-08-05 12:30:57 +02: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 Kristensen
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
44fce520aa docs: Plugin overview (#327) 2021-08-05 10:41:01 +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
8bdccc6db6 Update adding-custom-functionality.md 2021-07-28 11:48:57 +02:00
Sebastian Rindom
329f8b134c chore(release): Publish
- babel-preset-medusa-package@1.1.13
 - @medusajs/medusa-cli@1.1.14
 - medusa-core-utils@1.1.19
 - medusa-dev-cli@0.0.18
 - medusa-file-spaces@1.1.22
 - medusa-fulfillment-manual@1.1.19
 - medusa-fulfillment-webshipper@1.1.23
 - medusa-interfaces@1.1.20
 - medusa-payment-adyen@1.1.24
 - medusa-payment-klarna@1.1.24
 - medusa-payment-manual@1.0.1
 - medusa-payment-paypal@1.0.23
 - medusa-payment-stripe@1.1.22
 - medusa-plugin-add-ons@1.1.22
 - medusa-plugin-brightpearl@1.1.27
 - medusa-plugin-contentful@1.1.24
 - medusa-plugin-discount-generator@1.1.13
 - medusa-plugin-economic@1.1.22
 - medusa-plugin-ip-lookup@1.1.13
 - medusa-plugin-mailchimp@1.1.22
 - medusa-plugin-permissions@1.1.22
 - medusa-plugin-restock-notification@0.0.15
 - medusa-plugin-segment@1.1.25
 - medusa-plugin-sendgrid@1.1.23
 - medusa-plugin-slack-notification@1.1.22
 - medusa-plugin-twilio-sms@1.1.22
 - medusa-plugin-wishlist@1.1.22
 - medusa-test-utils@1.1.22
 - @medusajs/medusa@1.1.33
2021-07-26 13:01:59 +02:00
Sebastian Rindom
4e003bebaa fix: support wishlist (#325) 2021-07-26 12:29:36 +02: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 Rindom
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
06fd882a67 fix: parameterize integration tests' db credentials (#319)
* add: read db credentials from .env

* remove: console.log

* fix: default to default pg user and password
2021-07-23 11:27:05 +01: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