Whenever 2 users add comments within a span of 1 min. The reply is posted to the latest comment instead of posting to a specific discussion.
Root Cause:
- Gitea doesn't send data of new comment posted inside the file diff.
- The temporary fix was to fetch the latest comment posted in the PR number.
- This has created very rare issues also known as race conditions.
- Basically, if 2 people add new comments at the same time. The reply will be only posted to the latest comment.
Potential Fix
- Need to check why Gitea is not sending data through the webhook.
- Add a queue-based mechanism for temporarily waiting for one no-data webhook to finish the task.
Conclusion
Need to explore a few more solutions.
As it is not much of a high priority, leaving an issue here
Whenever 2 users add comments within a span of 1 min. The reply is posted to the latest comment instead of posting to a specific discussion.
Root Cause:
Potential Fix
Conclusion
Need to explore a few more solutions.
As it is not much of a high priority, leaving an issue here