tobytwigger / laravel-job-status

The only Laravel job debugging tool you'll ever need
https://tobytwigger.github.io/laravel-job-status
MIT License
19 stars 1 forks source link

[Dashboard] Jobs that don't have an URL friendly alias break the `view job` request #53

Closed shutupflanders closed 1 year ago

shutupflanders commented 1 year ago

Describe the bug Having already set up a range of jobs prior to installing this package, I never gave any of my jobs an alias - this results in jobs reverting back to their fully qualified class name.

When trying to view a job through the dashboard, I'm met with an infinite loading page and a load of 404s in the network tab.

Upon close inspection, before contacting the API it swaps out the backslashes for forward slashes and thus can't find the job.

To Reproduce Steps to reproduce the behavior:

  1. Generate a job using php artisan make:job TestJob
  2. Queue the job
  3. Open the job-status dashboard and attempt to view the job
  4. See error

Expected behavior The job is loaded successfully as if an aliased one would be.

Screenshots image image image image

shutupflanders commented 1 year ago

Confirmed fixed, thanks! :+1: