[chore] solution,admin,ontology: 코드 주석을 한 줄로 — 히스토리 주석 삭제

여러 줄 주석이 설명보다 경위(예전·실측·지적)를 적고 있어 읽는 사람이 결론을 찾기 어려웠다.

- ts·tsx·js·mjs·css·py 478개: 여러 줄 주석은 첫 문장 한 줄로, 과거형·날짜 문장은 삭제
- 주석 위치는 TypeScript 파서·파이썬 tokenize/ast 로 찾는다 — 문자열 안의 # · /* 는 건드리지 않는다
- eslint·ts·noqa·type: ignore 같은 지시 주석은 그대로 둔다

파이썬 275개 정리 전후 AST 동일, TS 298개 주석 뺀 토큰 동일(빈 JSX 주석 10곳만 차이).
site·frontend·admin tsc, site vitest 105 passed

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 5.5 committed 2026-09-28 16:05:19 +09:00
1 parent c6908629f3
commit 11d30bb3d1
479 files changed
+3337 -13091

No files matched your search

+8 -20
View File
@@ -1,10 +1,4 @@
"""사이트 주소(네임스페이스) 확인·예약.
이 경로가 절대 하면 안 되는 것:
- 한글·대문자 주소를 통과시키는 것 — 주소가 퍼센트 인코딩 덩어리가 되어 사장님이 불러줄 수 없다
- 확인은 통과시키고 저장에서 튕기는 것 — 규칙이 두 곳에 있으면 반드시 생긴다
- ★ 이미 발행돼 색인된 주소를 바꾸는 것 — AI 검색이 잡아 둔 페이지가 404 가 된다
"""
"""사이트 주소(네임스페이스) 확인·예약."""
import uuid
import pytest
@@ -47,14 +41,12 @@ async def _reserve(client, headers, pid, slug):
],
)
def test_slug_rules(slug, reason):
"""검증: 형식·예약어 규칙(확인과 저장이 같이 쓰는 단 하나의 정의).
기대결과: 쓸 수 있으면 None, 아니면 사유 코드."""
"""검증: 형식·예약어 규칙(확인과 저장이 같이 쓰는 단 하나의 정의)."""
assert site_slug.validate_slug(slug) == reason
async def test_check_then_reserve(auth_headers, client):
"""검증: 주소를 확인하고 예약한다. 사이트 행이 없어도 만들어진다.
기대결과: available → 저장 → 자기 주소이므로 다시 확인해도 available."""
"""검증: 주소를 확인하고 예약한다."""
h = await auth_headers("slug1")
pid = await _place(client, h)
@@ -64,14 +56,13 @@ async def test_check_then_reserve(auth_headers, client):
assert saved["result"]["code"] == ErrorType.SUCCESS.value
assert saved["site"]["domain"] == "doflo"
# ★ 자기 자신은 중복이 아니다 — 저장해 둔 화면을 다시 열었을 때 '중복'이라고 하면 안 된다.
# 자기 자신은 중복이 아니다 — 저장해 둔 화면을 다시 열었을 때 '중복'이라고 하면 안 된다.
again = await _check(client, h, pid, "doflo")
assert again["available"] is True and "reason" not in again
async def test_invalid_slug_is_refused_on_save_too(auth_headers, client):
"""검증: 확인에서 막힌 값은 저장에서도 막힌다(클라이언트 검증을 믿지 않는다).
기대결과: 두 경로가 같은 사유를 돌려준다."""
"""검증: 확인에서 막힌 값은 저장에서도 막힌다(클라이언트 검증을 믿지 않는다)."""
h = await auth_headers("slug2")
pid = await _place(client, h)
@@ -85,8 +76,7 @@ async def test_invalid_slug_is_refused_on_save_too(auth_headers, client):
async def test_taken_by_other_place_offers_suggestion(auth_headers, client):
"""검증: 남이 쓰는 주소는 못 쓴다. 대신 쓸 수 있는 대안을 하나 준다.
기대결과: available=false / TAKEN / suggestion=doflo-2."""
"""검증: 남이 쓰는 주소는 못 쓴다."""
h = await auth_headers("slug3")
mine = await _place(client, h, "도플로")
other = await _place(client, h, "도플로2호점")
@@ -106,8 +96,7 @@ async def test_taken_by_other_place_offers_suggestion(auth_headers, client):
async def test_published_site_slug_is_locked(auth_headers, client, db_engine):
"""검증: ★ 이미 발행된 사이트의 주소는 바꿀 수 없다.
기대결과: SITE_SLUG_LOCKED. 같은 값 재전송은 변경이 아니므로 통과."""
"""검증: ★ 이미 발행된 사이트의 주소는 바꿀 수 없다."""
h = await auth_headers("slug4")
pid = await _place(client, h)
await _reserve(client, h, pid, "published-stay")
@@ -130,8 +119,7 @@ async def test_published_site_slug_is_locked(auth_headers, client, db_engine):
async def test_other_owners_place_is_blocked(auth_headers, client):
"""검증: 남의 사업장 주소는 확인도 예약도 못 한다.
기대결과: PLACE_NOT_FOUND(존재 여부조차 알려주지 않는다)."""
"""검증: 남의 사업장 주소는 확인도 예약도 못 한다."""
h = await auth_headers("slug5")
intruder = await auth_headers("slug6")
pid = await _place(client, h)