From f4fe4b8e7316278fbcb903ebc7bec20fa1436f2a Mon Sep 17 00:00:00 2001 From: Chris Dinger Date: Wed, 12 Feb 2020 15:09:18 -0600 Subject: [PATCH] Don't clear Condition and ConditionGroup on reload_all The `studyfinder:ctgov:reload_all` task is meant to throw away all studies and reload all history from clinicaltrials.gov. Since Condition/Group mappings are completely standalone, this operation also throws away any time-consuming manual entry that has been done. This data is completely separate from study data, so it seems better to have it remain even when studies are fully reloaded from source. --- lib/connectors/ctgov.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/connectors/ctgov.rb b/lib/connectors/ctgov.rb index 2d90b46..db988dc 100644 --- a/lib/connectors/ctgov.rb +++ b/lib/connectors/ctgov.rb @@ -86,8 +86,6 @@ def clear StudyFinder::TrialLocation.delete_all StudyFinder::TrialKeyword.delete_all StudyFinder::Location.delete_all - StudyFinder::Condition.delete_all - StudyFinder::ConditionGroup.delete_all StudyFinder::Trial.delete_all StudyFinder::TrialCondition.delete_all end