Let a manager delete a task before anyone has worked on it, and archive it after
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Start with src/ops.js and src/numbering.js, then trace the task deletion, output, submit, compile, context, brief, and list paths named in the issue. Check how task_output records saved work and how existing reopening works; the issue leaves un-archiving undecided. Done when the acceptance cases pass across every removal path, including preserving task numbers, saved outputs, and old links.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
A manager needs to clean up a workstream's tasks, but today there are two blunt outcomes:
removeTask(src/ops.js) deletes a task whatever state it is in. That includes a task someone has already worked on, which throws away their saved outputs and the history that points at the task.- There is no way to retire a task that has work on it but should no longer be done. Nothing marks a task as "cannot be worked on any more" and leaves it out of the approved context.
Numbers are already safe: they are minted once from a counter and never reused (src/numbering.js), so after a clean-up Workstream 1 shows 1.2, 1.4 and 1.7, not 1.1 to 1.3. This issue must not change that.
Proposed solution
Picked up means an output has been saved on the task (task_output). Assigning a task, or someone opening it, does not count, so a manager can still fix a task they have only just assigned.
- Not picked up: the manager can delete the task, as now.
- Picked up: delete is refused with a plain message that says why and offers archive instead. The manager can archive it.
- Archived means:
- the task keeps its number and its saved outputs, so "1.4" still means the same thing in old links, reviews and history;
- nobody can work on it further:
task_output,task_submitand compile are refused on it; - it is left out of the approved context,
my_brief,list_tasksby default and compiled prompts; - it stays visible, marked archived, where a person looks up history or follows an old link.
- The same rule applies to every way of removing a task: the MCP tool, the contribution operation and the page, so one path cannot skip it.
- Open question for the plan: can a manager un-archive? Reopening already exists for finished work, so probably yes, but decide it deliberately.
Existing open source first
Nothing to borrow. This is a state flag on teamctx's own task model and a check on the paths that remove or change a task, not plumbing a library provides.
Acceptance
- Deleting a task with no saved output works and leaves its number unused: the next task made in that workstream gets the next number, not the freed one.
- Deleting a task with a saved output is refused, whichever path is used, and the message names archive.
- Archiving keeps the task's number and outputs. Saving an output, submitting or compiling an archived task is refused.
- An archived task does not appear in the approved context, the member brief, the default task list or compiled prompts, and an old link to it still opens and says it is archived.
- A test shows that removing 1.1 and 1.3 from a workstream of 1.1 to 1.7 leaves 1.2 and 1.4 to 1.7 unchanged.
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 2
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 62
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của StatsLateral/teamctx
-
Sign-in page: label GitHub as for Team Managers and Google as for Team MembersCó thể đã có người làm @StatsLateral đã nhận hôm nay. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
StatsLateral/teamctx#343 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Plain-language message when a GitHub sign-in can't read a project (replace "PAT lacks access")Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
StatsLateral/teamctx#342 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement parked
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
StatsLateral/teamctx#341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
StatsLateral/teamctx#301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement parked
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
StatsLateral/teamctx#286 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của StatsLateral/teamctx
Issue tương tự
-
Entity picker filter keeps the first kind's groups after switching Specific Term / Specific PostĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
davidofchatham/bws-gb-dynamic-tags-extensions#177 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
ioBroker/ioBroker.zigbee#3069 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[Tool] Simple LinkedIn ComposerĐang mởhas-image has-license has-readme new-tool ready-to-approve repo-verified
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
shanselman/TinyToolTown#957 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ionic-team/capacitor#8759 ·
Maintainer thường phản hồi trong vòng 1 ngày