WordPoints / wordpoints

Points plugin for WordPress
GNU General Public License v2.0
20 stars 15 forks source link

Magically intelligent un/installers #308

Closed JDGrimes closed 9 years ago

JDGrimes commented 9 years ago

See https://github.com/WordPoints/wordpoints/issues/306#issuecomment-84166185.

It would be awesome if we could work toward making [the uninstaller] smart enough that it really needs no configuration at all; it should just "know" what needs to be uninstalled. I think that maybe #263 could be a part of this.

JDGrimes commented 9 years ago

In tandem, we could also make our un/install tester smarter.

JDGrimes commented 9 years ago

For example, we could parse the database schema (provided we can know the function that generates it) to get the list of tables that should be uninstalled. (And in the tests, we could check that those tables were un/installed, though I'm not sure how that would work for installation, since things aren't loaded at that point).

JDGrimes commented 9 years ago

307 brought us to the point where we actually handle database install as well as uninstall, so that point is moot. While I think that this is a good general goal to strive for, it doesn't look like we really have anything specific to tackle right now. I think that the best way forward, in the end, will be to create a sniffer that parses the code and generates a list of things that need to be uninstalled. Then the developer could run that to generate his basic uninstall schema.

So, I'm going to close this issue as maybelater for now.