It seems that the filters are based on 'started_on' - I think 'enqueued_on' makes more sense To recreate: 1 - Do a bunch of stuff in the staff interface the will generate background jobs 2 - Wait a bit to make sure all the jobs are done 3 - Visit Admin->Jobs 4 - Note there is nothing shown 5 - uncheck 'Current jobs only' and 'Only include jobs started in the last hour' 6 - Note that nothing is shown, but header says '(filtered from X jobs)'
Created attachment 145146 [details] [review] Bug 32596: Filter jobs by enqueued on, not started on To test: 1 - Do a bunch of stuff in the staff interface the will generate background jobs 2 - Wait a bit to make sure all the jobs are done 3 - Visit Admin->Jobs 4 - Note there is nothing shown 5 - uncheck 'Current jobs only' and 'Only include jobs started in the last hour' 6 - Note that nothing is shown, but header says '(filtered from X jobs)' 7 - Apply patch 8 - Reload table 9 - Confirm you can see the finished jobs now
Created attachment 145193 [details] [review] Bug 32596: Filter jobs by enqueued on, not started on To test: 1 - Do a bunch of stuff in the staff interface the will generate background jobs 2 - Wait a bit to make sure all the jobs are done 3 - Visit Admin->Jobs 4 - Note there is nothing shown 5 - uncheck 'Current jobs only' and 'Only include jobs started in the last hour' 6 - Note that nothing is shown, but header says '(filtered from X jobs)' 7 - Apply patch 8 - Reload table 9 - Confirm you can see the finished jobs now Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
In testing, batch item and bib modification jobs showed up when complete without the patch. Resetting ES mappings created a job that did not show without the patch.
This is a bug but somewhere else. started_on is always null.
(In reply to Jonathan Druart from comment #4) > This is a bug but somewhere else. started_on is always null. I do not longer recreate that (?)
Created attachment 145199 [details] [review] Bug 32596: Filter jobs by enqueued on, not started on To test: 1 - Do a bunch of stuff in the staff interface the will generate background jobs 2 - Wait a bit to make sure all the jobs are done 3 - Visit Admin->Jobs 4 - Note there is nothing shown 5 - uncheck 'Current jobs only' and 'Only include jobs started in the last hour' 6 - Note that nothing is shown, but header says '(filtered from X jobs)' 7 - Apply patch 8 - Reload table 9 - Confirm you can see the finished jobs now Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 23.05. Nice work everyone, thanks!
Nice work, thanks everyone! Pushed to 22.11.x for the next release.
Backported to 22.05.x for upcoming 22.05.09
depends on 30982 not present on 21.11.x branch. won't backport