Skip to content

[GSoC] History of Advisories - #2356

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

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

Conversation

@Samk1710

@Samk1710Samk1710 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:

pythonmanage.pyimprovehistory_diff_improver_v2Improvingdatausinghistory_diff_improver_v2INFO2026-07-2517:36:36.787350UTCPipeline [HistoryDiffImproverPipeline] startingINFO2026-07-2517:36:36.787435UTCStep [calculate_history_diffs] startingINFO2026-07-2517:36:36.819868UTCComputinghistorydiffsfor7advisoriesINFO2026-07-2517:36:36.945200UTCSuccessfullyfinishedhistorydiffbackfill.
INFO2026-07-2517:36:36.945315UTCStep [calculate_history_diffs] completedin0secondsINFO2026-07-2517:36:36.945345UTCPipelinecompletedin0seconds

@Samk1710

Samk1710 commented Jun 25, 2026

Copy link
Copy Markdown
ContributorAuthor

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

imageimage

Package Details Changes
image
image

@Samk1710
Samk1710 marked this pull request as draft June 25, 2026 13:51
@Samk1710
Samk1710force-pushed the gsoc-advisory-history branch from 38ffb81 to 881a656CompareJune 25, 2026 15:16
@Samk1710
Samk1710force-pushed the gsoc-advisory-history branch 3 times, most recently from 8a906e9 to db2527eCompareJuly 26, 2026 00:38
@Samk1710
Samk1710 marked this pull request as ready for review July 26, 2026 00:39
@Samk1710
Samk1710force-pushed the gsoc-advisory-history branch from db2527e to 0c56a02CompareJuly 26, 2026 01:07
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
@Samk1710
Samk1710force-pushed the gsoc-advisory-history branch from 0c56a02 to e45f3c2CompareJuly 29, 2026 19:02
@Samk1710

Copy link
Copy Markdown
ContributorAuthor

This PR is ready for review. Do take a look!
CC: @keshav-space@ziadhany@TG1999@Hritik14

Sign up for freeto 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

@Samk1710