Repository navigation
fix(recurrence): narrow reschedule-clear rule for scheduled-anchored tasks (#2691) - #2724
Merged
Merged
Conversation
…edule-clear # Conflicts: # docs/releases/unreleased.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the narrower recurring reschedule-clear rule in
TaskService.updatePropertyfor scheduled-anchored recurring tasks (Refs #2691):scheduleddate cleared every completed and skipped instance on or after the new date (feat(completion): explicit completion-date control menu #2147). Because moved occurrences now preserve their original rule date inrecurrence_original_date([Bug]: Calendar shows both dates after rescheduling a virtual recurring task #2396), this wiped unrelated occurrences' history (e.g. moving 22 Nov to 21 Nov cleared a skip on 29 Nov, and moving it to 15 Nov cleared 15 Nov's completion).recurrence_original_date, including returning it to its original date) clears nothing.recurrence_original_date(such as a Google Calendar-synced task or a legacy off-pattern note without a marker) clears only the landing day when that day is already incomplete_instancesorskipped_instances, leaving earlier and later history intact and still behindconfirmClearInstances.>= new datebehind confirmation).docs/features/recurring-tasks.mdanddocs/releases/unreleased.md.Companion change in
@tasknotes/model: callumalpass/tasknotes-model#35 (merged). Calendar drags viaTaskService.applyCalendarEditwill inherit the updatedplanCalendarEditonce@tasknotes/modelis released and bumped inpackage.json.Testing
tests/unit/issues/issue-2691-reschedule-clear-rule.test.ts(realrruleengine) covering scheduled-anchored native moves, already-moved/returned occurrences, Google-synced tasks, legacy off-pattern notes, and completion-anchored tasks (including confirmation accept/decline).tests/unit/services/TaskService.test.tsto cover the narrowed rule.npm run typecheck,npm run lint,npm run i18n:check,npm run build,npm run check:bundle-size,npm run docs:check,npm run test:unit, andnpm run test:integration— all passing.Refs #2691