Skip to content

Enable filtering admin products by variant EAN, UPC, and barcode - #12815

Merged
olivermrbl merged 6 commits into
medusajs:developfrom
anteprimorac:feature/filter-admin-products-by-variants-ean-upc-barcode
Jun 25, 2025
Merged

Enable filtering admin products by variant EAN, UPC, and barcode#12815
olivermrbl merged 6 commits into
medusajs:developfrom
anteprimorac:feature/filter-admin-products-by-variants-ean-upc-barcode

Conversation

@anteprimorac

Copy link
Copy Markdown
Contributor

This PR introduces support for filtering products and product variants via the Admin API using the following product variant fields:

  • ean
  • upc
  • barcode

Additionally, it fixes #10903 by resolving an issue where using variants[q] as a filter on the GET /admin/products endpoint would result in an error. This occurred because q is not a valid field on the ProductVariant model.

@anteprimorac
anteprimorac requested a review from a team as a code owner June 24, 2025 16:11
@changeset-bot

changeset-bot Bot commented Jun 24, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 19bdd32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 69 packages
Name Type
integration-tests-http Patch
@medusajs/types Patch
@medusajs/medusa Patch
@medusajs/framework Patch
@medusajs/js-sdk Patch
@medusajs/modules-sdk Patch
@medusajs/orchestration Patch
@medusajs/utils Patch
@medusajs/workflows-sdk Patch
@medusajs/medusa-oas-cli Patch
@medusajs/admin-bundler Patch
@medusajs/dashboard Patch
@medusajs/test-utils Patch
@medusajs/analytics Patch
@medusajs/api-key Patch
@medusajs/auth Patch
@medusajs/cache-inmemory Patch
@medusajs/cache-redis Patch
@medusajs/cart Patch
@medusajs/currency Patch
@medusajs/customer Patch
@medusajs/event-bus-local Patch
@medusajs/event-bus-redis Patch
@medusajs/file Patch
@medusajs/fulfillment Patch
@medusajs/index Patch
@medusajs/inventory Patch
@medusajs/link-modules Patch
@medusajs/locking Patch
@medusajs/notification Patch
@medusajs/order Patch
@medusajs/payment Patch
@medusajs/pricing Patch
@medusajs/product Patch
@medusajs/promotion Patch
@medusajs/region Patch
@medusajs/sales-channel Patch
@medusajs/stock-location Patch
@medusajs/store Patch
@medusajs/tax Patch
@medusajs/user Patch
@medusajs/workflow-engine-inmemory Patch
@medusajs/workflow-engine-redis Patch
@medusajs/analytics-local Patch
@medusajs/analytics-posthog Patch
@medusajs/auth-emailpass Patch
@medusajs/auth-github Patch
@medusajs/auth-google Patch
@medusajs/file-local Patch
@medusajs/file-s3 Patch
@medusajs/fulfillment-manual Patch
@medusajs/locking-postgres Patch
@medusajs/locking-redis Patch
@medusajs/notification-local Patch
@medusajs/notification-sendgrid Patch
@medusajs/payment-stripe Patch
@medusajs/core-flows Patch
@medusajs/cli Patch
@medusajs/oas-github-ci Patch
@medusajs/telemetry Patch
@medusajs/admin-sdk Patch
@medusajs/admin-shared Patch
@medusajs/admin-vite-plugin Patch
@medusajs/icons Patch
@medusajs/toolbox Patch
@medusajs/ui-preset Patch
create-medusa-app Patch
medusa-dev-cli Patch
@medusajs/ui Patch

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

@vercel

vercel Bot commented Jun 24, 2025

Copy link
Copy Markdown

@anteprimorac is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

@srindom srindom left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM - will maybe let one of @fPolic, @carlos-r-l-rodrigues, @adrien2p give final approval. cc: @olivermrbl

@olivermrbl
olivermrbl merged commit 6ca755e into medusajs:develop Jun 25, 2025
24 of 37 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Unable to filter products using the query parameter "variants[q]"

4 participants