ctti-clinicaltrials / aact

Improving Public Access to Aggregate Content of ClinicalTrials.gov
http://aact.ctti-clinicaltrials.org
MIT License
123 stars 33 forks source link

kostik/create-study-processor/AACT-576-NEW #1104

Closed kostik700015 closed 6 months ago

kostik700015 commented 7 months ago

That PR adds class StudyProcessor which searches StudyJsonRecords where saved_study_at.nil. or updated_at > saved_study_at and calls create_or_update_study or ProcessorV2.process methods depend on study's version.

kostik700015 commented 7 months ago

Can you create 3 tests with the following:

  1. When there are no studies that need to be updated
  2. When there is a v1 study that needs to be updated
  3. When there is a v2 study that needs to be updated

Tests added.