Skip to content

Commit

Permalink
fix: support graph suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed May 3, 2024
1 parent 715c1c9 commit 88bad1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inferred_mode/inferred_mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export default class InferredQueryHandler {
qEdgeID: string,
qEdge: TrapiQEdge,
combinedResponse: CombinedResponse,
auxGraphSuffixes: {[inferredEdgeID: string]: number}
): CombinedResponseReport {
const span = Telemetry.startSpan({ description: 'creativeCombineResponse' });
const newResponse = handler.getResponse();
Expand Down Expand Up @@ -293,7 +294,6 @@ export default class InferredQueryHandler {
// modified count used for pathfinder
const pfIntermediateSet = new Set();

let auxGraphSuffixes: {[inferredEdgeID: string]: number} = {};
// add results
newResponse.message.results.forEach((result) => {
const translatedResult: TrapiResult = {
Expand Down Expand Up @@ -546,6 +546,7 @@ export default class InferredQueryHandler {
const mergedResultsCount: {
[resultID: string]: number;
} = {};
const auxGraphSuffixes: {[inferredEdgeID: string]: number} = {};

await async.eachOfSeries(subQueries, async ({ template, queryGraph }, i) => {
const span = Telemetry.startSpan({ description: 'creativeTemplate' });
Expand All @@ -570,6 +571,7 @@ export default class InferredQueryHandler {
qEdgeID,
qEdge,
combinedResponse,
auxGraphSuffixes
);
// update values used in logging
successfulQueries += querySuccess;
Expand Down

0 comments on commit 88bad1e

Please sign in to comment.