Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ public void run()
{
error("Failure", t);
}

if (getErrors() == 0)
setStatus(TaskStatus.complete);

info("Auto link to study complete");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public boolean run(ViewContext context)
// Save the snapshot RowId to the destination study
StudyImpl mutableStudy = StudyManager.getInstance().getStudy(getDstContainer()).createMutable();
mutableStudy.setStudySnapshot(snapshot.getRowId());
StudyManager.getInstance().updateStudy(user, mutableStudy);

// export objects from the parent study, then import them into the new study
getLogger().info("Exporting data from parent study.");
Expand Down Expand Up @@ -311,6 +312,7 @@ public boolean run(ViewContext context)
new TopLevelStudyPropertiesImporter().process(studyImportContext, studyDir, errors);

// after the data has been imported, configure the new study setting for undefined timepoints
mutableStudy = StudyManager.getInstance().getStudy(getDstContainer()).createMutable();
if (sourceStudy.isFailForUndefinedTimepoints())
mutableStudy.setFailForUndefinedTimepoints(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ private void _updateVisitRowId()
return errors;
}

public @Nullable ValidationException recomputeDates(Date oldStartDate, User user)
public @NotNull ValidationException recomputeDates(Date oldStartDate, User user)
{
if (null != oldStartDate)
{
Expand All @@ -351,7 +351,7 @@ private void _updateVisitRowId()
return updateParticipantVisits(user, getStudy().getDatasets());
}
}
return null;
return new ValidationException();
}

// Return sql for fetching all datasets and their visit sequence numbers, given a container
Expand Down