jenkinsci/lockable-resources-plugin

DataTable with known 0 entries still shows "Loading - please wait ..." indefinitely

Opened this issue · 0 comments

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

CentOS 8, OpenIndiana 2024.04
Jenkins 2.462.2 LTS
Lockable Resources Version 1255.vf48745da_35d0 through to 1301.v0e3b_da_4b_4462 at least

Reproduction steps

For a table of global LR queue (on controllers with at least one non-ephemeral resource configured):

  • Open $JENKINS_URL/lockable-resources/
  • Open the Queue tab when no jobs are running (none using lockable resources/waiting for them)

Alternately, go into the (legacy-UI) page of a build that used no resources, and open its Lockable Resources section from the left menu.

Expected Results

A table that is knowingly "Showing 0 to 0 of 0 entries" should not be populated by a "Loading - please wait ..." message. Maybe there should be no table at all in this case (if that's an easier way around DataTables API).

Actual Results

  • Global LR queue
    image

  • Single build statistics
    image

Anything else?

No response

Are you interested in contributing a fix?

No response