Merge branch 'feat/project-daily-on-create'
This commit is contained in:
@@ -249,7 +249,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
<script src="/static/cupang-outbound.js?v=20261023d" defer></script>
|
<script src="/static/cupang-outbound.js?v=20261023d" defer></script>
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
|
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
|
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -101,7 +101,8 @@
|
|||||||
카드·목록·내 업무·세부 업무·업무 창 마감 칸 = `dueInfo(…, daily)` → `.is-daily`(CSS ::before repeat 아이콘 + "매일", 노랑).
|
카드·목록·내 업무·세부 업무·업무 창 마감 칸 = `dueInfo(…, daily)` → `.is-daily`(CSS ::before repeat 아이콘 + "매일", 노랑).
|
||||||
알림 = `reminders.run_daily_alerts`(데몬 1분 주기, 영업일, `daily_alert_times` 중 지난 가장 늦은 시각 하나 — `task_reminders` kind `daily@HH:MM`·그날로 중복 방지)
|
알림 = `reminders.run_daily_alerts`(데몬 1분 주기, 영업일, `daily_alert_times` 중 지난 가장 늦은 시각 하나 — `task_reminders` kind `daily@HH:MM`·그날로 중복 방지)
|
||||||
→ 담당자(없으면 협업자)에게 `type=daily` 알림 → 큰 팝업 `_ALERT_TYPES` 에 포함, 줄 배경 노랑(`.pj-alert-item.is-daily`), PC 알림 프로그램 `Alert.IsDaily`.
|
→ 담당자(없으면 협업자)에게 `type=daily` 알림 → 큰 팝업 `_ALERT_TYPES` 에 포함, 줄 배경 노랑(`.pj-alert-item.is-daily`), PC 알림 프로그램 `Alert.IsDaily`.
|
||||||
새 업무 만들기 칸(보드 아래 추가·세부 업무 추가 줄)에는 [매일] 없음 — 만든 뒤 날짜 칸에서. 033 미적용이면 [매일] 숨김·PUT 503·알림 skip.
|
추가 칸(보드 아래 메인 업무 추가·카드 세부 업무 추가 줄)에도 [매일] — `data-daily-ready`(`db.daily_ready`), `POST …/tasks` 의 `repeat_daily: true` = 만든 뒤 `update_task` 로 켬.
|
||||||
|
033 미적용이면 [매일] 숨김·PUT/POST 503·알림 skip.
|
||||||
|
|
||||||
- 수신함은 확인 안 한 태그·읽지 않은 알림만(2026-10-08) — [확인] 버튼 없이 줄을 누르면 읽음·확인 처리(같은 작업 줄 함께) + 페이지 이동 없이 오른쪽 iframe 패널, 다른 줄을 고르거나 패널을 닫으면 그 줄은 목록에서 빠짐.
|
- 수신함은 확인 안 한 태그·읽지 않은 알림만(2026-10-08) — [확인] 버튼 없이 줄을 누르면 읽음·확인 처리(같은 작업 줄 함께) + 페이지 이동 없이 오른쪽 iframe 패널, 다른 줄을 고르거나 패널을 닫으면 그 줄은 목록에서 빠짐.
|
||||||
- 나를 태그하거나 작업이 배정되면 프로젝트 화면 가운데 아래에 깜박이는 큰 팝업(닫기 전까지, `initTaskAlerts` + `GET /api/notifications/alerts`).
|
- 나를 태그하거나 작업이 배정되면 프로젝트 화면 가운데 아래에 깜박이는 큰 팝업(닫기 전까지, `initTaskAlerts` + `GET /api/notifications/alerts`).
|
||||||
|
|||||||
@@ -1758,6 +1758,18 @@ class ProjectStore:
|
|||||||
([int(i) for i in ordered_ids], stage_id),
|
([int(i) for i in ordered_ids], stage_id),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def daily_ready(self) -> bool:
|
||||||
|
"""tasks.repeat_daily(마이그레이션 033, 매일 하는 업무) 가 있는지. 한 번 켜지면 기억."""
|
||||||
|
if getattr(self, "_daily_ready", False):
|
||||||
|
return True
|
||||||
|
with self._pool.connection() as conn:
|
||||||
|
ok = bool(conn.execute(
|
||||||
|
"SELECT 1 FROM information_schema.columns WHERE table_schema = 'public' "
|
||||||
|
"AND table_name = 'tasks' AND column_name = 'repeat_daily'"
|
||||||
|
).fetchone())
|
||||||
|
self._daily_ready = ok
|
||||||
|
return ok
|
||||||
|
|
||||||
def link_order_ready(self) -> bool:
|
def link_order_ready(self) -> bool:
|
||||||
"""task_project_links.sort_order(마이그레이션 032) 가 있는지. 한 번 켜지면 기억."""
|
"""task_project_links.sort_order(마이그레이션 032) 가 있는지. 한 번 켜지면 기억."""
|
||||||
if getattr(self, "_link_order_ready", False):
|
if getattr(self, "_link_order_ready", False):
|
||||||
|
|||||||
@@ -901,6 +901,7 @@ def project_page(request: Request, project_id: int) -> HTMLResponse:
|
|||||||
"user": user,
|
"user": user,
|
||||||
**_role_ctx(user, request),
|
**_role_ctx(user, request),
|
||||||
"pj_options": _project_options(st),
|
"pj_options": _project_options(st),
|
||||||
|
"pj_daily_ready": st.daily_ready(), # 033 — 새 업무·세부 업무 추가 칸 날짜 팝업의 [매일]
|
||||||
"can_manage": can_manage,
|
"can_manage": can_manage,
|
||||||
"nav_items": build_erp_nav(user, active="project"),
|
"nav_items": build_erp_nav(user, active="project"),
|
||||||
"page_title": project["name"],
|
"page_title": project["name"],
|
||||||
@@ -1549,12 +1550,22 @@ def _create_task_for(
|
|||||||
"""작업 만들기 공통(작업 창 등) — 권한(멤버)·담당자 확인·만들기·자동 협업자·배정/완료 알림·@태그.
|
"""작업 만들기 공통(작업 창 등) — 권한(멤버)·담당자 확인·만들기·자동 협업자·배정/완료 알림·@태그.
|
||||||
돌려주는 값: (작업, 태그하지 못한 이메일). 회의록 [적용]은 같은 확인·후처리를 쓰되 만들기만 줄 잠금 트랜잭션 안에서."""
|
돌려주는 값: (작업, 태그하지 못한 이메일). 회의록 [적용]은 같은 확인·후처리를 쓰되 만들기만 줄 잠금 트랜잭션 안에서."""
|
||||||
project, followers = _task_create_checks(request, st, user, project_id, payload)
|
project, followers = _task_create_checks(request, st, user, project_id, payload)
|
||||||
|
daily = payload.get("repeat_daily", False) # 추가 칸 날짜 팝업 [매일](033) — 만든 뒤 켠다(마감일은 비움)
|
||||||
|
if not isinstance(daily, bool):
|
||||||
|
raise HTTPException(status_code=400, detail="매일 반복 값이 올바르지 않습니다.")
|
||||||
try:
|
try:
|
||||||
task = st.create_task(**_task_create_fields(user, project_id, payload))
|
task = st.create_task(**_task_create_fields(user, project_id, payload))
|
||||||
except ValueError as exc:
|
except ValueError as exc:
|
||||||
raise HTTPException(status_code=400, detail=str(exc))
|
raise HTTPException(status_code=400, detail=str(exc))
|
||||||
except KeyError as exc:
|
except KeyError as exc:
|
||||||
raise HTTPException(status_code=404, detail=str(exc))
|
raise HTTPException(status_code=404, detail=str(exc))
|
||||||
|
if daily:
|
||||||
|
try:
|
||||||
|
task = st.update_task(task_id=task["id"], fields={"repeat_daily": True}, actor=user["email"])
|
||||||
|
except UndefinedColumn:
|
||||||
|
raise HTTPException(status_code=503, detail="DB 마이그레이션 033(매일 하는 업무)이 아직 적용되지 않았습니다.")
|
||||||
|
task.pop("_newly_assigned", None)
|
||||||
|
task.pop("_newly_completed", None)
|
||||||
return task, _task_created_effects(request, st, user, project, task, followers, bg)
|
return task, _task_created_effects(request, st, user, project, task, followers, bg)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -289,5 +289,5 @@
|
|||||||
|
|
||||||
<script src="/static/project-goal-text.js?v=20261026a" defer></script>
|
<script src="/static/project-goal-text.js?v=20261026a" defer></script>
|
||||||
<script src="/static/project-meeting-cells.js?v=20261012a" defer></script>
|
<script src="/static/project-meeting-cells.js?v=20261012a" defer></script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -207,5 +207,5 @@
|
|||||||
{% include "project/_member_tasks_modal.html" %}
|
{% include "project/_member_tasks_modal.html" %}
|
||||||
|
|
||||||
<script src="/static/project-goal-text.js?v=20261026a" defer></script>
|
<script src="/static/project-goal-text.js?v=20261026a" defer></script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -106,5 +106,5 @@
|
|||||||
{% include "project/_side_modals.html" %}
|
{% include "project/_side_modals.html" %}
|
||||||
{% include "project/_member_tasks_modal.html" %}
|
{% include "project/_member_tasks_modal.html" %}
|
||||||
|
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -100,5 +100,5 @@
|
|||||||
"today": {{ today | tojson }}
|
"today": {{ today | tojson }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -108,5 +108,5 @@
|
|||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="pj-wrap pj-project-view"
|
<div class="pj-wrap pj-project-view"
|
||||||
data-project-id="{{ project.id }}"
|
data-project-id="{{ project.id }}"
|
||||||
data-can-manage="{{ 'true' if can_manage else 'false' }}"
|
data-can-manage="{{ 'true' if can_manage else 'false' }}"
|
||||||
data-is-pro="{{ 'true' if pj_pro else 'false' }}" data-all-view="{{ 'true' if pj_all_view else 'false' }}" data-is-padmin="{{ 'true' if pj_admin else 'false' }}"
|
data-is-pro="{{ 'true' if pj_pro else 'false' }}" data-all-view="{{ 'true' if pj_all_view else 'false' }}" data-daily-ready="{{ '1' if pj_daily_ready else '' }}" data-is-padmin="{{ 'true' if pj_admin else 'false' }}"
|
||||||
data-is-super="{{ 'true' if user.is_super_admin else 'false' }}"
|
data-is-super="{{ 'true' if user.is_super_admin else 'false' }}"
|
||||||
data-default-view="{{ pj_options.default_view if pj_options else 'board' }}"
|
data-default-view="{{ pj_options.default_view if pj_options else 'board' }}"
|
||||||
data-board-cover="{{ '0' if pj_options and not pj_options.board_cover else '1' }}"
|
data-board-cover="{{ '0' if pj_options and not pj_options.board_cover else '1' }}"
|
||||||
@@ -476,5 +476,5 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -70,5 +70,5 @@
|
|||||||
{% include "project/_side_modals.html" %}
|
{% include "project/_side_modals.html" %}
|
||||||
{% include "project/_member_tasks_modal.html" %}
|
{% include "project/_member_tasks_modal.html" %}
|
||||||
|
|
||||||
<script src="/static/project.js?v=20261111b" defer></script>
|
<script src="/static/project.js?v=20261111c" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
+19
-11
@@ -3495,7 +3495,8 @@
|
|||||||
// 등급(2026-10-12) — isPro = Pro user 이상(프로젝트 수정·멤버 배정·전체 보기·담당자별 합계·남의 댓글 수정),
|
// 등급(2026-10-12) — isPro = Pro user 이상(프로젝트 수정·멤버 배정·전체 보기·담당자별 합계·남의 댓글 수정),
|
||||||
// isPAdmin = Admin 이상(남이 만든 섹션도 삭제).
|
// isPAdmin = Admin 이상(남이 만든 섹션도 삭제).
|
||||||
const isPro = root.dataset.isPro === "true";
|
const isPro = root.dataset.isPro === "true";
|
||||||
const canAllView = root.dataset.allView === "true"; // 왼쪽 "전체 보기" 메뉴 — Project 옵션 대상자(서버 pj_all_view)
|
const canAllView = root.dataset.allView === "true";
|
||||||
|
const dailyReady = root.dataset.dailyReady === "1"; // 033 — 새 업무·세부 업무 추가 칸 날짜 팝업에도 [매일] // 왼쪽 "전체 보기" 메뉴 — Project 옵션 대상자(서버 pj_all_view)
|
||||||
const isPAdmin = root.dataset.isPadmin === "true";
|
const isPAdmin = root.dataset.isPadmin === "true";
|
||||||
// 시스템 Project 옵션(서버 project_options, 수퍼관리자·Admin 이 바꾸면 모든 사용자에게) — 보드 카드 표지 켬/끔.
|
// 시스템 Project 옵션(서버 project_options, 수퍼관리자·Admin 이 바꾸면 모든 사용자에게) — 보드 카드 표지 켬/끔.
|
||||||
// 옵션 창에서 저장하면 pj-options-change 로 바로 바뀐다(아래).
|
// 옵션 창에서 저장하면 pj-options-change 로 바로 바뀐다(아래).
|
||||||
@@ -5118,9 +5119,10 @@
|
|||||||
av.title = draft.assignee ? idOf(draft.assignee) : "담당자 지정";
|
av.title = draft.assignee ? idOf(draft.assignee) : "담당자 지정";
|
||||||
}
|
}
|
||||||
function paintDue() {
|
function paintDue() {
|
||||||
const di = dueInfo(draft.due, false);
|
const di = dueInfo(draft.due, false, draft.daily);
|
||||||
due.innerHTML = di ? escapeHtml(di.text) : DUE_EMPTY_ICON_SVG;
|
due.innerHTML = !di ? DUE_EMPTY_ICON_SVG
|
||||||
due.title = draft.due || "마감일 지정";
|
: draft.daily ? '<span class="pj-due-label is-daily">' + escapeHtml(di.text) + "</span>" : escapeHtml(di.text);
|
||||||
|
due.title = draft.daily ? "매일 하는 업무" : draft.due || "마감일 지정";
|
||||||
}
|
}
|
||||||
function paintFol() {
|
function paintFol() {
|
||||||
fol.innerHTML = followerIconHtml(draft.followers);
|
fol.innerHTML = followerIconHtml(draft.followers);
|
||||||
@@ -5171,8 +5173,12 @@
|
|||||||
});
|
});
|
||||||
due.addEventListener("click", function () {
|
due.addEventListener("click", function () {
|
||||||
openDatePopover(due, {
|
openDatePopover(due, {
|
||||||
due: draft.due, allowStart: false,
|
due: draft.due, allowStart: false, daily: !!draft.daily, allowDaily: dailyReady,
|
||||||
onChange: function (patch) { if (!current()) return; draft.due = patch.due_date || null; paintDue(); refocus(); },
|
onChange: function (patch) {
|
||||||
|
if (!current()) return;
|
||||||
|
draft.due = patch.due_date || null; draft.daily = !!patch.repeat_daily;
|
||||||
|
paintDue(); refocus();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
function close() {
|
function close() {
|
||||||
@@ -5194,6 +5200,7 @@
|
|||||||
assignee_email: draft.assignee, assignee_name: draft.assignee ? idOf(draft.assignee) : "",
|
assignee_email: draft.assignee, assignee_name: draft.assignee ? idOf(draft.assignee) : "",
|
||||||
due_date: draft.due || null,
|
due_date: draft.due || null,
|
||||||
followers: draft.followers,
|
followers: draft.followers,
|
||||||
|
...(draft.daily ? { repeat_daily: true } : {}),
|
||||||
});
|
});
|
||||||
if (!current()) return;
|
if (!current()) return;
|
||||||
mergeTask(res.task);
|
mergeTask(res.task);
|
||||||
@@ -6031,7 +6038,7 @@
|
|||||||
if (!draft.followers) draft.followers = [];
|
if (!draft.followers) draft.followers = [];
|
||||||
inp.value = draft.title;
|
inp.value = draft.title;
|
||||||
function paintDue() {
|
function paintDue() {
|
||||||
const di = dueInfo(draft.due, false);
|
const di = dueInfo(draft.due, false, draft.daily);
|
||||||
dueEl.className = "pj-card-sub-due pj-card-subnew-due" + (di ? " " + di.cls : " is-empty");
|
dueEl.className = "pj-card-sub-due pj-card-subnew-due" + (di ? " " + di.cls : " is-empty");
|
||||||
dueEl.innerHTML = di ? escapeHtml(di.text) : DUE_EMPTY_ICON_SVG;
|
dueEl.innerHTML = di ? escapeHtml(di.text) : DUE_EMPTY_ICON_SVG;
|
||||||
dueEl.dataset.tip = di ? dueTip(di) : "마감일 지정";
|
dueEl.dataset.tip = di ? dueTip(di) : "마감일 지정";
|
||||||
@@ -6058,7 +6065,7 @@
|
|||||||
draft.focused = document.activeElement === inp;
|
draft.focused = document.activeElement === inp;
|
||||||
// 날짜 팝업·담당자 메뉴를 쓰는 중이면 닫지 않는다.
|
// 날짜 팝업·담당자 메뉴를 쓰는 중이면 닫지 않는다.
|
||||||
if (draft.focused || datePopEl || ctxMenuEl) return;
|
if (draft.focused || datePopEl || ctxMenuEl) return;
|
||||||
if (!draft.title.trim() && !draft.due && !draft.assignee && !draft.followers.length) closeDraft();
|
if (!draft.title.trim() && !draft.due && !draft.daily && !draft.assignee && !draft.followers.length) closeDraft();
|
||||||
}, 150);
|
}, 150);
|
||||||
});
|
});
|
||||||
inp.addEventListener("keydown", function (e) {
|
inp.addEventListener("keydown", function (e) {
|
||||||
@@ -6068,9 +6075,9 @@
|
|||||||
});
|
});
|
||||||
dueEl.addEventListener("click", function () {
|
dueEl.addEventListener("click", function () {
|
||||||
openDatePopover(dueEl, {
|
openDatePopover(dueEl, {
|
||||||
due: draft.due, allowStart: false,
|
due: draft.due, allowStart: false, daily: !!draft.daily, allowDaily: dailyReady,
|
||||||
// 날짜를 고르면 팝업이 닫히므로 이어서 이름을 칠 수 있게 입력칸으로 돌아간다.
|
// 날짜를 고르면 팝업이 닫히므로 이어서 이름을 칠 수 있게 입력칸으로 돌아간다.
|
||||||
onChange: function (patch) { draft.due = patch.due_date || null; paintDue(); refocus(); },
|
onChange: function (patch) { draft.due = patch.due_date || null; draft.daily = !!patch.repeat_daily; paintDue(); refocus(); },
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// 바깥을 누르면 Enter 와 같다 — 이름이 있으면 만들고 줄을 닫는다(아사나). 이름이 없으면
|
// 바깥을 누르면 Enter 와 같다 — 이름이 있으면 만들고 줄을 닫는다(아사나). 이름이 없으면
|
||||||
@@ -6089,7 +6096,7 @@
|
|||||||
if (subDrafts[t.id] !== draft) return;
|
if (subDrafts[t.id] !== draft) return;
|
||||||
if (inp.isConnected) draft.title = inp.value;
|
if (inp.isConnected) draft.title = inp.value;
|
||||||
if (draft.title.trim()) createFromDraft(false);
|
if (draft.title.trim()) createFromDraft(false);
|
||||||
else if (!draft.due && !draft.assignee && !draft.followers.length) closeDraft();
|
else if (!draft.due && !draft.daily && !draft.assignee && !draft.followers.length) closeDraft();
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
if (subOutsideDown[t.id]) document.removeEventListener("pointerdown", subOutsideDown[t.id], true);
|
if (subOutsideDown[t.id]) document.removeEventListener("pointerdown", subOutsideDown[t.id], true);
|
||||||
@@ -6138,6 +6145,7 @@
|
|||||||
assignee_email: draft.assignee || "",
|
assignee_email: draft.assignee || "",
|
||||||
assignee_name: draft.assignee ? idOf(draft.assignee) : "",
|
assignee_name: draft.assignee ? idOf(draft.assignee) : "",
|
||||||
followers: draft.followers,
|
followers: draft.followers,
|
||||||
|
...(draft.daily ? { repeat_daily: true } : {}),
|
||||||
});
|
});
|
||||||
const subs = subsCache[t.id] || (subsCache[t.id] = []);
|
const subs = subsCache[t.id] || (subsCache[t.id] = []);
|
||||||
// 새 줄 협업자 아이콘 — 서버 자동 협업자와 같은 규칙(만든 사람·담당자·고른 협업자)
|
// 새 줄 협업자 아이콘 — 서버 자동 협업자와 같은 규칙(만든 사람·담당자·고른 협업자)
|
||||||
|
|||||||
@@ -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"]
|
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 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()]
|
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():
|
def test_move_stage_to_other_project():
|
||||||
|
|||||||
Reference in New Issue
Block a user