Skip to content

Gitea Inline Comment Reply Issues #34

@Amazing-Stardom

Description

@Amazing-Stardom

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:

  1. Gitea doesn't send data of new comment posted inside the file diff.
Image
  1. The temporary fix was to fetch the latest comment posted in the PR number.
  2. This has created very rare issues also known as race conditions.
  3. Basically, if 2 people add new comments at the same time. The reply will be only posted to the latest comment.
Image

Potential Fix

  1. Need to check why Gitea is not sending data through the webhook.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions