Allow users to refresh the status of token in a Finding
## Problem to solve https://gitlab.com/gitlab-org/gitlab/-/issues/520923+s added the token status to the finding page, but once a status has been assigned to a finding, it can't be updated. ## Proposal Add button on the vulnerability finding page to allow users to refresh the status of the token for that finding. Included on the page should be a last updated date. ### Proposed Token Status Refresh Process When a user clicks the "Refresh Token Status" button on a vulnerability finding page, the following process occurs: 1. The UI sends a PUT request to the server with the vulnerability finding ID. 2. The controller receives this request and calls the newly created `UpdateTokenStatusService`. 3. The service updates the token status and returns the new status. 4. The controller sends a JSON response containing the new status back to the UI. 5. The JavaScript in the UI updates the displayed token status without requiring a page reload. ```mermaid sequenceDiagram participant User participant UI as UI (Refresh Button) participant Controller participant Service as UpdateTokenStatusService User->>UI: Click "Refresh Token Status" Note over UI: Button is disabled if token is inactive UI->>Controller: PUT /vulnerability_findings/:id/refresh_token Controller->>Service: call UpdateTokenStatusService Note over Service: Service handles token status update internally Service-->>Controller: Return updated token status Controller-->>UI: Return JSON with new status UI->>UI: Update displayed token status ``` ## Implementation Plan Important Dates: - %"18.3" = Release: '2025-08-21' | Code cutoff: '2025-08-14' - %"18.4" = Release: '2025-09-18' | Code cutoff: '2025-09-11' | Type | Task | Issue | Team | Milestone | |------|------|-------|------|-----------| | ~"type::feature" | UI implementation for the Vulnerability Details | https://gitlab.com/gitlab-org/gitlab/-/issues/555411+ | ~frontend | %"18.3" | | ~"type::feature" | API integration for the Vulnerability Details | https://gitlab.com/gitlab-org/gitlab/-/issues/555412+ | ~frontend | %"18.3" | | ~"type::feature" | Update token badge for the Vulnerability Details | https://gitlab.com/gitlab-org/gitlab/-/issues/555413+ | ~frontend | %"18.3" | | ~"type::feature" | UI implementation for the MR modal | https://gitlab.com/gitlab-org/gitlab/-/issues/556927+ | ~frontend | %"18.4" | | ~"type::feature" | API integration for the MR modal | https://gitlab.com/gitlab-org/gitlab/-/issues/556929+ | ~frontend | %"18.4" | | ~"type::feature" | Update token badge for the MR Modal | https://gitlab.com/gitlab-org/gitlab/-/issues/556930+ | ~frontend | %"18.4" | | ~"type::feature" | wip FF rollout | https://gitlab.com/gitlab-org/gitlab/-/issues/556937+ | ~frontend | %"18.4" |
epic