Implement the All on-demand DAST scans tab
What does this MR do and why?
This implements the main logic for the All
tab in the on-demand scans index page:
- Polls for pipelines from the source
ondemand_dast_scan
. - Presents the results in a paginated list.
- The pagination is synced with the route.
What doesn't this MR do and why?
This MR doesn't...
- ...handle potential network/API errors when fetching pipelines.
- ...implement a loading state to be shown while pipelines are being fetched.
These have been left out of this MR to make the changeset smaller and more manageable for reviewers. Both this points will be addressed in a follow-up MR.
Screenshots or screen recordings
List
Desktop | Mobile |
---|---|
Pagination
How to set up and validate locally
- Enable the on-demands scans page
Feature.enable(:dast_view_scans)
- Visit any project's on-demand scans page such as http://127.0.0.1:3000/groups/flightjs/-/on_demand_scans
If you have run on-demand scans before, they should be visible here.
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.
Related to #341364 (closed)
Edited by Paul Gascou-Vaillancourt