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

Clean Validation Reports Job #95

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JVickery-TBS
Copy link

feat(jobs): added job to delete validation reports;

  • Added config option clean_validation_reports.
  • Added job to delete validation reports from unsupported formats.

This adds the possible feature (controlled by config option) to delete validation reports for unsupported formats. This is useful in the case that a user updates a Resource to no longer be a format that goes through validation, but the validation report and badge remains. So this helps with keeping the validation table size down a bit, and helps showing the correct validation badge (or lack there of)

- Added config option `clean_validation_reports`.
- Added job to delete validation reports from unsupported formats.
ckanext/validation/plugin/__init__.py Outdated Show resolved Hide resolved
ckanext/validation/plugin/__init__.py Outdated Show resolved Hide resolved
- Used `get_action` from toolkit instead of ckanapi dependency.
- Removed `url_changed` check.
- Better logging.
- Added `asbool` for `validation_status` checks.
- Added falsy check for `url_type`.
- Removed `lower` call in logging.
- Fixed falsy check on `url_type`.
@JVickery-TBS
Copy link
Author

@ThrawnCA res['id'] also changed to resource_id for uninitialized res in exception handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants