@@ -90,6 +90,7 @@ impl Report {
9090 self . invocations . par_iter_mut ( ) . for_each ( |invocation| {
9191 invocation. workspace_id = self . metadata . workspace_id . clone ( ) ;
9292 invocation. project_id = self . metadata . project_id . clone ( ) ;
93+ invocation. analysis_id = self . metadata . id . clone ( ) ;
9394 invocation. reference = self . metadata . reference . clone ( ) ;
9495 invocation. build_id = self . metadata . build_id . clone ( ) ;
9596 invocation. build_timestamp = self . metadata . start_time ;
@@ -99,6 +100,7 @@ impl Report {
99100 self . messages . par_iter_mut ( ) . for_each ( |message| {
100101 message. workspace_id = self . metadata . workspace_id . clone ( ) ;
101102 message. project_id = self . metadata . project_id . clone ( ) ;
103+ message. analysis_id = self . metadata . id . clone ( ) ;
102104 message. reference = self . metadata . reference . clone ( ) ;
103105 message. build_id = self . metadata . build_id . clone ( ) ;
104106 message. build_timestamp = self . metadata . start_time ;
@@ -108,6 +110,7 @@ impl Report {
108110 self . issues . par_iter_mut ( ) . for_each ( |issue| {
109111 issue. workspace_id = self . metadata . workspace_id . clone ( ) ;
110112 issue. project_id = self . metadata . project_id . clone ( ) ;
113+ issue. analysis_id = self . metadata . id . clone ( ) ;
111114 issue. analyzed_at = Some ( self . metadata . start_time . unwrap ( ) ) ;
112115 issue. pull_request_number = self . metadata . pull_request_number . clone ( ) ;
113116 issue. tracked_branch_id = self . metadata . tracked_branch_id . clone ( ) ;
@@ -120,6 +123,7 @@ impl Report {
120123 self . stats . par_iter_mut ( ) . for_each ( |stats| {
121124 stats. workspace_id = self . metadata . workspace_id . clone ( ) ;
122125 stats. project_id = self . metadata . project_id . clone ( ) ;
126+ stats. analysis_id = self . metadata . id . clone ( ) ;
123127 stats. analyzed_at = Some ( self . metadata . start_time . unwrap ( ) ) ;
124128 stats. pull_request_number = self . metadata . pull_request_number . clone ( ) ;
125129 stats. tracked_branch_id = self . metadata . tracked_branch_id . clone ( ) ;
0 commit comments