Conversation
Add CKAN 2.10 compatable fucntions in plugin
|
|
||
| _run_async_validation(resource_id) | ||
|
|
||
| if ckan_2_10: |
There was a problem hiding this comment.
This conditional isn't really needed. It's fine to create the functions even if they won't be called.
|
This PR had no conflicts at the time of review, but now has conflicts to be resolved. Is there any specific reason it wasn't merged at the time with the positive review it had? |
I can only speak for myself and say I'm pretty sure I didn't have write access at the time. It should be possible to create a new branch within this repo, pull in the Keitaro changes, and fix the conflict. |
|
I'll get onto this, sorry i did not see this before i started to incorporate qld-gov-au 2.10 work (still wip) |
|
|
Hi @blagojabozinovski , I've tried to correct your branch based off where this was forked from v2.0.0. Sadly you have 38 failing tests https://github.com/ckan/ckanext-validation/actions/runs/12367164030 commit 7a0a12e (HEAD -> keitaronic/ckan-2.10-test, origin/keitaronic/ckan-2.10-test) commit da28f22 reviewing what you changed: v2.0.0...keitaroinc:ckanext-validation:ckan-2.10 You went by pushing back the split that ckan 2.10 on dataset/resource creates/updates back onto its original function name and it does seem its not fully functional. I'll try and work on the qld-gov-au fork which has 2.10 working with passing tests into upstream. the biggest issue i'm needing to work through is logic Code below: |
|
@duttonw do you see a way to get the issues you mentioned fixed or do you need any contribution from the original contributor or the community? |
|
Our www.data.qld.gov.au website is now using qld-gov-au/ckanext-validation@v0.0.8-qgov.13...0.0.8-qgov.15 This is 2.10 and 2.11 compatible and is using frictionless==5.18.0 It is majority passing on ckan master I'll try and get this into upstream in the coming weeks. |
|
@duttonw I'm guessing your work is going to be in a separate branch/PR that's going to replace this one? |
|
Hi @rantoniuk , The work that was done on qld-gov-au ckanext-validation for tests don't at all agree to the tests upstream (was majority written by a vendor) I know that https://github.com/qld-gov-au/ckanext-validation works on 2.11 but I've not had the mental fortitude to do the alignment due to ensuring tests pass for at least 2.9 for both code bases being merged. What has been done on the qld-gov-au fork has compartmentalised majority of the functions instead of leaving them as global as well as used valid 2.10+ structures. So the majority of the code that is run in production can be shuffled without much risk. (except for this last bit) The tests on the other hand are .... a tough order. After I've got some thinking space (post etag/caching on ckan core) I'll try and get back to this. For the time being use https://github.com/qld-gov-au/ckanext-validation 0.0.8-qgov.15 which is 2.2.0-qgov (but due to not being merged back from upstream is still on the 0.0.x naming) Would you like me to publish the latest qld-gov-au forked version to pypi perhaps as a v2.3.0rc1 ? based on following version spec: https://peps.python.org/pep-0440/ |
|
-_- |
Yeah, I checked that yesterday and that's what triggered my question 🥹 Trying to merge back
Nah, I'm poking with comments here because we're observing and discussing internally how alive this plugin is at all in terms of long-term maintenance and keeping it aligned with ckan core updates support - so I'm trying to understand in overall what's the timeline and plan for aligning those two forks (if at all) - or if we should use other approaches for validation (like tabledesigner plugin or a totally new plugin written from scratch). At the same time, I see the recent upstream's (this repo) |
|
Hi @rantoniuk , I've recently (last year) gained access to this plugin and was successful in moving from datashades to ckan org. Its also been uplifted to be pypi pipeline integrated. This is one of the major plugins in our system https://www.data.qld.gov.au/api/3/action/status_show as we well as in canada ckan. Its not going away, only difficultly is that our version was dramatically uplifted and then was cherry picked back to master but in such a way they diverged yet still align for the majority. Ckan Canada did the ipipe validation that when in combination with xloader, makes xloader wait for validation plugin to be green prior to updating the datastore saving blatting api datastores with bad columns etc. I'd highly suggest you try the qld-gov-au version and see how it goes for you. We also have cucumber selenium tests on top of the unit testing. We also do full integration tests of the suite of plugins https://github.com/qld-gov-au/ckan-qld-infrastructure/blob/master/vars/instances-OpenData.var.yml tests like https://github.com/qld-gov-au/ckan-qld-infrastructure/blob/master/test/features/resource_validation.feature And we have just updated dev data.qld.gov.au to 2.11 today and will be rolling forward to production in the coming 2-4 weeks. |
Adds comparability with CKAN 2.10