You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the getGraphDataFunction, the addEdge function is called with the node arguments in the wrong order. Typically, an edge is drawn from a claim to its composition and composite resources. This means the source should be the claim, and the target should be the composition or composite resources. However, the function is currently being called with the composition and composite resources as the source and the claim as the target, which is incorrect.
Impact: This incorrect ordering has caused confusion in other parts of the code. For example, it has led to settings being configured incorrectly, such as using markerStart instead of markerEnd here:
Additionally, this error results in calling getLayoutElement with RL arguments, even though the graph is supposed to be displayed with LR (left-to-right) settings:
In the
getGraphDataFunction
, theaddEdge
function is called with the node arguments in the wrong order. Typically, an edge is drawn from a claim to its composition and composite resources. This means the source should be the claim, and the target should be the composition or composite resources. However, the function is currently being called with the composition and composite resources as the source and the claim as the target, which is incorrect.komoplane/pkg/frontend/src/pages/ClaimPage.tsx
Lines 113 to 132 in e04d6ec
Impact: This incorrect ordering has caused confusion in other parts of the code. For example, it has led to settings being configured incorrectly, such as using
markerStart
instead ofmarkerEnd
here:komoplane/pkg/frontend/src/components/graph/data.ts
Line 79 in e04d6ec
Additionally, this error results in calling
getLayoutElement
withRL
arguments, even though the graph is supposed to be displayed withLR
(left-to-right) settings:komoplane/pkg/frontend/src/components/graph/RelationsGraph.tsx
Lines 75 to 79 in e04d6ec
I have a proposed solution for this issue. Please let me know if this understanding is correct and desirable.
The text was updated successfully, but these errors were encountered: