Skip to content
Snippets Groups Projects
Commit 27e94ebe authored by jakubs's avatar jakubs
Browse files

BIS-128 force reindexing of samples on experiment update by triggering dynamic...

BIS-128 force reindexing of samples on experiment update by triggering dynamic properties recalculation

SVN: 26208
parent 3e9c483c
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPropertyPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.PersonPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.ProjectPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.SamplePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.SpacePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.TableNames;
......@@ -360,6 +361,11 @@ public class ExperimentDAO extends AbstractGenericEntityWithPropertiesDAO<Experi
template.flush();
scheduleDynamicPropertiesEvaluation(Collections.singletonList(experiment));
// BIS-128: with scheduling dynamic properties evaluation we assure that the sample index is
// reindexed.
scheduleDynamicPropertiesEvaluation(getDynamicPropertyEvaluatorScheduler(), SamplePE.class,
experiment.getSamples());
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment