[Feature Request] Calculate a task completion rate based on its subtasks completion rate
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 706
- Forks
- 117
- Avg merge
- 8h 50m
- Merged PRs (30d)
- 18
Description
Is your feature request related to a problem? Please describe.
When a task has subtasks, its completion rate should be deferred to its subtasks completion rates. For instance, when all subtasks are completed, the task should also have a 100% completion rate.
Describe the solution you'd like
For tasks having subtasks (and only in this case), defer the completion rate calculation to the sum of its subtasks' completion rate. That is:
if task.subtasks:
task.completion = sum([subtask.completion for subtask in task.subtasks])
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the task and subtask completion-rate calculation in the Nextcloud Tasks codebase. Trace how tasks with subtasks are represented and how their completion values are currently derived, then add coverage showing the intended result for completed and partially completed subtasks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100