Invalidate last_update_date
when source changes
#2424
Labels
backlog
Important but currently unprioritized
enhancement
New feature or request
infra
infrastructure bugs/FRs
techdebt
Technical debt to be paid down
Currently, if we change e.g. a bucket or REST endpoint in a SourceRepository and reimport, we may have the following race condition with these checks:
osv.dev/docker/importer/importer.py
Line 465 in 6b36cfb
osv.dev/docker/importer/importer.py
Line 671 in 6b36cfb
This checks whether the candidate record was updated since the last
SourceRepository
update as an optimisation.However, if the bucket/REST URL changes, this is irrelevant, and could lead to missed imports because the new bucket/REST URL could've been populated before the last
SourceRepository
import with the old source.The text was updated successfully, but these errors were encountered: