Skip to content

Commit

Permalink
Revert "Treat BatchInformationMissingEvent as no batch info"
Browse files Browse the repository at this point in the history
This reverts commit 3763799.
  • Loading branch information
arteymix committed Jun 19, 2024
1 parent 3de508f commit 92ea729
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
import ubic.gemma.core.search.SearchResult;
import ubic.gemma.core.search.lucene.SimpleMarkdownFormatter;
import ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysisValueObject;
import ubic.gemma.model.common.auditAndSecurity.AuditEvent;
import ubic.gemma.model.common.auditAndSecurity.eventType.BatchInformationFetchingEvent;
import ubic.gemma.model.common.auditAndSecurity.eventType.BatchInformationMissingEvent;
import ubic.gemma.model.common.description.AnnotationValueObject;
import ubic.gemma.model.common.description.Characteristic;
import ubic.gemma.model.common.description.CharacteristicValueObject;
Expand Down Expand Up @@ -911,8 +909,7 @@ public ResponseDataObject<Boolean> getDatasetHasBatchInformation( // Params:
@PathParam("dataset") DatasetArg<?> datasetArg // Required
) {
ExpressionExperiment ee = datasetArgService.getEntity( datasetArg );
AuditEvent lastBatchInfoEvent = auditEventService.getLastEvent( ee, BatchInformationFetchingEvent.class );
return respond( lastBatchInfoEvent == null || lastBatchInfoEvent.getEventType() instanceof BatchInformationMissingEvent );
return respond( this.auditEventService.hasEvent( ee, BatchInformationFetchingEvent.class ) );
}

/**
Expand Down

0 comments on commit 92ea729

Please sign in to comment.