plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.33k stars 1.1k forks source link

C4_Dynamic no longer numbers all relationships #320

Closed hansensmythe closed 1 year ago

hansensmythe commented 1 year ago

Until recently (mid-July?) diagrams could get relationships automatically numbered in order of use by using !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml

This was useful for diagramming auth chains, for example, where each relationship relies on a change of state from a previous relationship, e.g. 1: Get the object from Container 1 2: Send the object to Container 2 for modification 3: Send the object to Container 3 for further modification

However, the same diagrams now fail to number some relationships - it appears that 'Rel_L', 'Rel_R', 'Rel_U', and 'Rel_D' relationships get numbered, but plain 'Rel' relationships do not.

kirchsth commented 1 year ago

Hi @hansensmythe, thank you for the finding, I will check it. BR Helmut

Potherca commented 1 year ago

Using this diagram:

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml

Boundary(a, 'Direction ""Rel""'){
    Rel_Down( Rel_Down,  X, "")
    Rel_Up(   Rel_Up,    X, "")
    Rel_Right(Rel_Right, X, "")
    Rel_Left( Rel_Left,  X, "")
}

Boundary(b, 'Direction ""Rel"" Shorthand'){
    Rel_D(Rel_D, Y, "")
    Rel_U(Rel_U, Y, "")
    Rel_R(Rel_R, Y, "")
    Rel_L(Rel_L, Y, "")
}

Boundary(c, 'Plain ""Rel"" and ""BiRel""'){
    Rel(Rel, Z, "")
    BiRel(Birel, Z, "")
}
@enduml

It can be seen that Rel and BiRel do not contain numbers, confirming @hansensmythe report.

Doing a regression check, none of the versions show a number for BiRel.

Full Regression Details
VersionDiagram
2.0 ![](https://www.plantuml.com/plantuml/png/RP31QuCm6CNl_XMPbwQGQXaxxLISHmV5KTXsAJ5czOEOIFooKiR-zoKUugRpy7Y-z_duuM54Rj7rAha3BPHh9UaGX_4npos_PXV0pZLkb5OOZL9Z9aoV3uhhyCrkn5P1apyzx8uXEZrN-UTzji_sFZgNDyrx4DaGrXC4L9A4DaaAutJBxOroHZObM2aGZ2PfMakLffljLqByur_EfRbg6XqZv9NvistiJmEDphUhlePBXpGwjkmh-O4qkdd_-nTaynyaUUcCnOxhzWykdPIHjmKcdNILrtJILLxHINs-nX4UvwWup2WUmli2bdylZ33oFazF9xG06_CmVP2wTRtw0G00)
2.1 ![](https://www.plantuml.com/plantuml/png/RP11JuGm58Jl_8hAPRj95zHuyhH1ZfXiC9kebqqfTNb9QKbvTRCn_dTR3aL13fDXvZ7vmdv4Rj7rAha1BPHh9UaGX_4npos_P6V0pZLkb5OOZL9Z9aoV3uhhyCrkn5P1apyzx0uXEZvN-UTzTfVT-kXKNZNlGMH3M4yGK4aIsYGfZDCjjrVA6TcKOAL0C9gaQIrLccwsNmdnZtyvbUQYQNICa5VcpxQnFmuqEj-k-XhE7TBesBAlv0VIwERzxr-GpN-GvAKp5Zkksp-uT596tXQOTD9LNjD9Ltb59mtv2aTud8FYCADu2EyBMFwzCCB8-pmzdT02x9pxwRtKhUlL3m00)
2.2 ![](https://www.plantuml.com/plantuml/png/RP31QuCm6CNl_XMPbwQGwYWxxLISHmV5KTXsAJ5czOEOIFooKiR-zoKUugRpy7Y-z_duuM54Rj7rAha3BPHh9UaGX_4npos_PXV0pZLkb5OOZL9Z9aoV3uhhyCrkn5P1apyzx8uXEZrN-US-ssVtFZgNDyrx4DaGrXC4L9A4DaaAutJBxOroHZObM2aGZ2PfMakLffljLqByur_EfRbg6XqZv9NvistiJmEDphUhlePBXpGwjkmh-O4qkdd_-nTaynyaUUcCnOxhzWykdPIHjmKcdNILrtJILLxHINs-nX4UvwWup2WUmli2bdylZ33oFazF9xG06_CmVP2wTRtw0G00)
2.3 ![](https://www.plantuml.com/plantuml/png/RP11JuGm58Jl_8hAPRj95unwyhH1ZfXiC9kebqqfTNb9QKbvTRCn_dTR3aL13fDXvZ7vmdv4Rj7rAha1BPHh9UaGX_4npos_P6V0pZLkb5OOZL9Z9aoV3uhhyCrkn5P1apyzx0uXEZvN-UTTTf_T-kXKNZNlGMH3M4yGK4aIsYGfZDCjjrVA6TcKOAL0C9gaQIrLccwsNmdnZtyvbUQYQNICa5VcpxQnFmuqEj-k-XhE7TBesBAlv0VIwERzxr-GpN-GvAKp5Zkksp-uT596tXQOTD9LNjD9Ltb59mtv2aTud8FYCADu2EyBMFwzCCB8-pmzdT02x9pxwRtKhUlL3m00)
2.4 ![](https://www.plantuml.com/plantuml/png/RP31QuCm6CNl_XMPbwQGwXWzxLISHmV5KTXsAJ5czOEOIFooKiR-zoKUugRpy7Y-z_duuM54Rj7rAha3BPHh9UaGX_4npos_PXV0pZLkb5OOZL9Z9aoV3uhhyCrkn5P1ap_jTySGdPwh_FCXssVtFZgNDyrx4DaGrXC4L9A4DaaAutJBxOroHZObM2aGZ2PfMakLffljLqByur_EfRbg6XqZv9NvistiJmEDphUhlePBXpGwjkmh-O4qkdd_-nTaynyaUUcCnOxhzWykdPIHjmKcdNILrtJILLxHIKE-mX4UvwWup2WUmli2bdylZ33oFazF9xG0E-T--Y1rwthr0m00)
2.5 ![](https://www.plantuml.com/plantuml/png/RP51QuGm48Nl_ehKosOXgwMqbvuMwz52iIoqlImnfkj0J2IENPRI_zxHGcor7eRdU-FZOzptA3qEhOckm2epr9erY5r_dwPUdfCJO3DKGw-zSXQrnKIvDksCjECtknvh0rNwSBjx6gt3Ov5-t2HtoJLPn_nYPGigwSRs206DPcCQHPaRR2tzXKl1DZbuhH2SPN5SQXF7c-rdnEYXbsFkpfO79HXx4RIs3VcXuq5HkifBE3N8WnBBlD3lo8EQ-xz-GLR_GRBdndbifAt_uF9f2lQwmEJJNFdb3zhAB_WqoL_ZACAXQyECGX2aCrXURomHx6skdbPu1dxsgNglRKs_w1i0)
2.6 ![](https://www.plantuml.com/plantuml/png/RP51QuGm58Jl_ehKosOXgwMK7dfQh4SBnRBGzhB4cAuFOYBnsMKf_UzzUeYjheTXd8d3HzptA3qEhObkm2epr9erY5t_cAPUdfCJO3DKGw-zSXQrnKIvDksCjECtknvh0rNwTBzx6QF3Sv5-tIKFoIr5n_nYPGigwSRr206DPcCRHPaRR2tzXKl1DZbuhH2SPN5SQXF7c-rtnEYXbsFkpfO79nXx4tHi6_f3nuEZTjMNS6gG1oUMVQ4_aGStx__yWQokGRBNndbifAt_uV991NjVOF99Ltd99rtb1P-KyZME8XowRPXH289y1ilR6qS4-vYdfoCy0p_dDBtNjgPVz0i0)
2.7 ![](https://www.plantuml.com/plantuml/png/RP11QuGm58Jl_ehKosOXgwKK2ZqjrgE5nRBGzhB4cAuFOYBnfSjI-j-RU8YjriCmpZo73_SZSekkLyaDQA5SAqc7E8oFUMxv9Ji3TgvnexJ2Q9GQCs7wV51SXszs8xOAclpfVdS8qV6voZ_lieViraUdygfv3o8Rmdg2W4gIq2P9OPnkkRrIpiYc12i5Wj4aJMkfqdIp_Kg8V_pBgJGNJQDZXBmoVxQD_N6WqVbsrTTmxf16nvPz9J-GHZVlV_-2RFw392-TiTXntVx1fPCoyhR0f9EkyffEkiehEcd8LpZ2unmKXnd5GtXVmFBlXH56tkVfwOGMOEVSJ--bRbslVW00)
kirchsth commented 1 year ago

Hi @hansensmythe,

I have a bugfix in my extended branch, can you please test it with your diagrams?

!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Dynamic.puml

Thank you and best regards Helmut

kirchsth commented 1 year ago

@Potherca I saw you have done some tests, can you repeat it with my bugfix too? Thank you Helmut

PS,; BiRel_* was never supported

hansensmythe commented 1 year ago
kirchsth commented 1 year ago

@hansensmythe: v.2.8.0 with fix released