# 배지의 “지정한 사용자”에 스태프 이름이 표시되지 않음

**URL:** https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286
**Category:** Bug
**Tags:** badges
**Created:** [10월 15, 2023, 6:00오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286 "2023-10-15T18:00:27Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 15, 2023, 6:00오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/1 "2023-10-15T18:00:27Z")

</div>

안녕하세요, 여러분.

Discourse 버전 3.2.0.beta2-dev ([1a70817962](https://github.com/discourse/discourse/commits/1a70817962f9f635c4e5f56709b8a3bf310f4c02))

관리자 페이지를 통해 회원들에게 수동으로 배지를 부여할 때, "부여한 사람(Granted By)"의 스태프 이름이 표시되지 않습니다:

 ![Screenshot 2023-10-15 at 18.57.35](https://global.discourse-cdn.com/meta/original/4X/1/d/2/1d2e6e419c2eb262816f5c93422d9349ed4d5524.png)

아래 링크와 관련이 있을 수 있습니다: [Grant badge reason not added to the granted badge](https://meta.discourse.org/t/grant-badge-reason-not-added-to-the-granted-badge/279304) 🤔

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10월 15, 2023, 7:17오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/2 "2023-10-15T19:17:05Z")

</div>

안녕하세요 👋

제가 올바르게 이해하고 있다면, 여기서는 `system_users`만 기록되는 것 같습니다. 스태프가 사용자에게 배지를 부여하면 그 내용은 Staff Action Logs(`/admin/logs/staff_action_logs`)에 기록됩니다.

다만, 스태프가 수동으로 부여한 배지 기록도 여기에 추가하면 좋은 기능이라고 생각합니다.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [10월 15, 2023, 8:17오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/3 "2023-10-15T20:17:16Z")

</div>

직원들이 생성한 기록도 함께 표시됩니다. 로그에 대해서는 말씀이 맞습니다.

제가 확인한 바로는, 템플릿은 부여자 이름을 표시할 준비가 되어 있지만, 코드는 부여자 ID를 기반으로 이름을 파악할 수 있도록 페이로드(생성 및 목록)에 `users` 목록을 포함하는 것을 기대하고 있습니다. 아마도 아직 구현된 적이 없는 것 같습니다. 🤔

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [10월 16, 2023, 4:13오전 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/4 "2023-10-16T04:13:53Z")

</div>

이 커밋이 관련이 있을 것 같아요 🤔 불행히도 그에 대한 메타 토픽 토론은 더 이상 사용할 수 없습니다.

> <https://github.com/discourse/discourse/pull/6266>
>
> \> DISCUSSION: https://meta.discourse.org/t/trouble-accessing-preferences-after-u…pgrade-to-discourse-2-1-0-beta4/94253/2?u=xrav3nz
> 
> \`UserSerializer\` is making tons of SQL queries on the fly when serializing \`user\_badge.granted\_by\`. Using \`UserBadgeSerializer::UserSerializer\` cuts down the number of queries from 81 to 8 locally for me.
> 
> From what I can see, \`granted\_by\` is only used in:
> 
> https://github.com/discourse/discourse/blob/7f4ef3db9e1a2794083bf99f5f1f8e17b24de54c/app/assets/javascripts/admin/templates/user-badges.hbs#L42-L45
> 
> and \`UserBadgeSerializer::UserSerializer\` serializes enough information for it.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 16, 2023, 1:09오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/5 "2023-10-16T13:09:16Z")

</div>

> [@Don](#):
>
> 안타깝게도 이에 대한 메타 토픽 토론은 더 이상 사용할 수 없습니다.
> 
> [FIX: use UserBadgeSerializer::UserSerializer for user\_badge.granted\_by - Pull Request #6266 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/6266)

이것이 아닌가요? 🤔

> [@Trouble accessing preferences after upgrade to Discourse 2.1.0.beta4](https://meta.discourse.org/t/trouble-accessing-preferences-after-upgrade-to-discourse-2-1-0-beta4/94253):
>
> I just updated a site and now I’m not able to access /my/preferences/account. I get Server Error while trying to load /user-badges/jayp.json Error code: 504 Gateway Time-out I tried [safe mode](https://meta.discourse.org/t/53504?silent=true), and removed the only non-standard plugin (retort). Though other users do seem to be able to access their preferences. Many are complaining about group-based theme modifications not working, so it seems that there might be some problem with groups. Other pages seem to load fine, however. I don’t see anyt…

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [10월 16, 2023, 1:45오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/6 "2023-10-16T13:45:03Z")

</div>

오늘 아침에 Don의 댓글을 보고 죽은 듯이 잊혀진 주제를 되살렸습니다. 🧟 🙂

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 16, 2023, 1:56오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/7 "2023-10-16T13:56:01Z")

</div>

아하, 뭔가 특별한 권한을 얻은 줄 알았네 🤣

---

<div class="post-metadata">

### Author: ![kelv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kelv/32/524739_2.png) [@kelv](https://meta.discourse.org/u/kelv)
#### Post date: [10월 25, 2023, 4:17오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/10 "2023-10-25T16:17:09Z")

</div>

보고해 주셔서 감사합니다. [FIX: display and link to correct grant\_by users for granted badges - Pull Request #24021 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/24021) 에서 수정했습니다 🙂

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 25, 2023, 5:07오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/11 "2023-10-25T17:07:41Z")

</div>

훌륭하네요, 감사합니다 @kelv 😃

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 25, 2023, 5:37오후 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/12 "2023-10-25T17:37:48Z")

</div>

@kelv `FIX` 커밋 메시지를 보면, 이건 실제로 버그였나요?

아직 구현되지 않은 기능이었던 게 아니라요?

---

<div class="post-metadata">

### Author: ![kelv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kelv/32/524739_2.png) [@kelv](https://meta.discourse.org/u/kelv)
#### Post date: [10월 26, 2023, 4:42오전 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/13 "2023-10-26T04:42:28Z")

</div>

깨진 커밋을 찾지 못해서, 의도된 기능이었던 것이 구현되지 않은 것인지 아니면 버그인지 정확히 알 수 없습니다 😅 어쨌든 UI가 이 기능을 포함하려는 명확한 의도가 있는 것 같아서(`Granted By` 컬럼 헤더를 기준으로 판단) FIX로 진행하기로 했습니다.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [10월 26, 2023, 5:18오전 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/14 "2023-10-26T05:18:18Z")

</div>

음, 수정이 아주 잘 작동하네요. 다시 한번 감사합니다 😃

 ![Screenshot 2023-10-26 at 06.17.38](https://global.discourse-cdn.com/meta/original/4X/a/3/2/a3246eb2c5d38e2194e6b76c585be3ea2e59ee5d.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [10월 28, 2023, 7:00오전 UTC](https://meta.discourse.org/t/granted-by-on-badges-not-displaying-the-staff-name/282286/15 "2023-10-28T07:00:49Z")

</div>

이 주제는 2일 후 자동으로 닫혔습니다. 더 이상 새 답변을 작성할 수 없습니다.
