[
https://issues.apache.org/jira/browse/FLINK-31110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mingliang Liu updated FLINK-31110:
----------------------------------
Attachment: Screenshot 2023-02-18 at 1.24.20 AM.png
> Web UI shows "User Configuration" preserving lines and whitespaces
> ------------------------------------------------------------------
>
> Key: FLINK-31110
> URL: https://issues.apache.org/jira/browse/FLINK-31110
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Web Frontend
> Affects Versions: 1.16.1
> Reporter: Mingliang Liu
> Priority: Minor
> Labels: pull-request-available
> Attachments: Screenshot 2023-02-18 at 1.24.20 AM.png
>
>
> Currently one can use \{{env.getConfig().setGlobalJobParameters(...)}} for
> setting user configurations. It will also show up in the Web UI > Running
> Jobs > Job Configuration > User Configuration section. This is nice so users
> can confirm the user configuration (key/value pair) gets populated.
> However, it does not preserves whitespaces and line breaks in HTML page. For
> example, we have some prettified JSON configuration and sometimes formatted
> SQL statements in those configurations, and it's showing in a compacted HTML
> format - not human readable original formatted string.
> I propose we keep the whitespaces and lines for this "User Configuration"
> section in the Web UI. The implementation can be as simple as adding
> {{style="white-space: pre-wrap;"}} to the rows in that section.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)