HiveMinds / HiveMinds/tw-install

Remove recursive child tasks from `undo.data`.

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CustomSort
Dominant language
Shell
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Description

      <p>Currently the <code>undo.data</code> prevents the sync when an old backup with (daily) recurring tasks is imported because it blows up the nr of lines in <code>undo.data</code>. Short therm solution is to remove the recurrent tasks generated from a few years ago from the <code>undo.data</code> file. To do this one can use the <code>mask++</code> and <code>imask</code> filter as used on <code>backlog.data</code> in <code>Filterbacklog.java</code>.</p>

A better strategy is to only keep for example the latest 14 recurrent tasks in the undo.data this approach is raised in a new issue #88. Before applying a fix to this issue, determine whether issue #88 has not already been fixed instead.

Contributor guide

No contributing guide indexed for this repository

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

First check issue #88 to determine whether the proposed retention strategy has already been fixed. If not, inspect the undo.data handling and the mask++/imask filtering approach used in Filterbacklog.java. Done means old generated recurrent child tasks no longer make imported backups exceed the undo.data line limit and synchronization succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.