The-Academic-Observatory / oaebu-workflows

Telescopes, Workflows and Data Services for the 'Book Analytics Dashboard Project (2022-2025)', building upon the project 'Developing a Pilot Data Trust for Open Access eBook Usage (2020-2022)'
https://documentation.book-analytics.org/
Apache License 2.0
5 stars 0 forks source link

Alternative ONIX snapshot date source #223

Closed keegansmith21 closed 6 months ago

keegansmith21 commented 6 months ago

This PR adds an optional input to the onix_workflow dag that allows for an alternative onix table to be queried for the purposes of obtaining a snapshot date during make_release.

The reason for this change is to accommodate the use of views as an alternative to creating redundant onix tables. A view cannot be sharded and thus cannot be queried for its shard date. A workaround to this limitation is to provide the source onix table that the view queries, and instead extract the snapshot date from that.