-
Task
-
Resolution: Fixed
-
Minor
- is related to
-
JENKINS-73959 [warnings-ng] Extract JavaScript block in PullRequestMonitoringPortlet/monitor.jelly
-
- Closed
-
- links to
[JENKINS-73894] [warnings-ng] Un-inline JavaScript in IssuesChartPortlet/portlet.jelly
Assignee | Original: Ulli Hafner [ drulli ] | New: Yaroslav Afenkin [ yafenkin ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "jenkinsci/warnings-ng-plugin/pull/1859 (Web Link)" [ 30034 ] |
Description |
Original:
h4. Culprit
[https://github.com/jenkinsci/warnings-ng-plugin/blob/e659c7ada2792573a475e50242ef4c9d9bdb9b85/plugin/src/main/resources/io/jenkins/plugins/analysis/core/portlets/IssuesChartPortlet/portlet.jelly#L18-L24] h4. Solution TBD |
New:
h4. Culprit
[https://github.com/jenkinsci/warnings-ng-plugin/blob/e659c7ada2792573a475e50242ef4c9d9bdb9b85/plugin/src/main/resources/io/jenkins/plugins/analysis/core/portlets/IssuesChartPortlet/portlet.jelly#L18-L24] h4. Solution Use {{st:bind}} with {{var}} attribute to define a global variable, which can then be accessed from JavaScript. Use {{data}} attributes with e.g. span element to pass whatever other data is needed. (No docs exist AFAICT? Perhaps we could improve here :)) |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |
Link |
New:
This issue is related to |
Released As | New: 11.10.0 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Closed [ 6 ] |
I'm not entirely sure I've identified the culprit correctly. The failing ATH test is https://ci.jenkins.io/job/Core/job/acceptance-test-harness/job/PR-1749/7/testReport/plugins/XUnitPluginTest/latest_linux_jdk21_firefox_split9___publish_xunit_results/
Searching the org for const trendProxy points to the location I've linked in the description of the issue.