Skip to content

Conversation

@mr-raj12
Copy link

@mr-raj12 mr-raj12 commented Jan 1, 2026

Summary

  • Fixed duplicate entries appearing in the "Fixed in package version" column on package details page
  • Added deduplication logic using seen_packages dictionary to track package IDs per advisory
  • Prevents duplicate entries when multiple ImpactedPackage records reference the same fixing package

Resolves #1907

Changes

File: vulnerabilities/views.py (lines 223-242)

Before: Used .extend() without checking for duplicates
After: Track seen package IDs per advisory and only add unique packages

Test Plan

  • Python syntax check passed
  • AST parse passed
  • Ran Django tests (284 tests, no new failures from this change)
  • Manually verified with imported nginx data

Signed-off-by: Mrityunjay Raj mr.raj.earth@gmail.com

Resolves aboutcode-org#1907

Added deduplication logic using seen_packages dictionary to prevent
duplicate entries when multiple ImpactedPackage records reference
the same fixing package.

Signed-off-by: Mrityunjay Raj <mr.raj.earth@gmail.com>
@mr-raj12 mr-raj12 force-pushed the fix-1907-duplicate-fixed-by branch from 5f31f12 to 67b57a3 Compare January 1, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove duplicated entry for fixed by

1 participant