IATI / ckanext-iati

CKAN extension for the IATI Registry
http://iatiregistry.org
9 stars 6 forks source link

[question] IATI data updated field logic #393

Open stephanoshadjipetrou opened 2 years ago

stephanoshadjipetrou commented 2 years ago

Hi

I want to ask how is the IATI data updated field for each dataset calculated and on which action does it get updated?

Thanks

jodiegardiner commented 2 years ago

From searching the code for "data updated", looks like it's here: https://github.com/IATI/ckanext-iati/blob/01f9da10e567c1db656195e0614552d05f234211/ckanext/iati/archiver.py#L288

stephanoshadjipetrou commented 2 years ago

Thanks @jodiegardiner! So from what I get from this is that it is calculated based on the last-updated-datetime attributes from all the activities in the dataset, right?

jodiegardiner commented 2 years ago

Yeah it looks like it parses the xml tree of the resource and stops when it finds a date and uses that.

robredpath commented 5 months ago

429 will make this clearer for users.