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

JVickery-TBS:feature/validation support #113

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from

Conversation

duttonw
Copy link
Member

@duttonw duttonw commented Oct 25, 2024

testing final differences of what is in our version to what is going to upstream (prior to merging ckan#200 )

JVickery-TBS and others added 25 commits November 24, 2023 19:35
- Add config option for resources to require validation.
- Only submit to xloader if validation is successful.
- Added debug logging.
- Do not use 2.10+ helper.
- Check toolkit action instead of plugin name.
- Added method docs to explain new method.
# Conflicts:
#	ckanext/xloader/plugin.py
### RESOLVED.
- Fixed typo.
- Fixed try/catch.
- Prevent POST to upload to DS if validation is required.
- flake8 if wrap indents.
- Syntax fixes from flake8.
- Moved logic into util method.
- Renamed config options.
- Added new config option to enforce validation schema existance.
# Conflicts:
#	ckanext/xloader/plugin.py
#	ckanext/xloader/utils.py
### RESOLVED.
- Added automated tests.
- Changed the logic to be better and more clear.
- Fixed a logic case.
# Conflicts:
#	ckanext/xloader/config_declaration.yaml
#	ckanext/xloader/plugin.py
#	ckanext/xloader/tests/test_plugin.py
### RESOLVED.
- Better conditional syntax.
- Fixed inline comments to make more sense.
- Started doing sync mode for xloader right after validation.
- Continued sync mode chaining from validation.
- Continued sync mode chaining from validation.
# Conflicts:
#	ckanext/xloader/action.py
### RESOLVED.
- Implement experimental `IPipeValidation` implement.
- Cannot do tests without `IPipeValidation`.
- Clearer comments.
- Clearer log messages.
- Added `ignore_not_sysadmin` validator to the sync key.
@duttonw duttonw requested a review from ThrawnCA October 25, 2024 05:23
@duttonw duttonw self-assigned this Oct 25, 2024
if sync:
log.exception('Unable to xloader res_id=%s', res_id)
else:
log.exception('Unable to enqueued xloader res_id=%s', res_id)

Choose a reason for hiding this comment

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

"to enqueued" -> "to enqueue"

@@ -91,6 +92,7 @@ def receive_validation_report(self, validation_report):
sync = toolkit.asbool(toolkit.config.get(u'ckanext.validation.run_on_update_async', True))
self._submit_to_xloader(res_dict, sync=sync)


Choose a reason for hiding this comment

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

Flake8 generally prefers single blank lines inside a class.

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.

3 participants