# post\_edits 보고서 관련 문제

**URL:** <https://meta.discourse.org/t/issues-with-post-edits-report/302073>\
**Category:** Data & reporting\
**Tags:** dashboard-reports\
**Created:** [4월 2, 2024, 4:17오후 UTC](https://meta.discourse.org/t/issues-with-post-edits-report/302073 "2024-04-02T16:17:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Carleas](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Carleas](https://meta.discourse.org/u/Carleas)\
**Post date:** [4월 3, 2024, 1:20오전 UTC](https://meta.discourse.org/t/issues-with-post-edits-report/302073/2 "2024-04-03T01:20:33Z")

</div>

자기 편집(self-edits)의 경우, `app/models/concerns/reports/post_edits.rb`에서 다음 코드를 찾았습니다:

```plaintext
if editor_username
        builder.where("editor.username = ?", editor_username)
      else
        builder.where("editor.id > 0 AND editor.id != author.id")
      end

```

즉, 사용자 이름이 존재하면 해당 사용자 이름의 편집을 표시하고, 그렇지 않으면 편집자가 작성자와 다른 편집을 표시합니다. 이는 예상치 못한 동작입니다.

* * *

개수 불일치의 경우, 같은 게시글에 대한 여러 편집을 카운트하되 게시글은 한 번만 표시하기 때문일 수 있습니다. 하지만 150개 이상의 편집을 가진 사용자의 로그에서 50개 미만의 편집만 표시되는 경우가 있어 이 가설을 받아들이기 망설여집니다. 평균적으로 한 게시글을 세 번씩 편집한다는 것은 믿기 어렵지만, 온갖 경우가 다 있는 법이죠 🙂

---

_[View the full topic](https://meta.discourse.org/t/issues-with-post-edits-report/302073)._
