caltechlibrary / irdmtools

A Go and Python package for working with InvenioRDM repositories.
https://caltechlibrary.github.io/irdmtools
Other
1 stars 1 forks source link

rdmutil get_stale_ids option needed #68

Closed rsdoiel closed 8 months ago

rsdoiel commented 8 months ago

Since rdmutil get_all_ids returns all the latest version ids of published records I need to also have a way to list the stale version ids too, e.g. rdmutil get_all_stale_ids. Instead of using a JOIN between rdm_records_metadata and rdm_versions_state and checking for a value in rdm_versions_state.last_id I can check for a null row, then list the record if it is public. This will allow us to cleanup stale records from the dataset collections used for feeds.

rsdoiel commented 8 months ago

Implemented in upcoming v0.0.62 release.