sul-dlss / sul_pub

SUL system for harvest and managing publications for Stanford CAP, with controlled API access.
http://cap.stanford.edu
Other
8 stars 3 forks source link

Testing strategies for switch to WoS REST API #1618

Closed peetucket closed 1 year ago

peetucket commented 1 year ago

In order to validate the work described in #1609 and in #1612, proposal is:

timeframe  =  Date.today - 1.day # look back 1 day
total_contributions_added = Contribution.where('created_at > ?',timeframe).where(status:'new').size;
wos_uids_added = Publication.where('created_at > ?',timeframe).pluck(:wos_uid).compact.size;
timeframe  =  Date.today - 1.day # look back 1 day
total_contributions_added = Contribution.where('created_at > ?',timeframe).where(status:'new').size;
wos_uids_added = Publication.where('created_at > ?',timeframe).pluck(:wos_uid).compact.size;

Next steps:

mjgiarlo commented 1 year ago
mjgiarlo commented 1 year ago

@peetucket @justinlittman I did the above work but I'm not sure I did it right and I'm also not sure the results pass the sanity check. See my methodology and results above. I'll keep this assigned to me for now but I'm not sure what to do at the moment.