Task of Several Members as One Line in the File of the Family¶
adr~task-of-several-members~1
Needs: dsn
Context and Problem Statement¶
A family has tasks that several members do together, such as tidying the hallway: the task is to stand with each of them, and when one ticks it off, it is done for all. A task belongs to the list of the member whose context it has, and a line is in one file. Where is a task of several members kept, and who gets its stars?
Considered Options¶
- One line with the contexts of the members in the file of the family, and a tag
doneby:for the member who ticked it off - A copy of the task in the list of each member, held together by an identifier
- A copy of the task in the list of each member, matched by its text
Decision Outcome¶
Chosen option: "One line with the contexts of the members in the file of the family, and a tag doneby: for the member who ticked it off", because one line cannot disagree with itself: completing it completes it for all, without anything to match or to synchronize.
The file of the family is the todo.txt in the root of its repository, next to the directories of the members: the main file of a device such as the tablet in the hallway, and a shared list of a device that has a main file of its own.
The stars go to the member in whose column of the family view the task is ticked off, whom the tag names; completed elsewhere, the task does not say who did it, and each of its members gets the stars.
A task that each member does on their own, such as brushing the teeth, is one task per member, and these are not linked.
Consequences¶
- Good, because reopening the task reopens it for all and takes the stars back.
- Good, because the line stays a plain todo.txt line that other tools read.
- Bad, because a task with the contexts of lists that lie in no common directory, such as two repositories, has no file that both see and stays in the main file of the device.
- Bad, because the stars of a task completed outside the family view are counted once per member.
Pros and Cons of the Options¶
A copy of the task in the list of each member, held together by an identifier¶
- Good, because each list is complete on its own.
- Bad, because every change of one copy has to reach the others, and two devices that change two copies at the same time leave them apart.
- Bad, because each line carries an identifier that nobody reads.
A copy of the task in the list of each member, matched by its text¶
- Good, because it needs no notation.
- Bad, because editing the text of one copy cuts it loose, and two tasks with the same text are taken for one.