docs: add watchlist export/import implementation plans

This commit is contained in:
2026-05-06 23:59:28 +02:00
parent df2f136f3c
commit 4344500d7d
3 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Watchlist Import Improvement Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Wrap the watchlist import loop in a transaction and log skipped rows.
**Architecture:** Use `db.BeginTx` to start a transaction and ensure all operations within the loop use the transaction-aware `txQueries`.
**Tech Stack:** Go, standard library `database/sql` and `log`.
---
### Task 1: Refactor ImportWatchlist to use Transaction
**Files:**
- Modify: `/Users/mkelvers/dev/personal/mal/api/watchlist/service.go`
- [ ] **Step 1: Apply transaction wrapper and logging**
- [ ] **Step 2: Commit changes**