Gitea importer does not import all comments on Issues or PRs

While working on an update to the Gitea Importer I noticed that not all Gitea comments for Issues or MRs were being imported (Note: Gitea treats what we call a description as a comment. We convert this to a description when importing.)

Here are some example screenshots:

Gitea source Gitlab destination
Issue
gitea_issue GL_Issue
PR/MR
gitea_PR GL_MR

There was a previous issue raised about PR comments not being imported, but it turned out to be about diff notes, which are not imported, so was eventually closed.

I did some local testing in the Importer class. @SamWord and I thought it might be the discard_inserted_comments, but commenting this out and running another import made no difference.

I believe this behavior may have been missed because usually when QA testing, issues and PRs likely don't have many comments.

Edited by 🤖 GitLab Bot 🤖