Skip to content

Commit c270c40

Browse files
ashwinpvgSkCQ
authored andcommitted
Update all columns on Topics table when existing topic is found
Change-Id: I1c4bc4b6bc5858a11b4660499ae9e388e8c10324 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/1147376 Reviewed-by: Prakhar Asthana <[email protected]> Commit-Queue: Ashwin Verleker <[email protected]>
1 parent 3c9a063 commit c270c40

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

rag/go/topicstore/topicstore.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ func (s *topicStoreImpl) WriteTopic(ctx context.Context, topic *Topic) error {
128128
Kind: spanner.ClosedClosed,
129129
}))
130130
m := spanner.UpdateMap("Topics", map[string]interface{}{
131-
"topic_id": topicID,
132-
"title": topic.Title,
131+
"topic_id": topicID,
132+
"title": topic.Title,
133+
"topic_group": topic.TopicGroup,
134+
"commit_count": topic.CommitCount,
135+
"summary": topic.Summary,
136+
"code_context": topic.CodeContext,
137+
"code_context_lines": topic.CodeContextLines,
133138
})
134139
mutations = append(mutations, m)
135140
}

0 commit comments

Comments
 (0)