-
Notifications
You must be signed in to change notification settings - Fork 21
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
Onboarding: Clean up settings API for pre-launch checklist items #2494
Comments
The
Since it's gone unused for a while, my vote would be towards removing it, we can always revert if it's needed again. |
I don't know if it belongs in another separate issue or is more part of #2492 Both the classes |
#2458 mentions that we may use them later:
For that reason, I'm thinking that we not remove the policy check functionality as a part of this issue, however, removing the unused |
@ankitguptaindia this one is ready for QA. |
@mikkamp this is ready for review. |
Closing this as completed since it was part of the 2.9 release. |
Part of #2458
This is a follow-up to #2492. Once the UI for the pre-launch checklist is removed, we can remove any backend functionality that is used for saving these options from the
/wc/gla/mc/settings
endpoint.Acceptance Criteria
/wp-json/wc/gla/mc/setup
endpoint is updated to remove references to pre-launch fields: 'website_live', 'checkout_process_secure', 'payment_methods_visible', 'refund_tos_visible', and 'contact_info_visible' so those values no longer return./wp-json/wc/gla/mc/setup
endpoint should returnpaid_ads
to show that thestore_requirements
step is completed.MerchantCenterSettings
class is removed, since it's not in use.Implementation Brief
The REST API controller for these settings is in
src/API/Site/Controllers/MerchantCenter/SettingsController.php
, specifically theget_schema_properties()
method.MerchantCenterService::get_setup_status()
should be updated to remove the checked_pre_launch_checklist() requirement.MerchantCenterService::checked_pre_launch_checklist()
is no longer needed and can be removed.The
MerchantCenterSettings
class also references these settings but is not in use. We can remove that class as part of this work. See this comment.Test Coverage
The text was updated successfully, but these errors were encountered: