Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
This release contains significant performance improvements in the Products domain. Please see this pull request for a detailed overview of the tests we have run, as well as the impact of the improvements.
Published by olivermrbl over 1 year ago
Bulk emit events
This release contains an improvement of the events system in Medusa. We've updated the EventBusService.emit
method to now support bulk emitting a collection of events. This is useful in bulk upsert scenarios and significantly improves performance.
Note, these changes are backward compatible so that you can use emit to send a single event, as usual.
Single emit
await eventBusService.emit("product.created", { id: product.id }, { attempts: 4 })
Bulk emit
let events = [
{
eventName: "product.created",
data: { id: product.id }
opts: { attempts: 5 }
},
{
eventName: "product.created",
data: { id: product2.id }
opts: { attempts: 3 }
}
]
await eventBusService.emit(events)
Published by olivermrbl over 1 year ago
Overview
This release contains a migration to ensure that the product_variant_inventory
table is in its correct state. We mistakenly modified a column name in an already released migration, which naturally can lead to issues if the first migration has already been applied.
The issue was reported in #3379.
Actions Required
After updating your Medusa server and before running it, run the following command to run the latest migrations:
medusa migrations run
Global event options
This release contains an improvement of the events system in Medusa. Until now, the core EventBusService.emit
calls have been closed for configuration. This changes in this release with the introduction of an option event_options
, which is configurable in your project config in medusa-config.js
.
Example:
module.exports = {
projectConfig: {
redis_url: REDIS_URL,
database_url: DATABASE_URL,
database_type: "postgres",
store_cors: STORE_CORS,
admin_cors: ADMIN_CORS,
event_options: {
removeOnComplete: 5
}
},
plugins,
};
The available option is in Bull's documentation.
The attempts
option on core emit calls is currently still fixed to 1
.
Important: options passed in this config will be applied globally to all EventBusService.emit
calls. You can still overwrite these options in your custom emit calls as they take precedence over the global options.
Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
Published by olivermrbl over 1 year ago
Overview
In the last couple of releases, we've started to roll out Product Categories. The API layer is guarded by a feature flag, but the changes/additions to the database schema are not. This release introduces another migration for Product Categories so you are required to run migrations to ensure your server works as expected.
Actions Required
After updating your Medusa server and before running it, run the following command to run the latest migrations:
medusa migrations run
method.data
to be passed when creating/updating ShippingMethods in ClaimService (#3205) @kasperkristensenundefined
error (#2941) @RegisHubeliaPublished by olivermrbl almost 2 years ago
Published by olivermrbl almost 2 years ago
Important
This version enables Order Editing and Payment Collection by default. Migrations are required.
In your project, run:
medusa migrations run
Published by olivermrbl almost 2 years ago
This version enables Sales Channels and Publishable Keys by default. We strongly recommend you run the upgrade guide to migrate all your existing products into the default sales channel, which will be created upon the first subsequent server start.
Please refer to this guide on upgrading to v1.7.3.
Published by olivermrbl almost 2 years ago
hotfix(medusa): Assign jobSchedulerService in EventBus (#2889)
Published by olivermrbl almost 2 years ago
/admin/*
endpoints (#2763) @fPolichas_account
to list-customers query params (#2811) @pKorsholmq
param on /admin/price-lists/:id/products
(#2813) @kasperkristensenitems.variant
relation in order calculation (#2869) @adrien2pThis version contains a fix around tax calculation on gift cards that require you to run a migration and a script. Please refer to this guide on upgrading to v1.7.1.
Published by olivermrbl almost 2 years ago
Upgrading to v1.7.0
Published by olivermrbl almost 2 years ago
Published by olivermrbl almost 2 years ago
Published by olivermrbl almost 2 years ago
Published by olivermrbl almost 2 years ago