-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use frictionless framework v5 #69
Conversation
…eValidationOnUpdateForm.test_resource_form_update_invalid
…herwise absolute paths are not allowed
…nless Framework documentation
@aivuk this PR should be against |
yes, sorry about that. I already changed it to dev-v2 now |
Codecov Report
@@ Coverage Diff @@
## dev-v2 #69 +/- ##
==========================================
- Coverage 84.48% 84.31% -0.17%
==========================================
Files 24 24
Lines 2062 2078 +16
==========================================
+ Hits 1742 1752 +10
- Misses 320 326 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
TBH I don't fully understand a new approach. If there is still a field for CKAN end-users called "validation_options" - how they will be filling it if |
The ckanext-validation is running the function
I mean a simple list with all the checks options names as 'table-dimensions' and their parameters. The only list that I could find was for the baseline checks but there is no documentation for what each one does https://framework.frictionlessdata.io/docs/checks/baseline.html |
@roll Just an example, currently the user can put in the validation options field the json:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aivuk this looks good, just some polishing of the docs and tests and we can merge this
We can iron out things in separate PRs
@@ -1,7 +1,6 @@ | |||
{% import 'macros/form.html' as form %} | |||
|
|||
{% set value = data[field.field_name] %} | |||
{% set is_url = value and value[4:]|lower == 'http' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping, I think this line should stay
|
||
assert validation.report["valid"] is True | ||
# TODO: The vollowing test is not valid on frictionless v5. | ||
# The local path is not hidden and there is no warning for more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these tests should be reactivated no?
@@ -1,3 +1,5 @@ | |||
ckantoolkit>=0.0.3 | |||
goodtables==1.5.1 | |||
frictionless==5.0.0b9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, as soon as frictionless v5 goes out of beta we'll target the stable version
Co-authored-by: Adrià Mercader <amercadero@gmail.com>
We just need a way for users for inputing parameters for the |
Co-authored-by: Adrià Mercader <amercadero@gmail.com>
…ssdata/ckanext-validation into use-frictionless-framework-v5
Co-authored-by: Adrià Mercader <amercadero@gmail.com>
…ssdata/ckanext-validation into use-frictionless-framework-v5
@amercader |
@@ -49,6 +49,8 @@ jobs: | |||
run: | | |||
pip install -r dev-requirements.txt | |||
pip install -r requirements.txt | |||
pip install --no-warn-conflicts jinja2==2.10.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flag is concerning. Why can't conflicts be resolved? There should at least be a comment to explain why this is being done and what would be needed to address it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…wing frictionless v5
…onlessdata/ckanext-validation into use-frictionless-report-component
…component Uses new frictionless report component to display validation report
Great work @aivuk ! 🚀 |
Update the extension to use Frictionless Framework version 5. Change the validate function from Goodtables to the Frictionless equivalent.
TODO:
validate
function. With goodtables you could pass skip_rows and headers options that are not supported by the currentvalidate
.