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): Product variant auto-rename bug #2680 #2684

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

Anddrrew
Copy link
Contributor

@Anddrrew Anddrrew commented Feb 20, 2024

Description

This PR addresses the issue reported in #2680, where product updates were being blocked due to a bug with the variant auto-rename feature. The root cause was identified as incorrect type annotations.

Changes

  • Corrected type annotations and refactored two utility functions removeReadonlyCustomFields & removeReadonly
  • Added two tests to handle this case
  • isEntityCreateOrUpdateMutation function has been moved to a separate file

Breaking changes

Null

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

Copy link

netlify bot commented Feb 20, 2024

Deploy Preview for effervescent-donut-4977b2 canceled.

Name Link
🔨 Latest commit 4cb602d
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-donut-4977b2/deploys/65d4755989a999000854208c

@Anddrrew Anddrrew changed the title Fix for Bug #2680: Product variant auto-rename issue fix(admin-ui): Product variant auto-rename bug #2680 Feb 20, 2024
@michaelbromley michaelbromley merged commit 2075d6d into vendure-ecommerce:master Feb 20, 2024
17 of 18 checks passed
@michaelbromley
Copy link
Member

Thank you for this PR! A very elegant refactor too 👍

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