FireXStuff / firex-flame-ui

The UI (graph viewer) for Flame.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Auto-linkify from original logs_dir path to log_root_url #9

Open djungic opened 3 years ago

djungic commented 3 years ago

Auto-linkifying is currently sourced from regexes in the ui-config JSON. It could be enhanced to auto-linkify from an original logs_dir, such as a resource like:

/builds/FireXStuff/firex-flame/flow_test_results/FireX-firex-210105-222350-49616/integration_tests_logs/FlameLaunchWithCentralServerTest/xunit_results.xml

which has logs_dir:

/builds/FireXStuff/firex-flame/flow_test_results/FireX-firex-210105-222350-49616

And might have a logs_root_url specified via an install-config JSON of:

http://www.firexflame.com/#/FireX-firex-210105-222350-49616/logs/

This means the resource could be linkified to have URL:

http://www.firexflame.com/#/FireX-firex-210105-222350-49616/logs/integration_tests_logs/FlameLaunchWithCentralServerTest/xunit_results.xml