v2.0.7-preview

medusajs/medusav2.0.7-previewAug 29, 2024by olivermrbl

AI Summary

This release completes the first iteration of Order Exchanges, Returns, and Claims, introduces a Food Delivery recipe, and resolves Remote Joiner alias conflicts.

Key Highlights

  • First iteration of Order Exchanges, Returns, and Claims flows
  • Published 'Food Delivery' platform recipe
  • Resolved Remote Joiner alias conflicts by renaming models
  • Internal module events hidden from logs

Breaking Changes

  • Remote Joiner alias conflict (renamed models like `OrderAddress`, `LineItem` -> `OrderLineItem`, etc., affecting method names)

New Features

  • Summary shipping breakdown in dashboard
  • `db:setup` command
  • DataGrid improvements
  • Provider validation at loading time
  • Notification provider attachments support

Full Release Notes

<!-- 
![image](https://github.com/user-attachments/assets/501d7929-01a8-43e1-8cf4-1a7baf754398)

# Medusa Preview Release update #7

CMS_BREAK -->

## Highlights

### Bulk Editor improvements

We have added error handling to our bulk editor to make bulk editing of resources more manageable. 

https://github.com/user-attachments/assets/f5d29b35-e488-4b79-826f-662b9f7bf50f


### Order Exchanges, Returns, and Claims

We have finished the first iteration of Order Exchanges, Returns, and Claims. There is still some polishing to do on these flows, so please report any issues you find.

### Recipe: Food-Delivery platform

We have published a new recipe taking you though building a food-delivery platform like UberEats.

We also have a demo project and repository if you are curious to dig into how this recipe is used in practice: https://github.com/medusajs/medusa-eats

### Remote Joiner alias conflict

🚧 **Breaking change**

Several models were named the same across modules, causing conflicts for our Remote Joiner engine. To resolve the issues with Remote Joiner, the name-clashing models have been renamed to be specific to the module they belong to. 

**Only the ORM models have been renamed – not the underlying tables.**

**Order Module:**
- Address -> OrderAddress
- LineItem -> OrderLineItem
- LineItemAdjustment -> OrderLineItemAdjustment
- LineItemTaxLine -> OrderLineItemTaxLine
- ShippingMethod -> OrderShippingMethod
- ShippingMethodAdjustment -> OrderShippingMethodAdjustment
- ShippingMethodTaxLine -> OrderShippingMethodTaxLine
- Transaction -> OrderTransaction

**Fulfillment Module:**
- Address -> FulfillmentAddress

These changes affect the modules' methods since we auto-generate methods based on the model names. For example, `createLineItem` in the Order Module is now `createOrderLineItem`. More specifically, this change affects the models mentioned above, and the following methods of those:
- retrieve[ModelName]
- list[ModelName]
- listAndCount[ModelName]
- create[ModelName]
- update[ModelName]
- delete[ModelName]
- softDelete[ModelName]
- restore[ModelName]
 
### Internal module events

We have decided to hide the logs of internal module events. These events are currently only emitted in a few modules and are not supposed to be used by end-users for subscribers and such. You should always use Workflow Events, which have replaced the event concept from V1.

## Features
* feat(dashboard): summary shipping breakdown by @fPolic in https://github.com/medusajs/medusa/pull/8779
* feature: add db:setup command by @thetutlage in https://github.com/medusajs/medusa/pull/8830
* feat(js-sdk): Add API key by @olivermrbl in https://github.com/medusajs/medusa/pull/8838
* feat(dashboard): DataGrid improvements [4/4] by @kasperkristensen in https://github.com/medusajs/medusa/pull/8798
* feat: Add support for providers to validate their options at loading time by @adrien2p in https://github.com/medusajs/medusa/pull/8853
* feat(notification-sendgrid): include ability to handle attachments by @420coupe in https://github.com/medusajs/medusa/pull/8729

## Bugs
* fix(order): run migration before setting not null by @riqwan in https://github.com/medusajs/medusa/pull/8831
* fix(dashboard,js-sdk): fixes from rma flows testing by @riqwan in https://github.com/medusajs/medusa/pull/8826
* fix(medusa): use correct request type for create cart API route by @shahednasser in https://github.com/medusajs/medusa/pull/8820
* fix: Validate boolean query params by @olivermrbl in https://github.com/medusajs/medusa/pull/8834
* fix(order): order change references by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8845
* fix(medusa-oas-cli): fix download url for public OAS by @shahednasser in https://github.com/medusajs/medusa/pull/8763
* fix(dashboard): align items inside quick view popover by @riqwan in https://github.com/medusajs/medusa/pull/8847
* fix(dashboard,types): fix some http type names by @shahednasser in https://github.com/medusajs/medusa/pull/8836
* fix(core-flows): use unit price of item in create cart and add to cart flows by @shahednasser in https://github.com/medusajs/medusa/pull/8841
* fix(orchestration): remote joiner alias conflict by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8844
* fix(dashboard): active RMA section border by @fPolic in https://github.com/medusajs/medusa/pull/8849
* fix(utils): DML hasOne - belongsTo not behaving correctly by @adrien2p in https://github.com/medusajs/medusa/pull/8813
* fix(dashboard): active rma z-index by @fPolic in https://github.com/medusajs/medusa/pull/8854
* fix: product category types by @Alexnortung in https://github.com/medusajs/medusa/pull/8833
* fix(dashboard): Pass query params to list SC request by @kasperkristensen in #8863

## Documentation
* docs-util: fix for product type schemas by @shahednasser in https://github.com/medusajs/medusa/pull/8837
* docs: improvements to base OAS by @shahednasser in https://github.com/medusajs/medusa/pull/8835
* docs: uppercase HTTP methods in api reference by @shahednasser in https://github.com/medusajs/medusa/pull/8821
* docs: add tracking for navigation usage by @shahednasser in https://github.com/medusajs/medusa/pull/8819
* docs-util: fix removal of manually-added schemas in clean script by @shahednasser in https://github.com/medusajs/medusa/pull/8840
* docs: add restaurant-delivery marketplace recipe by @shahednasser in #8817

## Chores
* chore(medusa): Re enable plugin loading by @adrien2p in https://github.com/medusajs/medusa/pull/8843
* chore: Treat internal event differently, primarely do not display info logs for those events by @adrien2p in https://github.com/medusajs/medusa/pull/8767
* chore: Remove unused clients in admin + clean up js-sdk by @olivermrbl in https://github.com/medusajs/medusa/pull/8839

**Full Changelog**: https://github.com/medusajs/medusa/compare/v2.0.6-preview...v2.0.7-preview