Closed kostik700015 closed 6 months ago
Can you create 3 tests with the following:
- When there are no studies that need to be updated
- When there is a v1 study that needs to be updated
- When there is a v2 study that needs to be updated
Tests added.
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.