feat(project): allow text in meeting target/result cells; fix result note save

- Target and result cells accept text such as "20개". Values that parse
  as amounts still go to the integer columns; anything else goes to the
  new target_text/result_text columns (migration 021).
- Fix: PUT /api/goals/meeting-items/{id} dropped result_note, so the
  last-week result text was never saved.
- Update meeting nav test to the month-bounded week numbering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 11:40:30 +09:00
parent 7417e661e0
commit 9528f735b8
19 changed files with 150 additions and 35 deletions
+9 -1
View File
@@ -760,7 +760,15 @@ def test_goal_meetings():
put = lambda iid, body, who=ADMIN: req("PUT", f"/project/api/goals/meeting-items/{iid}", who, json=body) # noqa: E731
r = put(coupang["id"], {"content": "추석 타임딜", "target_amount": "1,200만"})
assert r.status_code == 200 and r.json()["item"]["target_amount"] == 12_000_000, r.text
assert put(coupang["id"], {"target_amount": "abc"}).status_code == 400
# 숫자가 아닌 정량 목표 — 021 이면 글 칸(target_text), 전이면 400
with ST._pool.connection() as conn: # noqa: SLF001
v21 = ST._meeting_v21(conn) # noqa: SLF001
r = put(coupang["id"], {"target_amount": "abc"})
if v21:
assert r.status_code == 200 and r.json()["item"]["target_text"] == "abc" and r.json()["item"]["target_amount"] is None, r.text
else:
assert r.status_code == 400
assert put(coupang["id"], {"target_amount": "1,200만"}).json()["item"]["target_amount"] == 12_000_000
assert put(coupang["id"], {"status": "bogus"}).status_code == 400
assert put(coupang["id"], {"content": "x"}, BOB).status_code == 403
assert req("PUT", f"/project/api/goals/meetings/{w1}", ADMIN,