React to `archived` and `traversal_ids` changes while creating records
requested to merge minac_450525_schedule_adjusting_traversal_ids_and_archived_after_ingestion_if_change_is_detected into master
What does this MR do and why?
It's possible that the project#archived
and namespace#traversal_ids
can change while we are creating the vulnerability records. If that happens, the recently created vulnerability_reads
records will have incorrect archived
and traversal_ids
values.
To prevent aforementioned scenario, we check the project and namespace objects after creating the records and schedule adjustment jobs if there is a change.