Skip to content

[P3] detail.js refetches the entire scan (size=10000) on every prev/next #145

Description

@eboudrant

Priority: P3 · Review finding: #20

static/js/detail.js _detailNext/_detailPrev use navigateReplace, which re-runs showDetail_loadDetailapiGet(/api/scans/:id?page=0&size=10000). Every arrow-key press re-downloads and re-parses the full scan (potentially MBs on large scans).

Fix: cache _detailFailures keyed by scanId and skip the refetch when only the filename changed (refresh on scan change or via the watch poll).

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions