Skip to content
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

Redirect to index page by status when discarding a job #185

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Oct 31, 2024

This is a follow-up to #157, which redirected back after discarding instead of redirecting to the failed job page always, since you can discard a job from the scheduled jobs page as well. However, this doesn't work in the case of discarding a job from its individual page, because in that case we'd try to redirect to the job, and the job no longer exists, which results in a 404.

With this change, we just redirect to wherever the status of the discarded job is.

This is a follow-up to #157, which redirected back after discarding
instead of redirecting to the failed job page always, since you can
discard a job from the scheduled jobs page as well. However, this
doesn't work in the case of discarding a job from its individual page,
because in that case we'd try to redirect to the job, and the job no
longer exists, which results in a 404.

With this change, we just redirect to wherever the status of the
discarded job is.
@rosa rosa merged commit 07fe9ce into main Oct 31, 2024
10 checks passed
@rosa rosa deleted the fix-redirect-from-individual-job branch October 31, 2024 15:40
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.

1 participant