-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(medusa, types, utils, workflow): Migrate medusa workflow to the workflow package #4682
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good before applying the changes to the pipe
function.
We just need to fix the tests/build.
packages/workflows/src/handlers/product/attach-sales-channel-to-products.ts
Show resolved
Hide resolved
@olivermrbl can I merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with questions and comments. Also, I think we should consider adding integration tests of workflows - not through API routes. I have started doing that in my PR. Let's discuss next week :)
...ges/workflows/src/handlers/middlewares/create-products-prepare-create-prices-compensation.ts
Show resolved
Hide resolved
} | ||
|
||
createProductsPrepareCreatePricesCompensation.aliases = { | ||
payload: "payload", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment: This does not match the input, nor the defined alias in the handler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it is used, ill remove it
packages/workflows/src/handlers/product/attach-sales-channel-to-products.ts
Show resolved
Hide resolved
packages/workflows/src/handlers/product/attach-shipping-profile-to-products.ts
Show resolved
Hide resolved
Feel free to merge as you please |
Yes definitely need to add some tests for the handlers, i was discussing that with carlos as well, lets discuss this next week? |
What
Migrate medusa create products workflow to the workflow package using the new API.