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(product, types, workflows): Update product variant workflow #5668

Merged
merged 32 commits into from
Nov 23, 2023

Conversation

pKorsholm
Copy link
Contributor

@pKorsholm pKorsholm commented Nov 21, 2023

What

  • Fix issues with update-variant workflow:
    • other variants than the updated variant are no longer removed
    • options are updated properly

Copy link

changeset-bot bot commented Nov 21, 2023

🦋 Changeset detected

Latest commit: d81acff

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

This PR includes changesets to release 6 packages
Name Type
@medusajs/workflows Patch
@medusajs/product Patch
@medusajs/types Patch
@medusajs/pricing Patch
@medusajs/medusa Patch
@medusajs/utils 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 Nov 21, 2023

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

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2023 2:24pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2023 2:24pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2023 2:24pm

@@ -1489,87 +1490,92 @@ export interface IProductModuleService {
sharedContext?: Context
): Promise<ProductVariantDTO[]>

updateVariants(
Copy link
Contributor Author

@pKorsholm pKorsholm Nov 21, 2023

Choose a reason for hiding this comment

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

Change is here

* @expandable
*/
options: ProductOptionValueDTO
options: ProductOptionValueDTO[]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

here's the change

@pKorsholm pKorsholm marked this pull request as ready for review November 21, 2023 14:12
@pKorsholm pKorsholm requested a review from a team as a code owner November 21, 2023 14:12
@pKorsholm pKorsholm changed the title Fix/update product variant workflow fix(product, types, workflows): Update product variant workflow Nov 21, 2023
Copy link
Contributor

@riqwan riqwan left a comment

Choose a reason for hiding this comment

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

CLEAN!

@pKorsholm pKorsholm requested a review from adrien2p November 21, 2023 16:17
@pKorsholm
Copy link
Contributor Author

/snapshot-this

@riqwan
Copy link
Contributor

riqwan commented Nov 21, 2023

/snapshot-this

1 similar comment
@pKorsholm
Copy link
Contributor Author

/snapshot-this

Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/medusa@1.18.1-snapshot-20231122093138
yarn add @medusajs/product@0.3.5-snapshot-20231122093138
yarn add @medusajs/types@1.11.8-snapshot-20231122093138
yarn add @medusajs/utils@1.11.1-snapshot-20231122093138
yarn add @medusajs/workflows@0.3.1-snapshot-20231122093138

Latest commit: dc5750d

@@ -1,9 +1,10 @@
---
"@medusajs/workflows": patch
"@medusajs/product": patch
"@medusajs/pricing": patch
Copy link
Member

Choose a reason for hiding this comment

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

todo: There is two changeset, the first one seams targetting the right package, but not this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pricing was missing in the core integration changeset from the pr we merged earlier, just adding it here

@@ -125,7 +125,6 @@ jobs:
env:
DB_PASSWORD: postgres
DB_USERNAME: postgres
Copy link
Member

Choose a reason for hiding this comment

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

question: Why is this deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as discussed split-tests doesn't exist as a step anywhere

packages/product/src/repositories/product-option-value.ts Outdated Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit a39ce12 into develop Nov 23, 2023
12 checks passed
@kodiakhq kodiakhq bot deleted the fix/update-product-variant-workflow branch November 23, 2023 14:35
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.

3 participants