Skip to content

Log structured message when LFS object is auto-linked from parent

Stan Hu requested to merge sh-log-auto-link-fork-lfs into master

What does this MR do and why?

!75972 (merged) added a feature to auto-link uploaded LFS files from a push to a fork project.

To aid in the feature rollout in #348243 (closed), add a structured log message.

Screenshots or screen recordings

{
  "severity": "INFO",
  "time": "2021-12-14T22:38:33.271Z",
  "correlation_id": "edbe6e4e-de4f-4a4e-9b59-776c454b250e",
  "message": "LFS file auto-linked to forked project",
  "lfs_object_oid": "b68143e6463773b1b6c6fd009a76c32aeec041faff32ba2ed42fd7f708a00001",
  "source_project_id": 63,
  "source_project_path": "namespace4/project4",
  "target_project_path": "group1/project5",
  "target_project_id": 64
}

How to set up and validate locally

See instructions in !75972 (merged).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports

Loading