hue: Oozie job browser's graph do not show red/green bars for failed/successful subworkflows
Describe the bug:
While testing a failed coordinator run with the new Hue version I noticed that the Oozie’s Job browser graph doesn’t show anymore red/green bars under the subworkflows failed/completed. It is more difficult to find what was the problem and debug it under this conditions 😦
To visualize:
Current behavior:

Expected/old behavior:

I noticed the following JS error though:
hue.errorcatcher.34bb8f5ecd32.js:31 Hue detected a Javascript error: https://hue-next.wikimedia.org/static/desktop/js/bundles/hue/vendors~hue~notebook~tableBrowser-chunk-4d9d2c608a19e4e1ab7a.51951e55bebc.js 1705 2 Uncaught Error: Syntax error, unrecognized expression: [id^=wdg_@add_partition]
window.onerror @ hue.errorcatcher.34bb8f5ecd32.js:31
jquery.js:1677 Uncaught Error: Syntax error, unrecognized expression: [id^=wdg_@add_partition]
at Function.Sizzle.error (jquery.js:1677)
at Sizzle.tokenize (jquery.js:2377)
at Sizzle.select (jquery.js:2838)
at Function.Sizzle [as find] (jquery.js:894)
at jQuery.fn.init.find (jquery.js:3095)
at new jQuery.fn.init (jquery.js:3205)
at jQuery (jquery.js:157)
at <anonymous>:66:25
at Object.D (knockout-latest.js:11)
at Object.success (<anonymous>:59:26)
at fire (jquery.js:3496)
at Object.fireWith [as resolveWith] (jquery.js:3626)
at done (jquery.js:9786)
at XMLHttpRequest.<anonymous> (jquery.js:10047)
Steps to reproduce it?
Simply navigate to an URL like /hue/jobbrowser/jobs/0009826-200915132022208-oozie-oozi-W#!id=0009824-200915132022208-oozie-oozi-W.
Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0…). System info (e.g. OS, Browser…).
4.7.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (15 by maintainers)
Commits related to this issue
- [oozie] Escape special characters in selectors (#1272) — committed to milimetric/hue by milimetric 4 years ago
- [oozie] Escape special characters in selectors (#1272) Note: I fixed a bug in list_oozie_workflow_graph that is also there in list_oozie_workflow but I don't know where that view is used or how to ge... — committed to milimetric/hue by milimetric 4 years ago
We just need to escape special characters here, as per jQuery guidelines “To use any of the meta-characters ( such as !”#$%&'()*+,./:;<=>?@[]^`{|}~ ) as a literal part of a name, it must be escaped with with two backslashes: \". I’ll send a PR escaping these.