-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Remove the patterns_ai_data
post from DB when resetting the CYS
#43499
Conversation
Test Results SummaryCommit SHA: 40ff54d
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. |
Hi @chihsuan, @gigitux, @nefeline, 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good and tested well. 🚢
yield apiFetch( { | ||
path: '/wc/private/ai/patterns', | ||
method: 'DELETE', | ||
} ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We could consider using Promise.all
for these fetch calls.
…mmerce-beta-tester
9fa6236
to
40ff54d
Compare
…3499) * Call the `/wc/private/ai/patterns` to remove the `patterns_ai_data` post from the db * Add changefile(s) from automation for the following project(s): woocommerce-beta-tester --------- Co-authored-by: github-actions <github-actions@github.com>
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR adds a call to the
/wc/private/ai/patterns
endpoint to remove thepatterns_ai_data
post from the DB which resets the patterns to the default patterns.How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
WooCommerce Beta Tester
pluginwoocommerce-beta-tester.zip or in this branch run
pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester build:zip
and install the resulting zip.Design with AI
button.Run
button on theReset Customize Your Store
row.Hero Product Chessboard
).Changelog entry
Significance
Type
Message
Remove the patterns_ai_data post from DB when resetting the CYS.
Comment