# 태그/태그 그룹 CSV 가져오기는 대소문자를 구별해야 하지만 실제로는 구별하지 않음

**URL:** https://meta.discourse.org/t/tag-taggroup-csv-import-is-case-aware-but-its-not/381450
**Category:** Bug
**Tags:** pr-welcome
**Created:** [9월 3, 2025, 4:19오후 UTC](https://meta.discourse.org/t/tag-taggroup-csv-import-is-case-aware-but-its-not/381450 "2025-09-03T16:19:17Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [9월 15, 2025, 2:04오전 UTC](https://meta.discourse.org/t/tag-taggroup-csv-import-is-case-aware-but-its-not/381450/2 "2025-09-15T02:04:12Z")

</div>

리포트해 주셔서 감사합니다. 이 이슈에 #pr-welcome 태그를 달아두겠습니다. find\_by\_name을 대소문자를 구분하지 않는 검색으로 변경해야 할 것 같습니다.

현재 다음과 같은 코드가 있습니다:

> <https://github.com/discourse/discourse/blob/4474f131951aad0b3aaa11708aad233bc8b4ba99/app/models/tag.rb#L292-L292>

수정 방법은 다음과 같습니다:

```plaintext
tag = Tag.where('lower(name) = ?', tag_name.downcase).first

```

TagGroup에는 인덱스가 빠져 있으므로, 인덱스를 추가한 후 동일한 방식으로 수정해야 합니다.

---

_[View the full topic](https://meta.discourse.org/t/tag-taggroup-csv-import-is-case-aware-but-its-not/381450)._
