Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C4_Dynamic no longer numbers all relationships #320

Closed
hansensmythe opened this issue Sep 1, 2023 · 6 comments
Closed

C4_Dynamic no longer numbers all relationships #320

hansensmythe opened this issue Sep 1, 2023 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@hansensmythe
Copy link

hansensmythe commented Sep 1, 2023

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.

@hansensmythe hansensmythe changed the title C4_Dynamic no longer numbers all elements C4_Dynamic no longer numbers all relationships Sep 1, 2023
@kirchsth
Copy link
Member

kirchsth commented Sep 1, 2023

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

@kirchsth kirchsth self-assigned this Sep 1, 2023
@Potherca Potherca added the bug Something isn't working label Sep 2, 2023
@Potherca
Copy link
Member

Potherca commented Sep 2, 2023

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.

  • Version 2.0 to 2.6 show numbers for all relations (except BiRel)
  • Version 2.5 shows **** for BiRel
  • Version 2.6 does not show numbers for Rel, Rel_Right and Rel_Up. Oddly, 2 is shown twice?
Full Regression Details
VersionDiagram
2.0

2.1

2.2

2.3

2.4

2.5

2.6

2.7

kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue Sep 2, 2023
@kirchsth
Copy link
Member

kirchsth commented Sep 2, 2023

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
Copy link
Member

kirchsth commented Sep 2, 2023

@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
Copy link
Author

hansensmythe commented Sep 5, 2023 via email

@kirchsth kirchsth closed this as completed Sep 8, 2023
@kirchsth
Copy link
Member

@hansensmythe: v.2.8.0 with fix released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants