Admin-first: always run orchestrated capture when adding policies to a backup set so backups reflect current Intune state. Still avoids redundant PolicyVersion growth via orchestrator snapshot-hash reuse. Adds feature tests and updates spec/plan/tasks.
19 lines
591 B
Markdown
19 lines
591 B
Markdown
# Tasks: Backup Version Reuse (016)
|
|
|
|
**Branch**: `016-backup-version-reuse` | **Date**: 2026-01-02
|
|
**Input**: [spec.md](./spec.md), [plan.md](./plan.md)
|
|
|
|
## Phase 1: Setup
|
|
- [X] T001 Create spec/plan/tasks and checklist.
|
|
|
|
## Phase 2: Tests (TDD)
|
|
- [X] T002 Add tests for reusing an existing suitable PolicyVersion.
|
|
- [X] T003 Add tests for capturing a new PolicyVersion when reuse is not possible.
|
|
|
|
## Phase 3: Core
|
|
- [X] T004 Implement reuse decision + reuse path in BackupService.
|
|
|
|
## Phase 4: Verification
|
|
- [X] T005 Run targeted tests.
|
|
- [X] T006 Run Pint (`./vendor/bin/pint --dirty`).
|