Mingliang Liu created FLINK-31110: ------------------------------------- Summary: 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
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 prints the plain string which does not work well with values that contains whitespaces and line breaks. 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. 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)