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

fix(admin-ui) Refactor use-copy-promotion to map product IDs #6306

Conversation

erikengervall
Copy link
Contributor

What - what changes are in this PR

Fixes invalid payload for duplicate coupon button.

CleanShot 2024-02-02 at 13 54 08

Why - why are these changes relevant

It currently throws an error due to invalid parameters.

CleanShot 2024-02-02 at 13 54 44

How - how have the changes been implemented

Sending an array of product ids instead of an array of products.

Testing - how has the changes been tested or how can the reviewer test the feature

Can't upload files larger than 10MB, so here's a video of my evidence https://www.youtube.com/watch?v=yCaxl0OM0wY

@erikengervall erikengervall requested a review from a team as a code owner February 2, 2024 04:55
Copy link

changeset-bot bot commented Feb 2, 2024

🦋 Changeset detected

Latest commit: 5486ca0

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

This PR includes changesets to release 2 packages
Name Type
@medusajs/admin-ui Patch
@medusajs/admin 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

Copy link

vercel bot commented Feb 2, 2024

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

A member of the Team first needs to authorize it.

@olivermrbl
Copy link
Contributor

@erikengervall, thanks for the contribution. I realise you also cannot copy discounts that have other conditions than products. We will attend to this :)

@erikengervall erikengervall requested review from a team as code owners February 2, 2024 21:22
Copy link

vercel bot commented Feb 4, 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 Feb 4, 2024 1:18pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs-ui ⬜️ Ignored (Inspect) Visit Preview Feb 4, 2024 1:18pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Feb 4, 2024 1:18pm

@olivermrbl olivermrbl merged commit 58baead into medusajs:develop Feb 4, 2024
17 checks passed
This was referenced Feb 2, 2024
@erikengervall erikengervall deleted the fix/duplicate-coupon-product-id-rule branch February 6, 2024 04:04
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.

2 participants