# 위키 편집자 배지가 여러 번 지급됩니다

**URL:** https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205
**Category:** Bug
**Created:** [11월 22, 2019, 7:31오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205 "2019-11-22T19:31:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Elena\_Lappen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elena_lappen/32/138721_2.png) [@Elena\_Lappen](https://meta.discourse.org/u/Elena_Lappen)
#### Post date: [11월 22, 2019, 7:31오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/1 "2019-11-22T19:31:12Z")

</div>

위키 편집자 배지는 사용자가 처음 위키 게시물을 수정할 때 정상적으로 지급되지만, 그 이후에는 간헐적으로 여러 번 지급되는 문제가 있습니다. 불행히도 이를 일관되게 재현하지 못해 특정 어떤 경우에 발생하는지 정확히 알지 못합니다. 저 역시 여러 번 배지를 받았지만, 위키를 수정할 때마다 항상 지급되지는 않습니다. 다른 두 명의 사용자도 우리 포럼에서 동일한 문제를 보고했습니다.

이탈리아 사용자의 스크린샷:

 ![a31a932f1fb7d85853e68c2d5131a99b20c1e4dc_2_305x500](https://global.discourse-cdn.com/meta/original/3X/e/b/eb64eaf263cf3b866674e4ac9f1c1af34ff2c6f5.png)

설정과 관련하여, 배지는 활성화되어 있으며 공개 배지 페이지에 표시됩니다. 그러나 다른 옵션은 선택되어 있지 않습니다(즉, 배지를 여러 번 지급할 수 있도록 허용하는 옵션은 선택하지 않았습니다).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 23, 2019, 2:09오전 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/2 "2019-11-23T02:09:53Z")

</div>

최신 버전의 Discourse를 사용하고 계신가요?

---

<div class="post-metadata">

### Author: ![Elena\_Lappen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elena_lappen/32/138721_2.png) [@Elena\_Lappen](https://meta.discourse.org/u/Elena_Lappen)
#### Post date: [11월 25, 2019, 9:57오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/3 "2019-11-25T21:57:21Z")

</div>

죄송합니다. 그 내용을 포함해야 했는데 빠뜨렸습니다. 현재 2.4.0.beta7 ([15f6f57cdc](https://github.com/discourse/discourse/commits/15f6f57cdcebc7583ddb5a31174d10a7300ae4a)) 버전을 사용하고 있습니다. 이후 커밋 중 이 문제를 해결했을 가능성이 있는 내용이 있다면, 업그레이드 후 결과를 다시 보고드리겠습니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 25, 2019, 10:22오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/4 "2019-11-25T22:22:21Z")

</div>

현재 이 문제에 대한 다른 보고가 없으므로 최신 버전으로 업데이트해 보시는 것을 권장합니다.

---

<div class="post-metadata">

### Author: ![Elena\_Lappen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elena_lappen/32/138721_2.png) [@Elena\_Lappen](https://meta.discourse.org/u/Elena_Lappen)
#### Post date: [12월 6, 2019, 5:26오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/5 "2019-12-06T17:26:52Z")

</div>

안녕하세요, 이틀 전에 ([fa52ed3b16](https://github.com/discourse/discourse/commits/fa52ed3b168dd42762b8e27c7eca4e003d8bc720)) 버전으로 업데이트했는데, 또다시 위키 편집자 배지를 받았습니다!

기이한 점 중 하나는 이 배지가 오프라인 상태일 때까지 표시되지 않아서, 정확히 어떤 동작이 트리거가 되었는지 확신이 서지 않는다는 것입니다.

 ![Screen Shot 2019-12-06 at 8.01.15 AM](https://global.discourse-cdn.com/meta/original/3X/0/d/0d06fc985e0b006dc4341705dd722b421cc5550e.png)

참고로: [Getting the same badge multiple times](https://discuss-space.wmflabs.org/t/getting-the-same-badge-multiple-times/2065)

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [12월 30, 2019, 3:20오전 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/6 "2019-12-30T03:20:33Z")

</div>

2.0 버전부터 최신 버전까지 같은 문제가 있는 것 같습니다.

---

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [3월 24, 2020, 2:48오후 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/7 "2020-03-24T14:48:06Z")

</div>

이 문제가 여전히 발생한다는 것을 확인했습니다. 현재 2.4.1 버전을 사용 중이지만, 다른 최근 버전에서도 발생했습니다.

재현 패턴이 명확하지 않아 아직 보고하지 않았습니다. 다만, **가끔** 위키 편집자 배지를 이미 보유한 사용자가 위키에 편집을 수행한 후, 그 배지를 다시 획득했다는 알림을 받는 경우가 있습니다. 배지 목록에는 배지가 하나만 표시되며, 단순히 알림이 반복적으로 전송되는 것입니다.

---

<div class="post-metadata">

### Author: ![ECoops123](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ecoops123/32/197398_2.png) [@ECoops123](https://meta.discourse.org/u/ECoops123)
#### Post date: [3월 26, 2020, 9:46오전 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/8 "2020-03-26T09:46:32Z")

</div>

확인합니다

 ![20200326_094224](https://global.discourse-cdn.com/meta/original/3X/6/2/62e7596e07d4bb1575e716c3841c09319198a4cd.jpeg)

어떤 버전인지 정확히 모르겠습니다. 저는 서버 오너나 고직급(예외적으로 TL3 제외)도 아닙니다.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 27, 2020, 1:42오전 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/9 "2020-03-27T01:42:45Z")

</div>

이것은 버그로 보입니다. 해당 배지 자체는 다중 부여(multi grant) 배지가 아닙니다:

> <https://github.com/discourse/discourse/blob/bed3f7f69a718a0b47199e09bc1570a3164597a8/db/fixtures/006_badges.rb#L240-L240>

쿼리를 살펴보니, 우리가 정의한 다른 배지들과 달리 min id를 가져오지 않는 것을 확인할 수 있습니다.

> <https://github.com/discourse/discourse/blob/bed3f7f69a718a0b47199e09bc1570a3164597a8/lib/badge_queries.rb#L105-L112>

여기서 수정을 했으며, 이를 통해 개선될 것으로 보입니다:

> <https://github.com/discourse/discourse/commit/40b6e278a08d58ffd9525c52318daac397465b37>
>
> \`DISTINCT ON\` was not providing stability, this ensures the backfill will
> be sta…ble on a specific post avoiding risk around double grants.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [4월 3, 2020, 1:42오전 UTC](https://meta.discourse.org/t/wiki-editor-badge-is-awarded-multiple-times/134205/10 "2020-04-03T01:42:55Z")

</div>

이 주제는 마지막 답변 후 7일이 지나면 자동으로 닫힙니다. 더 이상 새 답변을 게시할 수 없습니다.
