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

Improve the validation process when changing the product type #43564

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

mdperez86
Copy link
Contributor

@mdperez86 mdperez86 commented Jan 12, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

Closes #43280

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Make sure feature New product editor is enabled under /wp-admin/admin.php?page=wc-settings&tab=advanced&section=features
  2. Go to Products -> Add new from the left side menu.
  3. Under the General tab a description This is a standard product. Change product type should be shown below the Basic details section.
  4. When clicking the Change product type a dropdown menu should be shown listing all the available product types.
image
  1. From the list the Standard product should be highlighted in blue.
  2. When selecting the Affiliate product from the list and error should be shown highlighting the NAME field in red.
  3. Fill the NAME field and then select the Affiliate product from the list again.
  4. The change should be applied successfully. (The product now should be of type external)
  5. Clicking the Standard product again should be done without showing any error.

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

@mdperez86 mdperez86 added focus: new product ux revamped product management experience team: Mothra WC Merchants activation and store management labels Jan 12, 2024
@mdperez86 mdperez86 requested a review from a team January 12, 2024 15:41
@mdperez86 mdperez86 self-assigned this Jan 12, 2024
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jan 12, 2024
Copy link
Contributor

github-actions bot commented Jan 12, 2024

Hi @octaedro,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

github-actions bot commented Jan 12, 2024

Test Results Summary

Commit SHA: 9d41ffc

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 37s
E2E Tests249003002793m 42s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@octaedro octaedro requested review from octaedro and removed request for a team January 15, 2024 11:14
Copy link
Contributor

@octaedro octaedro left a comment

Choose a reason for hiding this comment

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

The validation for the external product link is not there anymore (mimicking the legacy experience).
This PR LGTM 🚀

@mdperez86 mdperez86 merged commit d853af2 into trunk Jan 15, 2024
43 of 44 checks passed
@mdperez86 mdperez86 deleted the add/43280 branch January 15, 2024 15:49
@github-actions github-actions bot added this to the 8.6.0 milestone Jan 15, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Jan 15, 2024
@nigeljamesstevenson nigeljamesstevenson added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Jan 15, 2024
samueljseay pushed a commit that referenced this pull request Jan 16, 2024
* Remove the required validation constraint from the LINK TO THE EXTERNAL PRODUCT field

* Add changelog file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: new product ux revamped product management experience needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Mothra WC Merchants activation and store management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the validation process when changing the product type
3 participants