Skip to content

Infinite "Loading..." on some pages when they should show an empty result #1570

@alecpl

Description

@alecpl

Horizon Version

5.33.1

Laravel Version

11

PHP Version

8.2

Redis Driver

PhpRedis

Redis Version

irrelevant

Database Driver & Version

No response

Description

On Failed Jobs and Batches pages, when these pages expect no entries to display, I see "Loading..." instead of expected "There aren't any jobs.".

I see the horizon/api/jobs/failed?starting_at=0 request returns {"jobs":[],"total":0}. For horizon/api/batches?before_id= it is {"batches":[]} (BTW, a lack of total here is inconsistent).

Note, the Silenced Jobs page does work as expected. I didn't check others because they right now aren't empty.

Steps To Reproduce

Visit these two pages with empty jobs database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions