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

Provide better formatted page for individual messages #228

Open
pholica opened this issue Oct 21, 2019 · 2 comments
Open

Provide better formatted page for individual messages #228

pholica opened this issue Oct 21, 2019 · 2 comments

Comments

@pholica
Copy link

pholica commented Oct 21, 2019

The web interface currently provides only JSON view for individual messages. In this form, the message is presented just as how datagrepper captured and processed the message and for some users may lead to confusion that the presented json is the message itself.

It would be nice to provide view similar to what email clients provide to have headers and other information that the message body itself separated so that it's clear for everyone what the headers are and what the message body is.

@ggallen
Copy link

ggallen commented Oct 21, 2019

A specific instance of this problem is the following...

The jms-messaging-plugin allows messages to be selected using message checks. Message checks are implemented using JSON path syntax. So when users see the message JSON displayed in datagrepper, they are using that JSON to create their message check. This doesn't work as the actual JSON message is different, so the trigger ends up being useless as it never fires.

One of the main problems is the "msg" entry. It seems that datagrepper adds this field and puts the message content below this. This is not obvious to users, and they end up writing JSON path expressions like $.msg.content_types[0]. This clearly is incorrect, and it a result of the way the message is being presented to the user.

@thrix
Copy link

thrix commented Oct 21, 2019

yeah +1

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

No branches or pull requests

3 participants