NewPath-Consulting / Wild-Apricot-Press

The core Wild Apricot Press (WAP) plugin.
https://newpathconsulting.com/wap
GNU General Public License v3.0
3 stars 1 forks source link

Modify Plugin Options to add an option to delete all WAP related database options #95

Closed asirota closed 2 years ago

asirota commented 2 years ago

add a new checkbox to remove all WAP related database options in the wp_options table

Label it "Delete all WildApricot Press settings in WordPress database"

nataliebrotherton commented 2 years ago

Just to clarify, the existing setting "Delete all WildApricot Press settings from WordPress database" should both delete all WAP DB data AND the WA user metadata? It currently just deletes the user metadata.

nataliebrotherton commented 2 years ago

And then if neither of the deletion options are checked, the plugin shouldn't delete any WAP or WA data from the site?

asirota commented 2 years ago

Just to clarify, the existing setting "Delete all WildApricot Press settings from WordPress database" should both delete all WAP DB data AND the WA user metadata? It currently just deletes the user metadata.

No keep that doing what it does. The label should say "Delete all WildApricot users added by WildApricot Press from WordPress database"

asirota commented 2 years ago

And then if neither of the deletion options are checked, the plugin shouldn't delete any WAP or WA data from the site?

Correct, this is the default state on install.

nataliebrotherton commented 2 years ago

And should the DB or user option delete the WAP login page? Maybe the user option?

asirota commented 2 years ago

And should the DB or user option delete the WAP login page? Maybe the user option?

when the plugin is deactivated that's when the login page is deleted. When activated the login page is created as far as I understand.

There may be other auxiliary pages we create eventually with the theme so let's make it easy to add other pages to be deleted/created this way.

nataliebrotherton commented 2 years ago

Ok. And what about the WAP post meta?

asirota commented 2 years ago

Ok. And what about the WAP post meta?

good point that should be the new option called "Delete all WildApricot Press related database options. This will delete all WildApricot Press licenses, authorization keys, page and post metadata like access restrictions, sync field options."

nataliebrotherton commented 2 years ago

New description on deletion seettings

Screen Shot 2022-08-16 at 4 06 57 PM
asirota commented 2 years ago

I wouldn't specify "first" or "second" box since the UI may be altered on certain devices.

nataliebrotherton commented 2 years ago

Should the DB option also delete the logfile? Or should that be a separate option?

asirota commented 2 years ago

Should the DB option also delete the logfile? Or should that be a separate option?

Yes on deletion the logfile should be removed as well.

nataliebrotherton commented 2 years ago

And the plugin should delete the block plugins as well? Despite what the deletion options are?

nataliebrotherton commented 2 years ago

And the plugin should delete the block plugins as well? Despite what the deletion options are?

@asirota

asirota commented 2 years ago

No the deletion on wap should not Delete then block plugins. Are there any options for those ?