Show status of Package Metadata sync to instance admins
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
Problem to solve
Admins of GitLab instances where License Scanning is used might have the following questions:
- Is my new instance ready to scan projects? Is the initial import completed?
- Is my instance getting updates on new packages and versions? Is it syncing up?
- Is my instance ready to scans projects using a newly supported package type (for which License DB didn't have metadata before)?
They might be particularly interested in specific package types because most projects of the instance use the corresponding package managers.
In case they notice something wrong with the sync, they might want to check the GCP export buckets, or the local directory they import from (if that's an offline instance). They need to spot the exact sequence and chunk that was last imported.
Proposal
Add an admin page that gives the status of License DB imports. For each PURL type, the page gives key information on the last import:
- import time
- sequence id
- chunk id
This can be implemented on top of the pm_checkpoints table.
Additionally, the page also gives the status of the last import. Currently the pm_checkpoints doesn't provide that information.
In the future, the same UI could be used to show the status of security advisories imports.