Skip to content

[TASK] Persist scan phase timestamps in task detail responses #802

@utksh1

Description

@utksh1

Summary

Task detail payloads should expose started and completed timestamps for each scan phase, not just coarse status.

Why this task exists

This area already has active backend behavior and tests, but the current contract is either implicit or incomplete. A contributor should be able to improve reliability without changing unrelated execution flow.

Scope

  • Suggested files or directories: backend/secuscan/executor.py, backend/secuscan/routes.py, testing/backend/unit/test_scan_phases.py
  • Out of scope: broad UI redesigns, unrelated schema migrations, or plugin-wide refactors

Starting points

Review the existing route and model patterns in backend/secuscan/routes.py, adjacent unit/integration tests under testing/backend/, and similar implementations already used for tasks, notifications, or workflows.

Acceptance criteria

  • The target backend behavior is implemented with a clear contract
  • Regressions are covered by focused unit or integration tests
  • Error handling stays consistent with existing API patterns

Test plan

Run the most specific backend tests that exercise the touched route or module, then run the adjacent integration coverage if a route contract changes.

Notes for contributors

Keep the change scoped to the described behavior. Avoid bundling unrelated cleanup into the same PR.

Metadata

Metadata

Assignees

Labels

area:backendBackend API, database, or service worklevel:intermediate35 pts difficulty label for moderate contributor PRspriority:mediumImportant issue with normal urgencytype:featureFeature work category bonus label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions