-
Notifications
You must be signed in to change notification settings - Fork 99
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
Attempt to remove the subject_transform_dest struct key #861
Conversation
} else if source.FilterSubject != "" && source.SubjectTransformDest != "" { | ||
edge.Label(source.FilterSubject + " to " + source.SubjectTransformDest) | ||
} else if len(source.SubjectTransforms) == 1 { | ||
edge.Label(source.SubjectTransforms[0].Source + " to " + source.SubjectTransforms[0].Destination) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we never did anything here if SubjectTransforms were set at all? So I limited the change to just if its exactly 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not handling SubjectTransforms here was simply an omission, so no need to limit it to just == 1, it should just be if > 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not convinced that would work, because here the label pairs are to->dest and it needs to handle many. Just using a >1 here would not look good or be complete
I think I will leave it as is for release, we can fix later to handle multiple better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put something like "multiple" in the filter and destinations columns if there's more than 1 in SubjectTransforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then find a way to display more than one in the table format later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These edges are here are used to produce a dot graph, not for the table, its not something to fix today I am afraid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
e405e4e
to
2d1d369
Compare
Signed-off-by: R.I.Pienaar <[email protected]>
2d1d369
to
8de8703
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.