Parse markdown review summary content
What does this MR do and why?
This MR adds a new field content_html
to the MergeRequestReviewLlmSummary
model. This field will store the HTML content of the review summary, converted from Markdown. This is the backend portion of Parse markdown review summary content (#418882 - closed), so there isn't a significant user-facing change at the moment.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable
automatically_summarize_mr_review
. - Follow https://docs.gitlab.com/ee/development/ai_features.html#test-ai-features-locally.
- Open an MR in a project that has AI features enabled.
- Add multiple comments (with some markdown) to a review and then submit the review.
- Using rails console, confirm that the
MergeRequest::ReviewLlmSummary
records are created:MergeRequest::ReviewLlmSummary.find_by(review: Review.last)
- Using your local GraphQL explorer (probably something like https://gdk.test:3443/-/graphql-explorer), write a query like:
query summaryNotes {
project(fullPath: "yourproject/goeshere") {
id
mergeRequest(iid: "iid of the MR goes here") {
id
mergeRequestDiffs {
nodes {
reviewLlmSummaries {
nodes {
content
contentHtml
}
}
}
}
}
}
}
and confirm any markdown content has been converted to HTML.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #418882 (closed)
Edited by Gary Holtz