Skip to content

Commit

Permalink
parse controller independently of subject/outcome (#5795)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Dec 10, 2024
1 parent b16fb0a commit b9103eb
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions packages/client/hmi-client/src/model-representation/mira/mira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,6 @@ export const convertToIGraph = (
points: [],
data: {}
});

t.controllers.forEach((controllerName) => {
graph.edges.push({
source: controllerName,
target: t.name,
points: [],
data: { isController: true }
});
});
}
if (t.outcome !== '') {
graph.edges.push({
Expand All @@ -522,16 +513,16 @@ export const convertToIGraph = (
points: [],
data: {}
});

// Turn off dual-controller edges as per request - Nov 2024
// t.controllers.forEach((controllerName) => {
// graph.edges.push({
// source: t.name,
// target: controllerName,
// points: [],
// data: { isController: true }
// });
// });
}
if (t.controllers && t.controllers.length > 0) {
t.controllers.forEach((controllerName) => {
graph.edges.push({
source: controllerName,
target: t.name,
points: [],
data: { isController: true }
});
});
}
});

Expand Down

0 comments on commit b9103eb

Please sign in to comment.