Issue with Adjustable Relationship Lines in groups with more than two tables

Hi,
I’ve recorded a video showing an issue with the Adjustable Relationship Lines feature in dbdiagram. If we have a group with just two connected tables, everything works fine. However, when I add a third table to the group and modify the relationship line between two of the tables, the issue becomes visible. The line behaves unpredictably when moving the entire group, shifting in unexpected directions.

It seems like the problem might be related to how referencePaths.checkPoints are handled within groups, as they don’t seem to anchor properly when both tables connected by the line are in the same group.

Example DBML code:

TableGroup group {
  A
  B
  C
}

Table A {
  id int pk
}

Table B {
  id int pk
  a_id int [ref: > A.id]
}

Table C {
  a_id int [ref: > A.id]
}

Please take a look and let me know if a fix is possible.

Thanks!

Hi @drago_v,

Thank you for the report.

You’re right. Normally, the checkpoints need to stay in place no matter if it parent’s tables are moving or not. However, in situations where when we actually want the checkpoints to move along with the parents group, looks like we over-compensate and thereby make it move twice as fast. We’ll investigate more and come up with a fix soon.

1 Like