Draft: Add 'Failed' tab to list failed jobs and/or pipelines
What does this MR do and why?
This MR adds new Failed
tab to both Pipelines
and Jobs
views.
The rationale is that Administrator need to quickly know when something
went wrong and what went wrong.
This feature is handy for Jobs lists, because there are no custom filters yet. It is also handy for Pipelines lists, but not strictly necessary (it is possible to define custom Pipeline filter with same results).
This MR has no exact Issue however there are exist similar Issues:
- Issue #19679 - here creator requests list of failed jobs (which this MR does) however for Group view (which this MR does not - only for Admin Area -> Jobs and Project's Jobs).
- Issue #22626 (closed) - her creator requests job filter in Admin area (this MR adds Failed job filter to Admin Area, but not generic filter as Issue creator requested).
Screenshots or screen recordings
Added Failed
tab on Admin Area -> Jobs
Added Failed
tab to "Project" -> Jobs
- example GDK URL: http://localhost:3000/gitlab-org/gitlab-test/-/jobs?scope=failed
Added Failed
tab to "Project" -> Pipelines
How to set up and validate locally
Requirements:
- have at least 1 failed pipeline
- have at least 1 failed job
Both requirements are met by current GDK fixtures with gitlab commit: ad0085ce
- Go to Admin Area -> Jobs
- Verify that new tab
Failed
exists - Click on tab
Failed
- Verify that only jobs in
failed
status are shown - Go to project with at least one failed Pipeline
- click on CI/CD -> Pipelines
- Verify that new tab
Failed
exists - click on tab
Failed
- Verify that only Pipelines in
failed
state are shown - now click on CI/CD -> Jobs
- Verify that new tab
Failed
exists - click on tab
Failed
- Verify that only Jobs in
failed
state are shown
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.