Skip to content

fix: calendar query and taxonomy counts use start_datetime as primary#137

Merged
chubes4 merged 1 commit intomainfrom
fix/event-end-datetime-fallback
Mar 21, 2026
Merged

fix: calendar query and taxonomy counts use start_datetime as primary#137
chubes4 merged 1 commit intomainfrom
fix/event-end-datetime-fallback

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 21, 2026

Summary

Follow-up to #136 — the calendar query layer was still filtering exclusively by _datamachine_event_end_datetime, making 21k+ events without end meta invisible.

  • EventQueryBuilder: Upcoming/past filter and past/future counts now use _datamachine_event_datetime as primary with _datamachine_event_end_datetime OR fallback
  • Taxonomy_Helper: Filter bar term counts use same start-primary/end-fallback pattern
  • PageBoundary: Already used LEFT JOIN on end_datetime — no change needed

Pattern everywhere: upcoming = start >= now OR end >= now, past = start < now AND (end < now OR no end meta)

EventQueryBuilder and Taxonomy_Helper were filtering exclusively by
_datamachine_event_end_datetime, which most events no longer have after
the end-datetime backfill. Events without end meta were invisible in
the calendar, day groups, filter counts, and past/future toggle.

Now uses _datamachine_event_datetime as primary with end_datetime as
OR fallback for still-ongoing events. Pattern: upcoming = start >= now
OR end >= now; past = start < now AND (end < now OR no end meta).
@chubes4 chubes4 merged commit 1adbb49 into main Mar 21, 2026
1 check failed
@homeboy-ci
Copy link
Contributor

homeboy-ci bot commented Mar 21, 2026

Homeboy Results — data-machine-events

Homeboy

Failure Digest

Lint Failure Digest

Test Failure Digest

Audit Failure Digest

Autofixability classification

  • Overall: auto_fixable
  • Autofix enabled: yes
  • Autofix attempted this run: no
  • Auto-fixable failed commands:
    • lint
    • test
  • Failed commands with available automated fixes:
    • lint
    • test

Machine-readable artifacts

  • homeboy-lint-summary.json
  • homeboy-test-failures.json
  • homeboy-audit-summary.json
  • homeboy-autofixability.json

⚡ Scope: changed files only

audit (changed files only)

  • Drift increased: no

lint (changed files only)

test (changed files only)

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

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