OpenListTeam / OpenListTeam/OpenList

[Feature] 复制:文件夹TaskId状态应包含子文件状态

Open
#2,085 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
24.7k
Forks
2.3k
Avg merge
1d 20h
Merged PRs (30d)
36

Description

请确认以下事项
  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认此功能尚未被实现。

  • 我已确认此功能是合理的,且有普遍需求,并非我个人需要。

需求描述

背景:目前复制任务的逻辑,如果复制请求(假设为req1)的是一个目录,会为文件夹内的所有文件/目录单独创建复制子任务,但req1只会返回目录的task id,无法得到子任务的task ids。
需求:希望可以获取关联子任务的task ids。

实现思路

思路1:req1等待创建完所有子任务后一并返回。
思路2:req1还是只返回父task id,等所有子任务创建完成后将它们关联起来,并提供一个额外的接口(如xx/group之类的)通过父task id获取关联的子task ids。
思路3:......

附加信息

此功能是为了可以精准获取某个任务(如复制一个目录)的完成情况。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing how directory-copy requests create parent and child tasks, then inspect the task-status API. Done should make a parent task's related child task IDs discoverable and allow accurate progress tracking, with the API design settled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.