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

Fix up setup class #687

Merged
merged 22 commits into from
Feb 3, 2015
Merged

Fix up setup class #687

merged 22 commits into from
Feb 3, 2015

Conversation

pdewouters
Copy link
Contributor

The code was not functional, this PR fixes that by also removing the need to require plugin files and use plugin methods to delete options.
I still needed to require a few files for hmbkp_rmdirtree

paul de wouters added 2 commits January 21, 2015 15:23
Removes uninstall.php and registers an uninstall hook instead. Removes dependency on plugin methods.
@willmot
Copy link
Contributor

willmot commented Jan 22, 2015

Would be great to get this unit tested

@pdewouters
Copy link
Contributor Author

@willmot these unit tests don't work. trying something else

paul de wouters added 2 commits January 23, 2015 13:48
Seems like its the preferred method
@willmot
Copy link
Contributor

willmot commented Jan 26, 2015

@owaincuvelier to do some QA to make sure activating, deactivating and uninstallation is working correctly.

You can test the cron removal by using something like Cron Control

@willmot willmot assigned owaincuvelier and unassigned willmot Jan 26, 2015
@willmot
Copy link
Contributor

willmot commented Jan 28, 2015

Looks like it needs master merging, then should be good to go.

@pdewouters
Copy link
Contributor Author

@owaincuvelier did you get a chance to review?

@owaincuvelier
Copy link
Contributor

@pdewouters will do this in a few minutes!


// Remove the backups directory
require_once( dirname( __FILE__ ) . '/../hm-backup/hm-backup.php' );
Copy link
Contributor

Choose a reason for hiding this comment

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

This no longer exists so caused fatal error


// Remove the backups directory
require_once( dirname( __FILE__ ) . '/../hm-backup/hm-backup.php' );
require_once( dirname( __FILE__ ) . '/class-hmbkp-path.php' );
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the path here should be '/classes/class-path.php'

@owaincuvelier
Copy link
Contributor

All database entires were removed except the windows azure licence entry: hmbkpp_waz_settings.

All the cronjob are successfully removed on deactivation.

Just need to update the paths for uninstall.php and should be good to go.

@pdewouters
Copy link
Contributor Author

should also delete the backups directory

@owaincuvelier
Copy link
Contributor

should also delete the backups directory

So we're deleting peoples backups on deletion of the plugin?

@willmot
Copy link
Contributor

willmot commented Jan 30, 2015

So we're deleting peoples backups on deletion of the plugin?

Yeah not sure we should be doing that actually

@pdewouters
Copy link
Contributor Author

Not an issue - we can add an opt-in setting "delete all data on uninstall"

@pdewouters
Copy link
Contributor Author

Going to merge this

pdewouters added a commit that referenced this pull request Feb 3, 2015
@pdewouters pdewouters merged commit 974a939 into master Feb 3, 2015
@pdewouters pdewouters deleted the fixup-setup-class branch February 3, 2015 16:11
@owaincuvelier
Copy link
Contributor

Sorry for the delay. This was good to merge.

@coveralls
Copy link

coveralls commented Aug 16, 2016

Coverage Status

Changes Unknown when pulling acad348 on fixup-setup-class into * on master*.

@owaincuvelier owaincuvelier removed their assignment Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants