Add entity manager foundation for ETL indexer#147
Open
raymondjacobson wants to merge 4 commits intomainfrom
Open
Add entity manager foundation for ETL indexer#147raymondjacobson wants to merge 4 commits intomainfrom
raymondjacobson wants to merge 4 commits intomainfrom
Conversation
Scaffold the entity manager processing framework that will bring discovery-provider parity to the ETL indexer. This PR establishes the handler pattern, test infrastructure, database migrations, and local runner -- no entity processing logic yet. - processors/entity_manager/handler.go: Handler interface, Dispatcher, Params, EntityType/Action constants, ValidationError - processors/entity_manager/validate.go: shared validators (ValidateSigner, ValidateHandle, ValidateBio, etc.) - processors/entity_manager/testutil_test.go: setupTestDB, seeders, buildParams, mustHandle/mustReject assertion helpers - processors/entity_manager/handler_test.go: dispatcher unit tests - db/sql/migrations/0002: domain tables matching discovery-provider schema (users, tracks, playlists, follows, saves, reposts, routes, developer_apps, grants) - indexer.go: wire dispatcher after raw ManageEntity append, add debug logging for tx payloads and completion - examples/etl-local/main.go: standalone runner for local testing against production RPC + local Postgres - FEATURE.md: updated architecture docs and entity roadmap Made-with: Cursor
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
- Add UNIQUE constraint on blocks.number (required for FK references) - Align all primary keys with production 01_schema.sql - Add ON DELETE CASCADE to FK references to blocks(number) - Expand tracks/playlists schemas with missing production columns - Fix test seeds to omit blocknumber (avoid FK violation on fresh DB) Made-with: Cursor
This was referenced Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Scaffold the entity manager processing framework that will bring
discovery-provider parity to the ETL indexer. This PR establishes the
handler pattern, test infrastructure, database migrations, and local
runner -- no entity processing logic yet.
Params, EntityType/Action constants, ValidationError
(ValidateSigner, ValidateHandle, ValidateBio, etc.) -- WILL BE REFACTORED!
buildParams, mustHandle/mustReject assertion helpers
schema (users, tracks, playlists, follows, saves, reposts, routes,
developer_apps, grants)
debug logging for tx payloads and completion
against production RPC + local Postgres
Testing
Made-with: Cursor