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

Table of warning namespaces/packages shows only first page

      I have a project in which the MSBuild warnings parser finds a total of 60 warnings in 30 namespaces.  When the Warnings plugin shows the list of namespaces that have warnings:

      • Initially, it has "10 entries per page".  The bottom line says "Showing 1 to 10 of 30 entries" as expected; but the page selector at the bottom right corner lists only page 1.  The page selector should list pages 1, 2, and 3.
      • Then, I select "25 entries per page".  The bottom line says "Showing 1 to 25 of 30 entries" and the page selector correctly lists pages 1 and 2.
      • Then, I select "10 entries per page" again.  The bottom line says "Showing 1 to 10 of 30 entries" and the page selector correctly lists pages 1, 2, and 3.

          [JENKINS-72964] Table of warning namespaces/packages shows only first page

          Kalle Niemitalo created issue -
          Kalle Niemitalo made changes -
          Description Original: I have a project in which the MSBuild warnings parser finds a total of 60 warnings in 30 namespaces.  When the Warnings plugin shows the list of namespaces that have warnings:
           * Initially, it has "10 entries per page".  The bottom line says "Showing 1 to 10 of 30 entries" as expected; but the page selector at the bottom right corner lists only page 1.  The page selector should list pages 1, 2, and 3.
           * Then, I select "25 entries per page".  The bottom line says "Showing 1 to 25 of 30 entries" and the page selector correctly lists pages 1 and 2.
           * Then, I select "10 entries per page" again.  The bottom line says "Showing 1 to 10 of 30 entries" and the selector correctly lists pages 1, 2, and 3.
          New: I have a project in which the MSBuild warnings parser finds a total of 60 warnings in 30 namespaces.  When the Warnings plugin shows the list of namespaces that have warnings:
           * Initially, it has "10 entries per page".  The bottom line says "Showing 1 to 10 of 30 entries" as expected; but the page selector at the bottom right corner lists only page 1.  The page selector should list pages 1, 2, and 3.
           * Then, I select "25 entries per page".  The bottom line says "Showing 1 to 25 of 30 entries" and the page selector correctly lists pages 1 and 2.
           * Then, I select "10 entries per page" again.  The bottom line says "Showing 1 to 10 of 30 entries" and the page selector correctly lists pages 1, 2, and 3.

          I upgraded to data-tables-api 2.0.3-1 and still get the same bug.

          Kalle Niemitalo added a comment - I upgraded to data-tables-api 2.0.3-1 and still get the same bug.

          Ulli Hafner added a comment -

          Is this still a problem? I cannot reproduce this issue...

          Ulli Hafner added a comment - Is this still a problem? I cannot reproduce this issue...

          Yes, this is still a problem. With Mozilla Firefox 115.14.0esr, and also with Microsoft Edge 127.0.2651.105.

          However! If I resize the Web browser window, then the missing page numbers appear in the page selector, even though there is no new HTTP request. So the client-side JavaScript apparently has all the information it needs, but does not initially display it correctly.

          Kalle Niemitalo added a comment - Yes, this is still a problem. With Mozilla Firefox 115.14.0esr, and also with Microsoft Edge 127.0.2651.105. However! If I resize the Web browser window, then the missing page numbers appear in the page selector, even though there is no new HTTP request. So the client-side JavaScript apparently has all the information it needs, but does not initially display it correctly.
          Ulli Hafner made changes -
          Attachment New: Bildschirmfoto 2024-08-21 um 14.42.46.png [ 63185 ]

          Ulli Hafner added a comment -

          Can you please add a screenshot? On my machine this looks fine, see my screenshot.

          Ulli Hafner added a comment - Can you please add a screenshot? On my machine this looks fine, see my screenshot.

          Ulli Hafner added a comment -

          Are the dom elements visible when you open the browser inspector?

          Ulli Hafner added a comment - Are the dom elements visible when you open the browser inspector?

          Only page number 1 is initially in the DOM. The others are added to the DOM during the resize event.

          Kalle Niemitalo added a comment - Only page number 1 is initially in the DOM. The others are added to the DOM during the resize event.
          Kalle Niemitalo made changes -

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

              Created:
              Updated: