Skip to content

Use entity_id for event subscription reads#977

Merged
raymondjacobson merged 2 commits into
mainfrom
codex/event-follow-api
Jun 29, 2026
Merged

Use entity_id for event subscription reads#977
raymondjacobson merged 2 commits into
mainfrom
codex/event-follow-api

Conversation

@raymondjacobson

@raymondjacobson raymondjacobson commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • bump github.com/OpenAudio/go-openaudio and github.com/OpenAudio/go-openaudio/pkg/etl to v1.5.1-0.20260629182311-eb976ab7d10a, which includes fix(etl): Fix event subscriptions in entity manager OpenAudio/go-openaudio#389
  • make event follow-state read Event subscriptions by canonical subscriptions.entity_id
  • make remix-contest notification fan-out use entity_id for Event subscribers
  • update follow-state and remix-contest notification tests/fixtures to guard against relying on the legacy user_id mirror

Why

Contest follows are Event subscriptions. The paired indexer fix writes entity_type='Event' and entity_id=<event_id>; API reads and notification fan-outs should use that canonical key instead of the overloaded subscriptions.user_id mirror.

Paired write-side PR: OpenAudio/go-openaudio#389

Test plan

  • go test ./indexer
  • go test ./api -run 'TestEventFollowState|TestEventsFollowers|TestRemixContestUpdate'
  • go test ./jobs -run 'TestRemixContest'

@raymondjacobson raymondjacobson merged commit 63f304d into main Jun 29, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the codex/event-follow-api branch June 29, 2026 18:40
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