Skip to content
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: Create product category flow #7034

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Conversation

olivermrbl
Copy link
Contributor

@olivermrbl olivermrbl commented Apr 9, 2024

What

  • Add create product category flow
  • Convert API integration test suite to V2 test runner

Copy link

changeset-bot bot commented Apr 9, 2024

⚠️ No Changeset found

Latest commit: 83f5b19

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medusa-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 11:55am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Apr 15, 2024 11:55am
docs-ui ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 11:55am
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 11:55am

Copy link
Member

@sradevski sradevski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I didn't review the tests since the diff is impossible :)

import { StepResponse, createStep } from "@medusajs/workflows-sdk"

type CreateProductCategoryStepInput = {
product_category: CreateProductCategoryDTO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically we accept an array for the input, should we do the same here? Or is there a reason we can't?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The product category service + repository will need a makeover to allow for bulk operations. This is a pretty comprehensive change, so I decided to open this PR now and then we can address the bulk support in a follow-up PR.

@olivermrbl
Copy link
Contributor Author

but I didn't review the tests since the diff is impossible

Yeah, I am not sure we can do it any differently when converting the test suites. As long as the V1 tests are still passing without any changes, I think we should be fine.

@olivermrbl olivermrbl merged commit bc081a7 into develop Apr 15, 2024
24 checks passed
@olivermrbl olivermrbl deleted the feat/product-categories branch April 15, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants