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

Improve legibility of admin pages by indenting JSON. #2492

Closed
wants to merge 1 commit into from
Closed

Improve legibility of admin pages by indenting JSON. #2492

wants to merge 1 commit into from

Conversation

nt
Copy link
Member

@nt nt commented Jan 31, 2018

Improve legibility of admin pages by indenting JSON.

@nt
Copy link
Member Author

nt commented Jan 31, 2018

cc @htuch @alyssawilk

@@ -64,6 +64,7 @@ std::string MessageUtil::getJsonStringFromMessage(const Protobuf::Message& messa
// Setting this option makes debugging easier because it keeps field names consistent in JSON
// printouts.
json_options.preserve_proto_field_names = true;
json_options.add_whitespace = true;
Copy link
Member

Choose a reason for hiding this comment

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

This is used in various wire serializations. I think we probably don't want extra whitespace there universally. How about making this a bool arg that defaults false, and you can opt in stuff like admin pages?

@htuch htuch assigned dnoe and htuch Jan 31, 2018
@dnoe
Copy link
Contributor

dnoe commented Jan 31, 2018

I don't see the DCO signed-off-by, but maybe I'm missing something. It'll need to be in your commit message.

@nt
Copy link
Member Author

nt commented Jan 31, 2018 via email

@mattklein123
Copy link
Member

FYI this is being done already in #2449. cc @ramaraochavali

@dnoe
Copy link
Contributor

dnoe commented Jan 31, 2018

@nt does this do anything special that isn't covered under #2449 ?

@nt
Copy link
Member Author

nt commented Jan 31, 2018

This is covered in #2449, thanks for bringing it to my attention; closing this PR.

@nt nt closed this Jan 31, 2018
Shikugawa pushed a commit to Shikugawa/envoy that referenced this pull request Mar 28, 2020
* fix sd filter bugs

* fix test

* remove mesh uid change
jpsim added a commit that referenced this pull request Nov 28, 2022
)

The `ubuntu-18.04` image has been deprecated:
actions/runner-images#6002

May explain why our Linux CI jobs started being cancelled before even
starting. https://envoyproxy.slack.com/archives/C02F93EEJCE/p1661181247759129

Signed-off-by: JP Simard <[email protected]>
jpsim added a commit that referenced this pull request Nov 29, 2022
)

The `ubuntu-18.04` image has been deprecated:
actions/runner-images#6002

May explain why our Linux CI jobs started being cancelled before even
starting. https://envoyproxy.slack.com/archives/C02F93EEJCE/p1661181247759129

Signed-off-by: JP Simard <[email protected]>
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.

4 participants