Skip to content

Commit

Permalink
fixes #651
Browse files Browse the repository at this point in the history
  • Loading branch information
stalep authored and jesperpedersen committed Sep 19, 2023
1 parent 9bcb8b0 commit d8fc5f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ private void runExperiments(DataSet.Info info, Consumer<ExperimentResult> result
.unwrap(NativeQuery.class)
.addScalar("profile_id", StandardBasicTypes.INTEGER)
.addScalar("baseline_filter", StandardBasicTypes.TEXT)
.addScalar("value", StandardBasicTypes.TEXT)
//.addScalar("value", JsonNodeBinaryType.INSTANCE)
.addScalar("value", JsonBinaryType.INSTANCE)
.addScalar("dataset_id", StandardBasicTypes.INTEGER)
.getResultList();

Expand Down Expand Up @@ -285,8 +284,7 @@ private void runExperiments(DataSet.Info info, Consumer<ExperimentResult> result
"LEFT JOIN label_values lv ON label.id = lv.label_id WHERE ep.id = ?1 AND lv.dataset_id = ?2")
.setParameter(1, profile.id).setParameter(2, info.id)
.unwrap(NativeQuery.class)
.addScalar("value", StandardBasicTypes.TEXT)
//.addScalar("value", JsonNodeBinaryType.INSTANCE)
.addScalar("value", JsonBinaryType.INSTANCE)
.getSingleResult();
Hibernate.initialize(profile.test.name);
resultConsumer.accept(new ExperimentResult(ExperimentProfileMapper.from(profile),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import io.hyperfoil.tools.horreum.api.data.Extractor;
import io.hyperfoil.tools.horreum.entity.data.*;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.TestInfo;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down Expand Up @@ -709,7 +710,7 @@ public void testJavascriptExecution() throws InterruptedException {
Assertions.assertEquals("foobar", preview.value.textValue());
}

/*
@Disabled
@org.junit.jupiter.api.Test
public void runExperiment() throws InterruptedException {
Test test = createExampleTest("supersecret");
Expand Down Expand Up @@ -852,8 +853,6 @@ public void runExperiment() throws InterruptedException {
}
}

*/

private JsonNode getBySchema(JsonNode data, String schema) {
JsonNode foo = StreamSupport.stream(data.spliterator(), false)
.filter(item -> schema.equals(item.path("$schema").asText())).findFirst().orElse(null);
Expand Down

0 comments on commit d8fc5f6

Please sign in to comment.