Comments (4)
@andreaszenasidi Could you please provide more context and the specific need, because could not be a bug that need a fix, instead, be a feature that's not in place anymore
from ckanext-iati.
Hi @adrianoamaral , thanks for taking a look at this.
There are several services, including the Unified Platform, that use the file hash from the Registry to uniquely identify files by content. The hashing on the Registry allows for our services to tell when the contents of a file have actually changed, without needing to re-download each and every file. In several cases, we've found the hash has not been updating. Sometimes it's due to a missing version number, as above, but other times we cannot identify why the Registry is not assigning a unique hash to the file (e.g. https://iatiregistry.org/dataset/ec-intpa-tz). Would it be possible to de-couple the creation and assigning of a file hash in the Registry from the process that checks the version-number/count of activities? If not, is there another method you could suggest for the Unified Platform to identify when the contents of a file changes without re-downloading the file and doing the hashing ourselves?
from ckanext-iati.
Here is the recent example: https://iatiregistry.org/api/3/action/package_show?id=pont-activities
from ckanext-iati.
@akmiller01 and I took a quick look at the code responsible for the version in the archiver:
ckanext-iati/ckanext/iati/archiver.py
Lines 252 to 262 in 01f9da1
If the version
list returned by the xpath is length 0, this line log.info(version[0])
will drop an IndexError
from ckanext-iati.
Related Issues (20)
- Dataset create fields & patch removing fields issue HOT 1
- Allow new character for IATI Organisation Identifier HOT 2
- After reset password users can't login HOT 3
- Send notification email to the publisher when a dataset validation status is Critical or Error HOT 2
- CSV Upload results in Internal Server Error when special characters are used
- Question: dataset hashing process HOT 3
- [question] IATI data updated field logic HOT 3
- API of staging IATI Registry not working HOT 2
- Add banner with Previewer and CSV Conversion tool deprecation warning to the IATI Registry HOT 3
- Remove deprecation warning banner and links to both Previewer and CSV Conversion tools from the IATI Registry HOT 3
- File hash inconsistent for files with download errors
- Activity dataset's validation status is 'not found'. HOT 12
- Search Box to be added to Pending Publishers in the Registry HOT 3
- Existing datasets that don't end in XML cause the archiver to fail with the message: "Package resource(s) invalid" HOT 16
- Invalid dataset upload format generic email HOT 2
- Emails from IATI Registry go to Spam HOT 17
- Move code from derlinx/ckanext-iati to IATI/ckanext-iati HOT 5
- Upgrade to CKAN v2.10 HOT 3
- Broken link on homepage HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-iati.