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
Modifying resource doesn't update it's last updated timestamp #1874
Comments
'last_modified' in not set anywhere in CKAN core, this was (or is) supposed to be set by extensions like ckanext-archiver. If I'm not mistaken it refers to changes on the original file, not the CKAN resource metadata, so it looks like there is more work involved than originally thought. Moving to 2.4. |
Just test that the homepage runs fine with the middleware actiavted
Just test that the homepage runs fine with the middleware actiavted
I think we should update this value when users upload files too. It's displayed to end users as the resource's "last updated" date, and users expect that date to change when they upload a new file. |
I think the meaning and presentation of the fields should be more clear and consistent. last_modified: the date and time when the actual data has been last changed If this is the correct meaning for the fields, the visual label on the templates for the resource should be consistent with that: last_modified -> "Data last updated" Currently these fields are used interchangeably to display the same label "Last updated". See
|
I just noticed that the last modified date does not update when editing or replacing a link in a resource but does change when editing or replacing a file. Is this a bug or is this suppose to happen? |
Turns out last_modified is only updated during a new file upload* which makes sense once you learn that the last_modified attribute on resources is meant to indicate when the *data* was last updated, not the metadata. For the metadata the last_modified attribute isn't updated but the revision timestamp is. Luckily the revision timestamp is also updated when a new file is uploaded so we can use that for everything. See this issue for info on the last_modified/revision timestamp difference: ckan/ckan#1874. *this doesn't apply if you change the url, only if you upload a file.
Resources show their creation date and last updated date which are the same. If the resource is modified, the last updated date should change but it is not updated.
The text was updated successfully, but these errors were encountered: