Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64581

Middle-click or Ctrl+click a build in a trend chart to open the build in a new tab

      On the web page of a job, Jenkins shows a trend chart for warnings. If I click a build in the trend chart, then the browser navigates to a web page that lists the warnings from that build. However, I would like to open the build in a new tab of the browser, in order to more easily compare the warnings from multiple builds. I would normally be able to do that by clicking a hyperlink with the middle mouse button (or with the primary button while holding the Ctrl key), but the trend chart uses an onclick event handler (trend-chart.js) instead of hyperlinks, so those actions do not work. I hope they can be made to work.

      It would be even better if other actions that the web browser supports for hyperlinks, likewise worked in the trend chart: Shift+click to open in a new window, and right-click to open a context menu from which the URL can be copied.

          [JENKINS-64581] Middle-click or Ctrl+click a build in a trend chart to open the build in a new tab

          I posted my suggestions back in January 2021; but I haven't checked whether later versions of the echarts library have added any new API that could be useful here.

          Kalle Niemitalo added a comment - I posted my suggestions back in January 2021; but I haven't checked whether later versions of the echarts library have added any new API that could be useful here.

          Ulli Hafner added a comment -

          I will start work on this issue for Hacktoberfest 2024 sometime this week.

          Oh, then I need to re-enable the Hacktoberfest label in GitHub as well. I think Basil removed all those labels in a batch job...

          Ulli Hafner added a comment - I will start work on this issue for Hacktoberfest 2024 sometime this week. Oh, then I need to re-enable the Hacktoberfest label in GitHub as well. I think Basil removed all those labels in a batch job...

          Kris Stern added a comment -

          No worries, I will start a PR during Christmas

          Kris Stern added a comment - No worries, I will start a PR during Christmas

          Arnab added a comment -

          Hello krisstern can I work on this? I was going the code snippet linked in the description of this issue and it seems some of code in the "trend-chart.js" has been refactored into "echarts-api.js".

          I will go through both the versions and the suggestions here to try to resolve this issue but apart from this do you have any suggestions or a specific approach to it?

          Thank You

          Arnab added a comment - Hello krisstern can I work on this? I was going the code snippet linked in the description of this issue and it seems some of code in the "trend-chart.js" has been refactored into "echarts-api.js". I will go through both the versions and the suggestions here to try to resolve this issue but apart from this do you have any suggestions or a specific approach to it? Thank You

          Ulli Hafner added a comment - - edited

          Yes, the code has been moved to a different file.

          I have no idea on how to achieve this with ECharts. This requires some digging in the ECharts API oder mailing lists.

          And yes, feel free to work on this. There is no assignee in the moment...

          Ulli Hafner added a comment - - edited Yes, the code has been moved to a different file. I have no idea on how to achieve this with ECharts. This requires some digging in the ECharts API oder mailing lists. And yes, feel free to work on this. There is no assignee in the moment...

          Arnab added a comment - - edited

          Hello drulli I looked up for the echarts-api plugin mailing list in the Jenkins site and gitter but couldn't find one. So, I asked the question directly in the https://groups.google.com/g/jenkinsci-dev. So, do you think that is the correct place or am I missing something?

          Thank You

          Arnab added a comment - - edited Hello drulli I looked up for the echarts-api plugin mailing list in the Jenkins site and gitter but couldn't find one. So, I asked the question directly in the https://groups.google.com/g/jenkinsci-dev . So, do you think that is the correct place or am I missing something? Thank You

          code_arnab, I think drulli meant the mailing list used by developers of ECharts https://echarts.apache.org/en/maillist.html, rather than anything specific to Jenkins.

          https://echarts.apache.org/en/faq.html#ask-questions suggests asking ECharts questions on stackoverflow.

          Kalle Niemitalo added a comment - code_arnab , I think drulli meant the mailing list used by developers of ECharts https://echarts.apache.org/en/maillist.html , rather than anything specific to Jenkins. https://echarts.apache.org/en/faq.html#ask-questions suggests asking ECharts questions on stackoverflow.

          Arnab added a comment -

          Ah! Now I get it.

          Thank You for the clarification kon 

          Arnab added a comment - Ah! Now I get it. Thank You for the clarification kon  

          Ulli Hafner added a comment -

          Yes, exactly. I meant some other users of ECharts might already solved that problem so it would be good to start there for looking for a solution.

          Ulli Hafner added a comment - Yes, exactly. I meant some other users of ECharts might already solved that problem so it would be good to start there for looking for a solution.

          Arnab added a comment -

          Got it! I'll look it up there

          Arnab added a comment - Got it! I'll look it up there

            Unassigned Unassigned
            kon Kalle Niemitalo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: