feat(project): rename meeting columns and drop rate/evaluation
Headers: 주요 업무 / 결과 / 전주 목표 / 정량 목표. The achievement-rate and evaluation columns are removed from the weekly meeting table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -885,7 +885,7 @@ def test_meeting_prev_week_links():
|
||||
assert m2["prev_meeting"] is None and all(it["prev"] is None for it in m2["items"])
|
||||
v = req("GET", f"/project/api/goals/meetings/{w2}?year={w2.year}&month={w2.month}", ADMIN).json()
|
||||
assert v["head"]["prev_exists"] is False and v["head"]["prev_target"] is None
|
||||
assert all(it["rate"] is None for it in v["meeting"]["items"])
|
||||
assert all("rate" not in it for it in v["meeting"]["items"]) # 달성률 열 폐지(2026-10-06)
|
||||
# w1 을 만들면 w2 의 지난주 = w1(그 주 줄, 비어 있음) — w0 의 50/100 이 아니다
|
||||
_create_meeting(w1)
|
||||
v = req("GET", f"/project/api/goals/meetings/{w2}?year={w2.year}&month={w2.month}", ADMIN).json()
|
||||
@@ -894,7 +894,7 @@ def test_meeting_prev_week_links():
|
||||
if keyed:
|
||||
assert prevs and all(p["week_start"] == w1.isoformat() for p in prevs)
|
||||
assert all(p["week_start"] == w1.isoformat() for p in prevs)
|
||||
assert all(it["rate"] is None for it in v["meeting"]["items"])
|
||||
assert all("rate" not in it for it in v["meeting"]["items"]) # 달성률 열 폐지(2026-10-06)
|
||||
finally:
|
||||
_drop_meetings([w0, w1, w2, w3])
|
||||
|
||||
@@ -968,7 +968,7 @@ def test_meeting_perf_unknown_vs_zero():
|
||||
assert {"mtd", "prev_result"} <= set(h["unknown"]), h
|
||||
row = coupang_row(v)
|
||||
# 지난주 결과는 실적에서 자동으로 채우지 않는다(2026-10-06) — 직접 입력이 없으면 비어 있음
|
||||
assert row["prev"]["result"] is None and row["rate"] is None
|
||||
assert row["prev"]["result"] is None and "rate" not in row
|
||||
assert row["market_off"] is False
|
||||
assert v["markets"] == []
|
||||
# 매출 조회 장애(목록은 정상) — 전부 미확인
|
||||
@@ -976,14 +976,14 @@ def test_meeting_perf_unknown_vs_zero():
|
||||
h = v["head"]
|
||||
assert h["perf_state"] == "ok" and h["mtd"] is None and h["need_per_week"] is None
|
||||
assert {"mtd", "prev_result"} <= set(h["unknown"])
|
||||
assert coupang_row(v)["prev"]["result"] is None and coupang_row(v)["rate"] is None
|
||||
assert coupang_row(v)["prev"]["result"] is None and "rate" not in coupang_row(v)
|
||||
# 정상 조회 0 건 — 진짜 0원(미확인 아님), 필요 매출 = 목표 ÷ 남은 주
|
||||
v = view(_FakePerf())
|
||||
h = v["head"]
|
||||
assert h["mtd"] == 0 and h["prev_result"] == 0 and h["unknown"] == [], h
|
||||
assert h["need_per_week"] == 1000 // h["weeks_left"]
|
||||
row = coupang_row(v)
|
||||
assert "auto_result" not in row["prev"] and row["prev"]["result"] is None and row["rate"] is None
|
||||
assert "auto_result" not in row["prev"] and row["prev"]["result"] is None and "rate" not in row
|
||||
assert h["fresh_oldest"] == "10/01 14:20" and "쿠팡 10/01 14:20" in h["fresh_tip"]
|
||||
# 부분 실패 — 월 누적(1일부터) 조회만 실패: 누적·필요 매출만 미확인, 전주 결과·줄 결과는 정상
|
||||
prev_start = w - timedelta(days=7)
|
||||
@@ -993,7 +993,7 @@ def test_meeting_perf_unknown_vs_zero():
|
||||
assert "mtd" in h["unknown"] and "prev_result" not in h["unknown"], h
|
||||
assert h["mtd"] is None and h["need_per_week"] is None and h["prev_result"] == 70
|
||||
# 쇼핑몰 지난주 매출(70)이 있어도 줄 결과·달성률은 자동으로 채우지 않는다
|
||||
assert coupang_row(v)["prev"]["result"] is None and coupang_row(v)["rate"] is None
|
||||
assert coupang_row(v)["prev"]["result"] is None and "rate" not in coupang_row(v)
|
||||
# 매출 집계 쇼핑몰 없음 — 0 원으로 보이지 않게(empty, 미확인도 아님)
|
||||
v = view(_FakePerf(markets=[{"code": "coupang", "name": "쿠팡", "enabled": True, "include_in_sales": False}]))
|
||||
assert v["head"]["perf_state"] == "empty" and v["head"]["mtd"] is None and v["head"]["unknown"] == []
|
||||
|
||||
Reference in New Issue
Block a user