-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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): Add metadata
to Product Category
#5599
feat(medusa): Add metadata
to Product Category
#5599
Conversation
…database to store additional information about each product category
…del to store additional details 📝 docs(product-category.ts): add documentation for new metadata field in ProductCategory model
…ut type to support additional data
…egory model to store additional details
…for additional information storage 📝 docs(product-categories): add documentation for new metadata field in product categories
…ed product category fields for enhanced data tracking
🔧 refactor(product-category.ts): import setMetadata from utils to handle metadata setting in a more efficient way
…oryReq and AdminPostProductCategoriesReq models to store additional information
…n both admin and store specs 🔧 fix(api-reference): make metadata field required in ProductCategory schema to ensure data consistency
🦋 Changeset detectedLatest commit: 262cada The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@bqst is attempting to deploy a commit to the medusajs Team on Vercel. A member of the Team first needs to authorize it. |
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, @riqwan could you review this one please? 🙏
Please merge this! |
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, clean work @bqst! 🔥
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
Hi, is this available in the version 1.20.2? I am getting following error when I run after upgrading to 1.20.2
|
@muke5hy, have you run migrations?
|
Resolves: #5598
What
This PR introduces the addition of
metadata
(JSONB) attributes in theProduct Category
feature. Previously,metadata
attributes were available forProduct Collections
andProduct Tags
, but not for categories. This update adds consistent metadata functionality across various entities within the platform.Why
It allows for the storage of additional, custom data associated with categories, aligning the capabilities of Product Categories with that of product collections and tags. This change is relevant for developers and users who require extended information tied to each category for custom implementations.
How
Adding the
JSONB
field, exactly the same as the other metadata implementations.Testing