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

JCF: Issue #534: deal with loopbacks in application plots #535

Merged

Conversation

jcfreeman2
Copy link
Contributor

The problem this commit deals with is basically, if you have a module which subscribes on the network to a wildcarded message (say "msg_.*") and another module in the same application which sends a version of message that matches the wildcard (say "msg_A") out onto the network, then how do you plot that?

Previously, when plotting, the logic in the plotter didn't care about whether a message was sent onto the network. So it was drawing a connection between the modules making it look as if they communicated via a queue. With this commit, if we're plotting an application, a message gets correctly represented as being sent out over the network, and as being received from the network (with the usual "X" and "O" to represent "region outside of this diagram").

The problem this commit deals with is basically, if you have a module
which subscribes on the network to a wildcarded message (say "msg_.*")
and another module in the same application which sends a version of
message that matches the wildcard (say "msg_A") out onto the network,
then how do you plot that?

Previously, when plotting, the logic in the plotter didn't care about
whether a message was sent onto the network. So it was drawing a
connection between the modules making it look as if they communicated
via a queue. With this commit, if we're plotting an application, a
message gets correctly represented as being sent out over the network,
and as being received from the network (with the usual "X" and "O" to
represent "region outside of this diagram").
Copy link
Member

@eflumerf eflumerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an improvement. Now the potential issue is that users must connect the outgoing connection to the incoming one themselves

@eflumerf
Copy link
Member

eflumerf commented Nov 6, 2024

Screenshot 2024-11-06 100937

Copy link
Contributor

@bieryAtFnal bieryAtFnal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the new version of the MLT-focussed view, at first it wasn't obvious to me what I was seeing. However, after re-rereading Eric's comments and looking at it a little more, I figured it out.
In the end, I agree that this is an improvement. It will probably be good to educate people that sometimes we need to look for fully-specified outputs (e.g. X = tcs_random-tc-generator) that match wildcard inputs (e.g. O = tcs_*) to get all of the connections clear...

@jcfreeman2 jcfreeman2 merged commit e83e3c0 into prep-release/fddaq-v5.2.0 Nov 6, 2024
@jcfreeman2 jcfreeman2 deleted the johnfreeman/issue534_subscriber_issue branch November 6, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_config_plot does not correctly deal with subscribers with both internal and external publishers
3 participants