Moin
4월 15, 2026, 1:27오후
1
새로운 기능이 어떤 태그를 사용할 수 없는지 설명하는 부분이 있어서 조금 혼란스럽습니다. 검색어에 따라 이 카테고리에서 해당 태그를 사용할 수 있다고 하기도 하고, 사용할 수 없다고 하기도 합니다. 이 카테고리에서 사용을 허용하지 않는다면, 일관성이 있어야 하지 않을까요? 저는 서포트 카테고리에서 테마 컴포넌트 태그를 사용할 수 있는 것 같아서, 왜 자동완성에서는 사용할 수 없다고 표시하는지 궁금합니다.
5개의 좋아요
아하, 내 실수였어 기능 이 제한 관련해서 조금 더 "지능적"이어야 했어
main ← fix-disabled-tags-mislabeled
merged 07:01AM - 16 Apr 26 UTC
When searching tags in the composer, `filter_allowed_tags` applies a LIMIT (`max… _tag_search_results`, default 5). If more allowed tags match the query than fit under the limit, the overflow is silently dropped.
`append_disabled_tags` then ran a naive substring query for visible tags matching the term, assumed any tag not in the allowed list must be excluded by filter rules, and asked `explain_exclusion` to fabricate a reason. Allowed-but-cut-off tags leaked into the disabled list and showed the vague fallback "\"X\" cannot be used in this category".
Because `filter_allowed_tags` orders by term (`DISTINCT ON (lower(name) = lower(term), ...)`), the same tag could appear allowed under one search term (prefix match, ranks high, fits in the limit) and disabled under another (mid-string match, ranks lower, gets cut off) — producing inconsistent verdicts for the same tag in the same category.
Before labeling any tag as disabled or forbidden, re-run `filter_allowed_tags` scoped to the candidate names (no limit) and drop any that come back allowed. Extracted to `reject_allowed_tags` so both `append_disabled_tags` and `detect_forbidden_tag` go through the same verification. The probe is skipped when the allowed result didn't saturate its limit, since no cutoff is possible in that case.
https://meta.discourse.org/t/400696
5개의 좋아요
sam
(Sam Saffron)
에 닫힘
4월 16, 2026, 10:00오후
5
이 주제는 21시간 후 자동으로 닫혔습니다. 더 이상 새로운 답변을 게시할 수 없습니다.