Frane Polić
5f2bc975cb
fix(medusa): Allow edits relation on order retrieval ( #2384 )
2022-10-07 15:45:28 +02:00
Sebastian Rindom
46bd861c2a
fix(medusa): improve list shipping option ( #2383 )
2022-10-07 15:43:03 +02:00
Ayush Sharma
d8a5942d3d
fix(medusa) : Improperly referenced product id in product import strategy ( #2351 )
...
* What - fixing PR #2350
* Why - In the ProductImportStrategy class, the getImportInstructions improperly checks the product.id for each row. With it setup this way, products will always be considered new because the product.id column is not read here. So products will never be updated. [Link to the code line](bd94130916/packages/medusa/src/strategies/batch-jobs/product/import.ts (L166) )
* How - Replacing `row["product.product.id"]` to `row["product.id"]`
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2022-10-07 09:36:36 +00:00
Sebastian Rindom
3d255302b0
fix(medusa): Optimize Cart totals calculation ( #2372 )
...
**What**
The existing totals calculations are extremely heavy and perform an enormous amount of duplicate work. The changes here remove large parts of the overhead and improves response times for cart endpoints up to 30x.
2022-10-07 08:44:06 +00:00
Philip Korsholm
527c587d8f
feat(medusa): Add difference due to OrderEdit totals ( #2352 )
2022-10-07 10:21:13 +02:00
Carlos R. L. Rodrigues
d0f274dbe7
feat(medusa): PaymentCollectionService ( #2365 )
2022-10-07 09:37:10 +02:00
Oliver Windall Juhl
edd35631f7
fix(medusa): Add sales channel to order on creation ( #2374 )
2022-10-07 09:12:25 +02:00
Oliver Windall Juhl
d2b272fab6
feat(medusa): Trim discount code on insert and retrieve ( #2369 )
2022-10-07 09:07:32 +02:00
Oliver Windall Juhl
1c688ec499
fix(medusa): Add allowed relations to order retrieval ( #2370 )
...
**What**
Add allowed relations to list orders and get order to throw appropriate error message + status code
**Test**
- Integration: Throw on invalid relation provided to list orders
- Integration: Add test suite get order
- Successfully retrieve order with expand + fields
- Throw on invalid relation provided
2022-10-06 13:39:47 +00:00
Philip Korsholm
642902aaeb
feat(medusa-js, medusa-react): Support expand fields in order retrieval ( #2353 )
2022-10-06 13:58:46 +02:00
olivermrbl
69f2f12d06
chore: Change minor to patch in changesets
2022-10-06 10:09:20 +02:00
Carlos R. L. Rodrigues
e20f77ac66
feat: payment collection data model ( #2343 )
...
* feat: payment collection data model
2022-10-04 15:41:12 -03:00
olivermrbl
44b774c72c
Merge branch 'master' into develop
2022-10-04 19:09:36 +02:00
Shahed Nasser
bd94130916
docs: fix note in quickstart ( #2347 )
2022-10-04 19:48:08 +03:00
Oliver Windall Juhl
5908d9b9b6
fix(medusa): Race condition in cart completion strategy ( #2341 )
2022-10-04 16:31:36 +02:00
Marcos Rodríguez
34331708da
docs: replaced admin features overview with the required linking section ( #2338 )
...
* docs: Replaced admin features overview with the corresponding link section
* Update docs/content/admin/quickstart.md
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* Update docs/content/admin/quickstart.md
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* docs: Removed empty line.
Co-authored-by: Marcos Rodríguez <marcos.rodriguez.partner@decathlon.com >
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2022-10-04 17:28:04 +03:00
Shahed Nasser
4836127e9e
docs: added sales channel conceptual guide ( #2342 )
...
* docs: added sales channel conceptual guide
* fixed file path
* added dividers
2022-10-04 17:24:15 +03:00
Shahed Nasser
d516e04699
docs: Added pattern usage sections in the API Reference ( #2332 )
...
* docs: added usage patterns in API Reference
* docs: added pattern usage to storefront api ref
2022-10-04 15:49:53 +03:00
Shahed Nasser
88c86614a4
docs: changed medusa's readme ( #2334 )
2022-10-04 15:48:44 +03:00
Harshavardhan Bajoria
f222b7f1df
docs: fixed some typos and grammatical errors ( #2337 )
...
* Update README.md
* Update usage.md
* Update contribution-guidelines.md
* Update quick-start-docker.md
* Update OrderService.md
* Update CartService.md
* Update README.md
* Update quick-start-docker.md
* Update usage.md
* Update CartService.md
* Update OrderService.md
* Update contribution-guidelines.md
* Update contribution-guidelines.md
* Update contribution-guidelines.md
* Update contribution-guidelines.md
2022-10-04 12:10:25 +03:00
olivermrbl
94eb2bfc02
Merge branch 'master' into develop
2022-10-04 10:50:12 +02:00
Adrien de Peretti
df62e618bc
feat(medusa,medusa-payment-stripe): Migrate Stripe to Abstract payment service ( #1790 )
2022-10-04 10:49:43 +02:00
Oliver Windall Juhl
1024ac1a36
fix(medusa-payment-manual): Add missing update method ( #2254 )
2022-10-04 10:48:39 +02:00
RITIK JAIN
2ae8fabf36
Docs: Remove the Prerequisites section in Create an Entity documentation #2289 ( #2320 )
...
* update index.md
removes Prerequisites from the Create An entity page
* Update index.md
now check i removed the spaces above create the entity
* Update index.md
2022-10-04 11:14:09 +03:00
Ayush Sharma
a37925d6ea
docs: added additional step for Gatsby and Next.js storefronts ( #2328 )
...
* Docs: Add additional step for Gatsby and Next.js storefronts
* update gatsby-medusa-starter.md
* Update docs/content/starters/nextjs-medusa-starter.md
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* update next-js-starter,md
* Update gatsby-medusa-starter.md
* Update gatsby-medusa-starter.md
* Update gatsby-medusa-starter.md
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2022-10-04 10:32:14 +03:00
alesbe
d87b3b34fb
docs: Removed heroku button from quickstart and fixed list index from Next.js documentation ( #2333 )
...
* Removed heroku section from quickstart
* Fixed list index order from nextjs docs
2022-10-03 17:34:27 +03:00
Rutam Prita Mishra
7182c4eb3b
docs: added the SendGrid Plugin Link under What's Next Section ( #2322 )
2022-10-03 16:36:13 +03:00
Shahed Nasser
9589ec8e97
docs: small fixes to quickstart ( #2330 )
2022-10-03 16:35:53 +03:00
Dmitriy Danilov
77c921053a
docs: add links to entities in the Notification Architecture Overview doc ( #2149 ) ( #2315 )
2022-10-03 13:31:01 +03:00
Zainab Lawal
9b3d634221
docs: changed label and Headers of introduction page ( #2327 )
...
* Changed label and Headers of introduction page
* Edited Storefront Header
2022-10-03 13:11:50 +03:00
Zainab Lawal
7bf53e6711
docs: removed "Load from .env" section ( #2323 )
...
* Removed "Load from .env" section
* Removed empty line
* Fixed Errors
2022-10-03 12:55:52 +03:00
Anurag870
57f7b5207a
updated README.md to match quickstart guide ( #2313 )
...
Making Git Readme consistent with https://docs.medusajs.com/quickstart/quick-start/
2022-10-03 11:33:13 +03:00
github-actions[bot]
afa4798423
chore(docs): Removed Docs Announcement Bar (automated) ( #2304 )
...
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com >
2022-10-03 10:58:37 +03:00
Tharun K
fe5cbe9368
Docs: added link integrations page in the footer ( #2305 )
2022-10-03 10:45:32 +03:00
Shahed Nasser
64ebece3b4
fix: fixed remove announcement bar action ( #2281 )
2022-09-30 13:06:56 +03:00
Shahed Nasser
7a721e6447
docs: added Feedback component ( #2274 )
2022-09-30 12:02:13 +03:00
Shahed Nasser
8e21246047
docs: added separate sections for imports and exports in MinIO docs ( #2279 )
...
* docs: added information related to imports
* docs: seperated details for imports and exports
2022-09-30 11:16:38 +03:00
Shahed Nasser
f233e20537
docs: removed deploy to Heroku button ( #2277 )
...
* Removed deploy to Heroku button
* changed some wording
2022-09-30 10:51:34 +03:00
Philip Korsholm
00959f79bc
Feat(medusa): remove item from order ( #2273 )
...
* wait for update to order edit model
* delete line item tests
* create remove method for lineitem with tax lines
* add remove item tests
* split delete allocation tests into two: more and less than total
* remove unused import
* cleanup
* add medusa-js and react endpoints
* pr feedback fixes
* linting
* remove unused relation from query
* remove removed-event and unused imports
* add await
2022-09-30 09:48:18 +02:00
Adrien de Peretti
95c0dc653a
feat(medusa, medusa-js, medusa-react): Implement store complete order… ( #2275 )
...
**What**
Allow a customer to complete a requested order edit.
**Test**
- Unit tests complete flow
- Unit tests medusa react
- Integration tests of order edit completion
FIXES CORE-501
2022-09-29 17:06:45 +00:00
Shahed Nasser
739d3d3887
docs: added note about base branch ( #2278 )
2022-09-29 18:30:23 +03:00
Adrien de Peretti
678a06752a
feat(medusa): Migrate services to use TransactionBaseService ( #2276 )
2022-09-29 15:58:17 +02:00
Oliver Windall Juhl
8797a1441b
fix(medusa): Query SalesChannel Products in storefront ( #2272 )
2022-09-29 14:40:24 +02:00
Adrien de Peretti
a2bb504e6e
fix(medusa): order retrieval missing relations + allow for expand ( #2267 )
...
**What**
Fix missing relation on the order retrieval endpoint as well as allow the expand fields
FIXES CORE-578
2022-09-29 10:04:39 +00:00
Adrien de Peretti
9a532de7bd
feat(medusa): Improve transform middleware ( #2271 )
...
**What**
Improve transform query middleware management of the allowed fields and relations in order to improve security upon access data
FIXES CORE-651
2022-09-29 09:41:09 +00:00
Adrien de Peretti
2be00007b2
Feat(medusa, medusa-js, medusa-react): order edit confirmation ( #2264 )
...
**what**
Support confirm of an order edit:
Upon confirmation, the items of the original order are detached and the items from the order edit are attached to the order.
The order total is recomputed with the correct total which can defer from the paid_total and refundable_amount (based on the paid_total)
**Tests**
- Unit tests medusa-js and medusa-react as well as the core
- Integration test of the confirmation flow which check that the order edit is properly confirmed and can be confirmed idempotently. Also validate the totals and that the order items correspond to the order edit items. Also validate the order totals.
FIXES CORE-498
2022-09-29 08:00:48 +00:00
Shahed Nasser
c0d38aff60
docs: fixed formatting issue in Create Batch Job Strategy ( #2269 )
2022-09-28 18:31:00 +03:00
Philip Korsholm
87ad29dda4
Feat(medusa): add 'edits' to order relations if the feature is enabled ( #2263 )
...
**What**
- add "edits" relation if order editing is enabled
- use the featureflag key from the saleschannels flag in loaders
2022-09-28 14:11:01 +00:00
Shahed Nasser
a58955bdba
docs: added how-to documentation for the PriceList API ( #2260 )
...
* docs: added price list how-to
* added links to price list conceptual docs
* added link to the how-to guide
* fixed typo in file extension
2022-09-28 17:06:21 +03:00
Shahed Nasser
d03ff07a48
docs: fixes to plugin documentation ( #2265 )
...
* docs: fixes to plugins documentation
* added missing prepare step
2022-09-28 17:05:08 +03:00