Skip to content

[GSoC] History of Advisories#2356

Open
Samk1710 wants to merge 5 commits into
aboutcode-org:mainfrom
Samk1710:gsoc-advisory-history
Open

[GSoC] History of Advisories#2356
Samk1710 wants to merge 5 commits into
aboutcode-org:mainfrom
Samk1710:gsoc-advisory-history

Conversation

@Samk1710

@Samk1710 Samk1710 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Resolves

Tasks

  • Implement Advisory Snapshot to view an advisory at a certain point in time
  • Implement Snapshot of Package Details to view details of the advisory at a point in time
  • Implement Diff to Summarize History
  • Add HistoryDiff model to store pre-computed diffs
  • Update to collect diffs at import time
  • Add Improver to backfill History diffs
  • Add tests

Improver Logs:

python manage.py improve history_diff_improver_v2
Improving data using history_diff_improver_v2
INFO 2026-07-25 17:36:36.787350 UTC Pipeline [HistoryDiffImproverPipeline] starting
INFO 2026-07-25 17:36:36.787435 UTC Step [calculate_history_diffs] starting
INFO 2026-07-25 17:36:36.819868 UTC Computing history diffs for 7 advisories
INFO 2026-07-25 17:36:36.945200 UTC Successfully finished history diff backfill.
INFO 2026-07-25 17:36:36.945315 UTC Step [calculate_history_diffs] completed in 0 seconds
INFO 2026-07-25 17:36:36.945345 UTC Pipeline completed in 0 seconds

@Samk1710

Copy link
Copy Markdown
Contributor Author

Attached some screenshots for the feature

History tab for https://github.com/github/advisory-database/commits/main/advisories/github-reviewed/2026/02/GHSA-72hv-8253-57qq/GHSA-72hv-8253-57qq.json

Summary of changes on History Tab
image
image

Severity Tab: Latest vs Oldest

Severity Change from High 8.7 --> Moderate 6.9

image image

Package Details Changes
image
image

@Samk1710
Samk1710 marked this pull request as draft June 25, 2026 13:51
@Samk1710
Samk1710 force-pushed the gsoc-advisory-history branch from 38ffb81 to 881a656 Compare June 25, 2026 15:16
@Samk1710
Samk1710 force-pushed the gsoc-advisory-history branch from 65ffca7 to 881a656 Compare July 25, 2026 23:16
Samk1710 added 2 commits July 26, 2026 05:15
Signed-off-by: Sampurna Pyne <[email protected]>
Signed-off-by: Sampurna Pyne <[email protected]>
@Samk1710
Samk1710 force-pushed the gsoc-advisory-history branch 2 times, most recently from 8a906e9 to db2527e Compare July 26, 2026 00:38
@Samk1710
Samk1710 marked this pull request as ready for review July 26, 2026 00:39
Samk1710 added 3 commits July 26, 2026 06:36
Signed-off-by: Sampurna Pyne <[email protected]>
Signed-off-by: Sampurna Pyne <[email protected]>
@Samk1710
Samk1710 force-pushed the gsoc-advisory-history branch from db2527e to 0c56a02 Compare July 26, 2026 01:07
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.

1 participant