8000 [5.x] Failed job list: Modify job retry tooltip label to include status of last job retry by jevz · Pull Request #1182 · laravel/horizon · GitHub
[go: up one dir, main page]

Skip to content

[5.x] Failed job list: Modify job retry tooltip label to include status of last job retry #1182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.vue
  • Loading branch information
taylorotwell authored Sep 5, 2022
commit 701c3ad442699268aa83e4a378126d23c72a9269
9 changes: 5 additions & 4 deletions resources/js/screens/failedJobs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@
},

/**
* Construct the tooltip label for the job containing retry count and the status of the last retry.
* Construct the tooltip label for a retried job.
*/
jobTooltipLabel(job){
let lastRetry = job.retried_by[job.retried_by.length - 1]
retriedJobTooltip(job){
let lastRetry = job.retried_by[job.retried_by.length - 1];

return `Total retries: ${job.retried_by.length}, Last retry status: ${_.upperFirst(lastRetry.status)}`;
},

Expand Down Expand Up @@ -247,7 +248,7 @@
</router-link>

<small class="badge badge-secondary badge-sm"
v-tooltip:top="jobTooltipLabel(job)"
v-tooltip:top="retriedJobTooltip(job)"
v-if="wasRetried(job)">
Retried
</small>
Expand Down
0