alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
2k stars 267 forks source link

FEATURE: add an API endpoint to touch a dataset, thereby updating its content updated date to the current time #3840

Open brrttwrks opened 1 month ago

brrttwrks commented 1 month ago

Is your feature request related to a problem? Please describe. We update datasets using FTM_STORE and reindex. This doesn't change the last content updated date. Currently the only way to touch a dataset is by running an aleph container based on the aleph image loaded with the production secrets to talk to prod Aleph to run aleph touch dataset. This is not ideal, as we are trying to decouple our workflows/data processing from production Aleph as much as is possible. I don't like having to have all the prod secrets to do this.

Describe the solution you'd like A new Aleph API endpoint would help solve this problem:

https://aleph.occrp.org/api/2/collections/{collection_id}/touch

Describe alternatives you've considered Running aleph in a container with all production secrets loaded :/

Additional context Add any other context or screenshots about the feature request here. Nope

tillprochaska commented 1 month ago

Small additional requirement from yesterday’s conversation: This should probably be an admin only endpoint