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

Handling of incompleted tasks at the end of the day #8

Closed
Konzertheld opened this issue Jan 7, 2021 · 1 comment
Closed

Handling of incompleted tasks at the end of the day #8

Konzertheld opened this issue Jan 7, 2021 · 1 comment
Milestone

Comments

@Konzertheld
Copy link
Owner

Konzertheld commented Jan 7, 2021

At the end of the day (see also #15), move incompleted tasks after the following principle:

  • Look for the next day that has free space for this task.
  • If the task does not have a deadline, move it there and tag it as overdue.
  • If the task has a deadline that has expired, mark it as expired and see Handling of appointments (imported from Google) / Expired tasks #25
  • It the task does have an unexpired deadline and the next day with enough free space is within the deadline, move the task to that day and do not mark it as overdue.
  • If the task has an unexpired deadline and the next day with enough free space is not within the deadline, search for the next day that could have free space if a single other task that does not have a deadline was moved.
  • If that day is within the deadline, move the task there and move the other task according to the rules above except that it is not marked as overdue.
  • If that day is not within the deadline, ignore the search result. Move the task to the next day. If the schedule is so full, the user has to live with the fact that incompleted tasks just pile up the next day.
@Konzertheld Konzertheld mentioned this issue Jan 8, 2021
18 tasks
@Konzertheld Konzertheld added this to the Initial milestone Jan 8, 2021
Konzertheld added a commit that referenced this issue Jan 14, 2021
@Konzertheld
Copy link
Owner Author

Further optimization: When searching for a day that has enough free space within a deadline if tasks are moved, chose the day where the least tasks need to be moved.

Konzertheld added a commit that referenced this issue Feb 25, 2021
Add deadline_day for appointments. Fix finding next free day (start with today). Add function tag_task(). Remember when we last checked Google events and use that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant