Skip to content

fix(risks): CSV import of risks and assets fails silently #755

Description

@alex-dembele

Issue

migration_service.go: The CSV import for risks and assets
returns nil without actually importing anything (TODO: Implement actual risk import logic). The front-end (/risks/import page) reports success even though no
data is created.

Impact

Immediate loss of trust: the user believes they have imported their existing
inventory, sees nothing appear, and receives no error message explaining
why.

Expected Fix

  • Actually implement parsing and creation of risks/assets from the CSV.
  • Pending full implementation, explicitly fail the call
    (error status + clear UI message) rather than returning a silent, false success.
  • Add a test verifying that CSV rows are correctly saved to the database.

Severity

Critical — silent data loss / misleading the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions