feat(프로젝트): 메인 업무·세부 업무 추가 칸 날짜 팝업에도 [매일]
- POST tasks 의 repeat_daily: true = 만든 뒤 켬(033 미적용 503), 화면은 data-daily-ready(db.daily_ready)일 때만 버튼 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1677,6 +1677,16 @@ def test_repeat_daily_task_and_alerts():
|
||||
got = req("PUT", f"/project/api/tasks/{t['id']}", ALICE, json={"due_date": "2026-12-05"}).json()["task"]
|
||||
assert got["repeat_daily"] is False and got["due_date"] == "2026-12-05", got
|
||||
assert t["id"] not in [x["id"] for x in ST.list_open_daily_tasks()]
|
||||
# 추가 칸(보드 새 업무·세부 업무)에서 [매일]로 만들기 — POST repeat_daily
|
||||
r = req("POST", f"/project/api/projects/{a['id']}/tasks", ALICE,
|
||||
json={"title": "매일 점검", "stage_id": sa["id"], "due_date": None, "repeat_daily": True})
|
||||
assert r.status_code == 201, r.text
|
||||
assert r.json()["task"]["repeat_daily"] is True and "_newly_assigned" not in r.json()["task"]
|
||||
r = req("POST", f"/project/api/projects/{a['id']}/tasks", ALICE,
|
||||
json={"title": "세부 매일", "parent_task_id": t["id"], "repeat_daily": True})
|
||||
assert r.status_code == 201 and r.json()["task"]["repeat_daily"] is True, r.text
|
||||
assert req("POST", f"/project/api/projects/{a['id']}/tasks", ALICE, json={"title": "x", "repeat_daily": 1}).status_code == 400
|
||||
assert ST.daily_ready() is True
|
||||
|
||||
|
||||
def test_move_stage_to_other_project():
|
||||
|
||||
Reference in New Issue
Block a user