Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked Tasks #914

Open
2 tasks
MaxSchaefer opened this issue Dec 22, 2024 · 1 comment
Open
2 tasks

Linked Tasks #914

MaxSchaefer opened this issue Dec 22, 2024 · 1 comment

Comments

@MaxSchaefer
Copy link
Member

MaxSchaefer commented Dec 22, 2024

We want to get rid of the current subtasks construct. Right now, a subtask is a (done, string) structure inside a task.

Before we remove the old structure, we introduce a new one.

  • A task can have links to next and previous tasks, called linked tasks
  • Linked tasks must not result in loops
  • Therefore it makes sense to use a "double linked list" as a data structure
  • It must be possible to create a task directly anywhere inside the data link structure. For example (T1 -> T3, T2 -> T4). There must be a method to append to T3 directly.
  • If a task is marked as completed, this does not affect any other tasks.

Tasks

Preview Give feedback
  1. tasks-svc
  2. is-blocked tasks-svc
@FoseFx
Copy link
Member

FoseFx commented Dec 23, 2024

What are the exact requirements here? Especially: What kinds of queries do we want to be able to answer?

For example, do we only need direct access to a task's linked tasks, or do we expect frequent transitive access?

I don't think this will matter much for the data-layer representation (an m:n table), but will certainly matter for the internal structure.


Linked tasks must not result in loops

Is this a MUST or a SHOULD-level requirement?


It must be possible to create a task directly anywhere inside the data link structure. For example (T1 -> T3, T2 -> T4). There must be a method to append to T3 directly.

What does "directly" mean here? How can a task be created (in-)directly?


double linked list

most likely not, but that's for #915

@MaxSchaefer MaxSchaefer changed the title Tasks in Tasks Linked tasks Jan 2, 2025
@FoseFx FoseFx changed the title Linked tasks Linked Tasks Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants