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

ARTEMIS-3556 show message protocol on message view page #3841

Closed
wants to merge 2 commits into from

Conversation

erwindon
Copy link
Contributor

@erwindon erwindon commented Nov 5, 2021

Copy link
Contributor

@michaelandrepearce michaelandrepearce left a comment

Choose a reason for hiding this comment

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

see inline comment.

@erwindon erwindon changed the title ARTEMIS-3556 show message protocol type on message view page ARTEMIS-3556 show message protocol on message view page Nov 6, 2021
@erwindon erwindon marked this pull request as draft November 6, 2021 10:56
@@ -123,6 +124,7 @@ protected void init() throws OpenDataException {
public Map<String, Object> getFields(M m, int valueSizeLimit, int deliveryCount) throws OpenDataException {
Map<String, Object> rc = new HashMap<>();
rc.put(CompositeDataConstants.MESSAGE_ID, "" + m.getMessageID());
rc.put(CompositeDataConstants.PROTOCOL, m.getClass().getSimpleName());
Copy link
Contributor

Choose a reason for hiding this comment

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

we could add a method on Message to return a more user friendly word?

on Message:
public String getProtocol();

then on core you return "CORE" and AMQP you return "AMQP"

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I already made that change exactly as you and Michael suggest. that code is in the next commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe I should squash to prevent confusion?

@asfgit asfgit closed this in 46e2813 Nov 11, 2021
@erwindon erwindon deleted the msgtype branch November 11, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants