doofinder / doofinder-wordpress

Integrate Doofinder in your WordPress site with (almost) no effort.
GNU General Public License v3.0
2 stars 3 forks source link

Migration of users from Wordpress/Woocommerce plugins to the new one when upgrading #65

Closed albertodoofinder closed 1 year ago

albertodoofinder commented 1 year ago

Users of current Wordpress and Woocommerce plugins have settings that should be kept when upgrading.

Blocked by #43

eduardogomez97 commented 1 year ago

The main idea for the migration is to use the function that detects when the plugin is being updated to launch a migrate as in the example picture:

Image

This function should take care of the 3 most important steps which are:

1.- Sanitize the database to clean the deprecated data and adapt the new ones. 2.- Check if there is a credentials called doofinder for the REST API and if not, create them. 3.- Send to a doomanager endpoint a payload with the credentials and the new indexes (like the sign up one).

On the part of doomanager this end point should add to the store.options the credentials. And create the relevant indexes to the wordpress type.

With these simple steps when a customer upgrades to the new version will have his store fully functional and adapted to the new workflow.

@pedromcp90