c7cc94a09c
- F01 쿠팡: HTTP 200 비JSON·data 목록 없음은 수집 실패(기간 교체 안 함), 정상 빈 목록과 구분 - F02 회의록 [적용]: 업무 INSERT 와 줄 연결을 한 연결·한 트랜잭션(_insert_task), 확인은 잠그기 전·알림/메일은 커밋 뒤, 줄 바뀜 409 - F03 업무 등록 표: persist 실패 전파, 미저장이면 [적용] 중단, 초안 유지·다시 저장·이탈 경고 - F04 인증정보 변경 시 내부 토큰 삭제 + 네이버·토스 토큰을 발급 인증정보 지문(SHA-256)에 묶음, GS샵 방식 캐시도 키 지문 기준 - F05 쪽 수 상한·커서 반복 = 실패(쿠팡은 구간을 하루까지 나눠 재시도), 네이버·카카오·토스·GS샵 동일 기준 - F06 [중지] 확인과 저장 시작을 같은 잠금(begin_saving), 저장 시작 뒤 중지 불가 - F07/F08 긴급 공지: 내용 version·고친 공지 다시 그리기·확인에 version(409), 확인은 행 잠금 트랜잭션에서 수신자·표시 시각·취소 검증 - F09 쇼핑몰 연결 테스트도 clear 처리·저장 안 한 시험은 상태 유지(광고 테스트와 같은 계약) - F10 DB 테스트 skip·가짜 app.main/time.sleep 파일 범위 fixture, 오래된 기대값 갱신, pytest.ini·requirements-dev·tests/js/package.json·docs/TESTING.md - 결과·후속 과제: docs/CODE_REVIEW_2026-10-15_RESULT.md (마이그레이션·환경변수 변경 없음) Python 440 passed/63 skipped(DB 없음), 503 passed(로컬 PostgreSQL), jsdom 7종·Edge 6종 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
75 lines
3.1 KiB
HTML
75 lines
3.1 KiB
HTML
{% extends "erp_base.html" %}
|
|
|
|
{% block head_extra %}
|
|
<link rel="stylesheet" href="/static/project.css?v=20261015e" />
|
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
|
{% endblock %}
|
|
|
|
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{# 휴지통 — Pro user 이상. 지운 업무(세부 업무·댓글·팔로워·첨부 포함)를 3개월
|
|
보관하고, [복구] 로 원래 id 그대로 되살린다(project_db 010). #}
|
|
<div class="pj-wrap pj-inbox-view pj-trash-view">
|
|
<div class="pj-layout">
|
|
{% with current_pid = 0, side_active = "trash" %}{% include "project/_side.html" %}{% endwith %}
|
|
|
|
<section class="pj-main">
|
|
<div class="pj-section-head">
|
|
<h2>휴지통</h2>
|
|
<span class="pj-trash-note">삭제한 업무는 3개월 동안 보관된 뒤 영구 삭제됩니다. 복구는 Pro user 이상만 할 수 있습니다.</span>
|
|
</div>
|
|
<div class="pj-view pj-inbox-pane">
|
|
{% if not trash_enabled %}
|
|
<div class="pj-empty">
|
|
휴지통이 아직 준비되지 않았습니다(DB 마이그레이션 010 필요). 지금은 삭제하면 바로 영구 삭제됩니다.
|
|
</div>
|
|
{% elif not items %}
|
|
<div class="pj-empty">휴지통이 비어 있습니다.</div>
|
|
{% else %}
|
|
<table class="pj-table pj-trash-table" id="pj-trash-table">
|
|
<thead>
|
|
<tr>
|
|
<th>업무</th>
|
|
<th>프로젝트</th>
|
|
<th>포함</th>
|
|
<th>삭제한 사람</th>
|
|
<th>삭제일</th>
|
|
<th>남은 보관</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for it in items %}
|
|
<tr data-id="{{ it.id }}">
|
|
<td class="pj-trash-title">{{ it.title }}</td>
|
|
<td>{{ it.project_name or '-' }}</td>
|
|
<td class="pj-trash-meta">
|
|
{% if it.task_count > 1 %}세부 업무 {{ it.task_count - 1 }}{% endif %}
|
|
{% if it.comment_count %}{% if it.task_count > 1 %} · {% endif %}댓글 {{ it.comment_count }}{% endif %}
|
|
{% if it.attachment_count %} · 첨부 파일 {{ it.attachment_count }}{% endif %}
|
|
{% if it.task_count <= 1 and not it.comment_count and not it.attachment_count %}-{% endif %}
|
|
</td>
|
|
<td>{{ it.deleted_by_id or '-' }}</td>
|
|
<td>{{ it.deleted_label }}</td>
|
|
<td>{% if it.days_left is not none %}{{ it.days_left }}일{% else %}-{% endif %}</td>
|
|
<td class="pj-trash-act">
|
|
<button type="button" class="pj-btn pj-btn-primary pj-trash-restore"
|
|
data-id="{{ it.id }}" data-title="{{ it.title }}" data-count="{{ it.task_count }}">복구</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
{% include "project/_side_modals.html" %}
|
|
{% include "project/_member_tasks_modal.html" %}
|
|
|
|
<script src="/static/project.js?v=20261015c" defer></script>
|
|
{% endblock %}
|