Skip to content

feat: getDefaultMaxItems() override point for handler subclasses#845

Merged
chubes4 merged 1 commit intomainfrom
fix/event-import-unlimited-max-items-default
Mar 18, 2026
Merged

feat: getDefaultMaxItems() override point for handler subclasses#845
chubes4 merged 1 commit intomainfrom
fix/event-import-unlimited-max-items-default

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 18, 2026

Summary

  • Adds getDefaultMaxItems() method to FetchHandler (returns 1) that subclasses can override
  • Replaces hardcoded $config['max_items'] ?? 1 with $config['max_items'] ?? $this->getDefaultMaxItems()

Why

Event import handlers need unlimited by default (structured data, cheap to process), but RSS/Reddit handlers should keep the safe default of 1. This override point lets each handler family define its own sensible default.

Companion

data-machine-events will override to return 0 (unlimited) in EventImportHandler.

Allows handler subclasses to define their own default max_items
instead of the hardcoded 1. Base FetchHandler keeps the conservative
default of 1 for AI-heavy pipelines. Event import handlers will
override to 0 (unlimited).
@chubes4 chubes4 merged commit b0721f5 into main Mar 18, 2026
3 checks passed
@chubes4 chubes4 deleted the fix/event-import-unlimited-max-items-default branch March 18, 2026 15:11
@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+d58d097f
  • 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