The Admin Dashboard now includes a Trigger Ingestion action accessible from the hamburger menu under admin options.
This is intended for administrators who need to pull new advisories immediately instead of waiting for the scheduled ingestion job.
- The button is visible only to users with the
ADMINrole. - Access it via the hamburger menu (☰) → Trigger Ingestion.
- Clicking opens a confirmation modal.
- Confirming the action sends a
POSTrequest to:
POST /api/v1/admin/ingest/trigger- The request is CSRF-protected and respects the same Spring Security rules as the rest of the application.
- A success or error toast is shown after the request completes.
After the trigger request is accepted:
- The API responds with
202 Accepted. - Ingestion continues asynchronously in the background.
- You can check progress through:
GET /api/v1/admin/ingest/statusThe trigger endpoint logs the action server-side so the manual ingestion request is visible in application logs and operational traces.
When testing locally:
- Sign in with an
ADMINuser. - Open the dashboard at
/dashboard. - Click the hamburger menu (☰) icon in the top-right corner.
- Click Trigger Ingestion in the menu.
- Confirm the modal action.
- Verify that the
202 Acceptedresponse is returned and the ingest status endpoint reflects the background run.
- The button is now part of the hamburger menu, positioned under
User Managementas an admin-only option. - The trigger button markup is in
templates/dashboard/fragments/nav.html(within the nav-dropdown). - The modal includes proper ARIA attributes (
role="dialog",aria-modal="true") and keyboard focus management. - Modal functions (
openIngestModal,closeIngestModal,confirmIngest) are defined intemplates/dashboard/index.html.