Skip to content

Commit

Permalink
feat(misc0: changelog, readme;
Browse files Browse the repository at this point in the history
- Added to changelog.
- Added to readme.
- Fixed typo.
  • Loading branch information
JVickery-TBS committed Dec 9, 2024
1 parent 6070740 commit 8463a79
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
1.1.3 2024-12-09
================

Feat:
* Adds support for ckanext-validation. Config `ckanext.xloader.validation.requires_successful_report` controls whether a resource requires a successful validation report to be XLoadered. By default, a resource would also require a Validation Schema, which can be turned off with `ckanext.xloader.validation.enforce_schema`.


**Full Changelog**: https://github.com/ckan/ckanext-xloader/compare/1.1.2...1.1.3

0.9.0 2021-10-01
================

Expand Down
18 changes: 18 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,24 @@ expect European (day-first) dates, you could add to ``postgresql.conf``:

datestyle=ISO,DMY

------------------
Validation Support
------------------

There is optional support for the ckanext-validation plugin. This makes it so that a resource requires a successful validation report for it to be XLoadered.

To enable the support, use the config option:

```
ckanext.xloader.validation.requires_successful_report = True
```

By default, a resource would also require a Validation Schema, which can be turned off with the config option:

```
ckanext.xloader.validation.enforce_schema = False
```

------------------------
Developer installation
------------------------
Expand Down
2 changes: 1 addition & 1 deletion ckanext/xloader/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def xloader_submit(context, data_dict):
if sync:
log.exception('Unable to xloader res_id=%s', res_id)
else:
log.exception('Unable to enqueued xloader res_id=%s', res_id)
log.exception('Unable to enqueue xloader res_id=%s', res_id)
return False
log.debug('Enqueued xloader job=%s res_id=%s', job.id, res_id)
value = json.dumps({'job_id': job.id})
Expand Down

0 comments on commit 8463a79

Please sign in to comment.