Skip to content

Commit 8c52903

Browse files
committed
Rollback "Set twingraphQuery endpoint to readOnly"
1 parent 0ff2608 commit 8c52903

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dataset/src/main/kotlin/com/cosmotech/dataset/service/DatasetServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ class DatasetServiceImpl(
624624
val gson = Gson()
625625
val mapAdapter = gson.getAdapter(object : TypeToken<List<Any>>() {})
626626
return mapAdapter.fromJson(
627-
query(dataset, datasetTwinGraphQuery.query, isReadOnly = true).toJsonString())
627+
query(dataset, datasetTwinGraphQuery.query, isReadOnly = false).toJsonString())
628628
}
629629

630630
override fun query(dataset: Dataset, query: String, isReadOnly: Boolean): ResultSet {

dataset/src/test/kotlin/com/cosmotech/dataset/service/DatasetServiceImplTests.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,7 @@ class DatasetServiceImplTests {
478478

479479
datasetService.twingraphQuery(ORGANIZATION_ID, DATASET_ID, twinGraphQuery)
480480

481-
verify(exactly = 1) { unifiedJedis.graphReadonlyQuery("graphId", graphQuery, 0) }
482-
verify(exactly = 0) { unifiedJedis.graphQuery("graphId", graphQuery, 0) }
481+
verify(exactly = 1) { unifiedJedis.graphQuery("graphId", graphQuery, 0) }
483482
}
484483

485484
@Test

0 commit comments

Comments
 (0)