Commit ad10f0ff authored by Michał Zając's avatar Michał Zając Committed by Mark Chao

Log name components for UUIDv5 generation

For some reason we are unable to reproduce UUIDs for
Vulnerability::Finding objects when calculating them from the persisted
data. See https://gitlab.com/gitlab-org/gitlab/-/issues/212322#note_434346683
for a sample.

Now we will log the name we use when generating the UUID right before
we persist the object.
parent 87e5db95
......@@ -104,6 +104,8 @@ module Security
name = uuid_v5_name_components.values.join('-')
Gitlab::AppLogger.debug(message: "Generating UUIDv5 with name: #{name}") if Gitlab.dev_env_or_com?
Gitlab::Vulnerabilities::CalculateFindingUUID.call(name)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment