Add repeat monthly setting for tasks #834

Merged
konrad merged 7 commits from feature/repeat-mode into main 2021-04-14 09:04:59 +00:00
Owner

Description

This PR introduces a concept of "repeat modes" which define how a task will repeat itself. There are three modes which are all triggered when marking a task as done:

  1. Default: Will simply add the value from RepeatAfter to all dates.
  2. Monthly: Increases the month of all dates by one.
  3. From current date: Instead of adding a value to the existing dates, it will set the new dates as current date + RepeatAfter value. This also ensures the difference between a start and end date stays the same.

All modes make sure the new dates are in the future. This means they will increase all dates as specified per mode until the new date is in the future.

Resolves vikunja/api#698

Frontend: 4ed5d1e8fe

Checklist

  • I added or improved tests
  • I added or improved docs for my feature
    • Swagger (including mage do-the-swag)
# Description This PR introduces a concept of "repeat modes" which define how a task will repeat itself. There are three modes which are all triggered when marking a task as done: 1. Default: Will simply add the value from `RepeatAfter` to all dates. 2. Monthly: Increases the month of all dates by one. 3. From current date: Instead of adding a value to the existing dates, it will set the new dates as `current date + RepeatAfter value`. This also ensures the difference between a start and end date stays the same. All modes make sure the new dates are in the future. This means they will increase all dates as specified per mode until the new date is in the future. Resolves https://kolaente.dev/vikunja/api/issues/698 Frontend: https://kolaente.dev/vikunja/frontend/commit/4ed5d1e8fe76af62ed65e1c8806c4f18605a1ca0 # Checklist * [x] I added or improved tests * [x] I added or improved docs for my feature * [x] Swagger (including `mage do-the-swag`)
konrad added 6 commits 2021-04-13 20:58:55 +00:00
konrad added 1 commit 2021-04-14 08:23:18 +00:00
continuous-integration/drone/pr Build is passing Details
1c7515f2f1
Fix updating repeat mode
konrad merged commit b4d726f5a8 into main 2021-04-14 09:04:59 +00:00
konrad deleted branch feature/repeat-mode 2021-06-14 20:44:59 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#834
No description provided.