-
Notifications
You must be signed in to change notification settings - Fork 50
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
Clean Datastore Tables Job #196
Clean Datastore Tables Job #196
Conversation
- Added config option `clean_datastore_tables`. - Added job to delete datastore tables from unsupported formats.
- Used `get_action` from toolkit instead of ckanapi dependency. - Reworked some code to make it more gooder. - Removed `url_changed` check.
- Better logging. - Added `asbool` for `datastore_active` checks.
- Added falsy check for `url_type`.
- Removed `lower` call in logging. - Fixed falsy check on `url_type`.
@ThrawnCA |
@JVickery-TBS Conflicts need to be resolved after merging #198 |
@ThrawnCA conflicts resolved here |
- Fixed syntax from flake8.
@ThrawnCA flake8 should be good now! qld-gov-au#67 (review) <- am I just going to try and get these automated tests written today. And will shove them in this PR as well |
- Added new test for should remove unsupported resources from datastore.
- Fixed mock module path.
- Fixed fixture's `SubRequest` attribute.
- Finalized parameters and fixtures for new test method.
@ThrawnCA new tests are now passing as expected |
- Brought in Thrawn's code to make test method and fixture way less complicated.
# Conflicts: # ckanext/xloader/plugin.py ### RESOLVED.
@ThrawnCA brought in ur test changes, thanks that looks a lot better and makes way way more sense haha. Also merged master into this one to resolve conflicts |
feat(jobs): added job to delete datastore tables;
clean_datastore_tables
.This adds the possible feature (controlled by config option) to delete datastore tables for unsupported formats. This is useful in the case that a user updates a Resource to no longer be a datastore resource, but the tables remain. So this helps keep the size of the datastore database down a bit