Skip to content
Snippets Groups Projects
Commit 32fe0d24 authored by Leonardo Christino's avatar Leonardo Christino Committed by Dennis Collaris
Browse files

chore: always allow updating query at the end of the call

parent 4906aa55
No related branches found
No related tags found
1 merge request!41chore: always allow updating query at the end of the call
Pipeline #147258 passed
...@@ -7,7 +7,11 @@ import { query2Cypher } from '../utils/cypher/converter'; ...@@ -7,7 +7,11 @@ import { query2Cypher } from '../utils/cypher/converter';
import { parseCountCypherQuery, parseCypherQuery } from '../utils/cypher/queryParser'; import { parseCountCypherQuery, parseCypherQuery } from '../utils/cypher/queryParser';
import { formatTimeDifference } from 'ts-common/src/logger/logger'; import { formatTimeDifference } from 'ts-common/src/logger/logger';
import { Query2BackendQuery } from '../utils/reactflow/query2backend'; import { Query2BackendQuery } from '../utils/reactflow/query2backend';
import type { GraphQueryResultFromBackend, GraphQueryResultMetaFromBackend } from 'ts-common/src/model/webSocket/graphResult'; import type {
CountQueryResultFromBackend,
GraphQueryResultFromBackend,
GraphQueryResultMetaFromBackend,
} from 'ts-common/src/model/webSocket/graphResult';
import { RabbitMqBroker } from 'ts-common/rabbitMq'; import { RabbitMqBroker } from 'ts-common/rabbitMq';
import { Neo4jConnection } from 'ts-common/neo4j'; import { Neo4jConnection } from 'ts-common/neo4j';
import type { QueryCypher } from '../utils/cypher/converter/queryConverter'; import type { QueryCypher } from '../utils/cypher/converter/queryConverter';
...@@ -190,7 +194,7 @@ export const queryServiceReader = async (frontendPublisher: RabbitMqBroker, mlPu ...@@ -190,7 +194,7 @@ export const queryServiceReader = async (frontendPublisher: RabbitMqBroker, mlPu
const result = await queryService(ss.dbConnections[i], cypher, message.useCached); const result = await queryService(ss.dbConnections[i], cypher, message.useCached);
// Cache nodeCounts such that we can display differentiation for each query // Cache nodeCounts such that we can display differentiation for each query
await ums.updateQuery(headers.message.sessionData.userID, message.saveStateID, { await ums.updateQuery(ss.userId, message.saveStateID, {
...activeQueryInfo, ...activeQueryInfo,
graph: { graph: {
...activeQueryInfo.graph, ...activeQueryInfo.graph,
......
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