Skip to content

Truncate string arguments displayed in failed jobs index - #265

Merged
rosa merged 1 commit into
rails:mainfrom
benjaminpenaolvera:truncate-job-args-index-view
Aug 29, 2026
Merged

Truncate string arguments displayed in failed jobs index#265
rosa merged 1 commit into
rails:mainfrom
benjaminpenaolvera:truncate-job-args-index-view

Conversation

@benjaminpenaolvera

Copy link
Copy Markdown
Contributor

Description:

This PR truncates the string representation of job arguments in the failed jobs index view. When job arguments are very long, they can break the UI and make the job list hard to read. With this change, only the first 300 characters are shown in the index, while the full arguments remain visible in the job detail view.

Why:

This improves readability and usability. Currently, when job arguments are too long, the UI tends to break and requires excessive horizontal scrolling to perform actions like retry or discard, making the process tedious. Alternatively, users are forced to enter the job detail view just to take action, which is inefficient. Truncating the arguments in the index view makes it much easier to quickly navigate, scan, and manage failed jobs.

Long arguments make the job lists unreadable and push the actions out
of view, so show at most 300 characters per job in the lists. The full
arguments remain on the job's page.

Co-authored-by: Rosa Gutierrez <rosa@37signals.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@rosa
rosa force-pushed the truncate-job-args-index-view branch from 01318cc to e11c86e Compare August 29, 2026 19:44
@rosa

rosa commented Aug 29, 2026

Copy link
Copy Markdown
Member

Thanks @benjaminpenaolvera, and so sorry for the super long delay.

@rosa
rosa merged commit 593b77d into rails:main Aug 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants