How do we generally show progress:
1) Should it give an idea how much work has been started? (but not crosschecked?)
2) Should it give an idea how much work has been finished? (it is crossverified)
Let's start with (2) and maybe in the future show also progress of those "in progress", which will have higher values.
Progress overall is average progress across all docs.
Progress of a document is an average total progress of all of tasks created on such document.
How do we generally show progress: 1) Should it give an idea how much work has been started? (but not crosschecked?) 2) Should it give an idea how much work has been finished? (it is crossverified) Let's start with (2) and maybe in the future show also progress of those "in progress", which will have higher values.
Progress overall is average progress across all docs.
Progress of a document is an average total progress of all of tasks created on such document.
Own progress of a task is:
95% * (1 - e^{-2 \cdot \frac{1}{entries_to_run_crosscheck}(no_entries)})
Total progress (with children) of a task is:
( average(subtasks progress) * average_number_of_subtasks(configured in task) + own_progress ) / (average_number_of_subtasks(configured in task) + 1)
UI:
? How to compute that effectively?
What are the operation? What are the costs? What tech stack should be used?
Storage:
Optimization strategies:
update_total_progress
instead of doing some selects in ittotal_progress
periodically in a background task