Skip to content

feat: processed-items audit and enhanced clear CLI#843

Merged
chubes4 merged 1 commit intomainfrom
feat/processed-items-audit-and-clear-enhancements
Mar 18, 2026
Merged

feat: processed-items audit and enhanced clear CLI#843
chubes4 merged 1 commit intomainfrom
feat/processed-items-audit-and-clear-enhancements

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 18, 2026

Summary

  • New audit subcommand: per-flow stats of processed items with flow names, handler types, date ranges
  • Enhanced clear: supports --handler, --after, --before, --all, --dry-run, and combinations

New Commands

# Audit — see the damage
wp datamachine processed-items audit
wp datamachine processed-items audit --handler=ticketmaster
wp datamachine processed-items audit --pipeline=3 --min-waste=0

# Clear with filters
wp datamachine processed-items clear --handler=ticketmaster --yes
wp datamachine processed-items clear --handler=ticketmaster --after=2025-01-01
wp datamachine processed-items clear --all --yes
wp datamachine processed-items clear --handler=dice_fm --dry-run

Why

Supports diagnosing and remediating the dedup-burn bug (#842) where items were marked as processed but never imported due to the max_items cap running after dedup marking.

…ems CLI

New subcommand:
- `audit`: shows per-flow stats of processed items with flow names,
  handler types, date ranges, and waste counts. Supports --handler,
  --pipeline, --min-waste, and --format filters.

Enhanced clear:
- --handler=<type>: clear all items for a handler (ticketmaster, dice_fm, etc.)
- --after=<date>: only clear items processed after this date
- --before=<date>: only clear items processed before this date
- --all: clear entire table (requires --yes)
- --dry-run: preview what would be deleted without deleting
- Combinable: --handler=ticketmaster --after=2025-01-01 --pipeline=3

These tools support diagnosing and remediating the dedup-burn bug
where items were marked processed but never actually imported.
@chubes4 chubes4 merged commit 274660a into main Mar 18, 2026
3 checks passed
@chubes4 chubes4 deleted the feat/processed-items-audit-and-clear-enhancements branch March 18, 2026 15:01
@github-actions
Copy link

github-actions bot commented Mar 18, 2026

Homeboy Results — data-machine

Lint

⚡ Scope: changed files only

lint (changed files only)

Test

⚡ Scope: changed files only

test (changed files only)

Audit

⚡ Scope: changed files only

audit (changed files only)

Tooling versions
  • Homeboy CLI: homeboy 0.81.1+ddd5fef9
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v1

Homeboy Action v1

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

Successfully merging this pull request may close these issues.

1 participant