[jira] [Updated] (FLINK-31110) Web UI shows "User Configuration" preserving lines and whitespaces

2023-02-18 Thread Mingliang Liu (Jira)


 [ 
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)


[jira] [Updated] (FLINK-31110) Web UI shows "User Configuration" preserving lines and whitespaces

2023-02-18 Thread Mingliang Liu (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mingliang Liu updated FLINK-31110:
--
Description: 
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.

  was:
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.


> 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
>
> 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)


[jira] [Updated] (FLINK-31110) Web UI shows "User Configuration" preserving lines and whitespaces

2023-02-16 Thread Mingliang Liu (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mingliang Liu updated FLINK-31110:
--
Priority: Minor  (was: Major)

> 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
>
> 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)


[jira] [Updated] (FLINK-31110) Web UI shows "User Configuration" preserving lines and whitespaces

2023-02-16 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-31110:
---
Labels: pull-request-available  (was: )

> 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: Major
>  Labels: pull-request-available
>
> 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)