elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

[Watcher] Add line numbers to "Watch JSON" field #132161

Open a03nikki opened 2 years ago

a03nikki commented 2 years ago

Kibana version: 7.17.3 and 8.2.0

Elasticsearch version: Matches Kibana

Server OS version: cloud.elastic.co

Browser version: Firefox

Browser OS version: MacOS

Original install method (e.g. download page, yum, from source, etc.): cloud.elastic.co

Describe the bug: The code folding and syntax highlight of Dev Tools' Console are there, but the line numbers are missing.

Steps to reproduce:

  1. Kibana (menu) > Management (header) > Stack Management (link) > Alerts and Insights (header) > Watcher (link)
  2. Create (button) > Created advanced watch (option)
  3. Create advanced watch (screen) > Edit (tab) i. Relative path /app/management/insightsAndAlerting/watcher/watches/new-watch/json
  4. Field "Watch JSON"

Expected behavior: Line numbers like Dev Tools' Console.

image

Screenshots (if relevant):

7.17.3 image

8.2.0 image

Errors in browser console (if relevant): N/A

Provide logs and/or server output (if relevant): N/A

Any additional context: Any where there is multi-line input or output that is JSON or other code, it is helpful to include line numbers. They make team work easier when describing which line within the large block of text you are referring to. Much easier then describing the location relative to a users cursor or mouse pointer.

elasticmachine commented 2 years ago

Pinging @elastic/response-ops (Team:ResponseOps)

elasticmachine commented 1 week ago

Pinging @elastic/kibana-management (Team:Kibana Management)