Activity feed backend cleanup #1615
Open
+604
−19
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.
Summary
Adds a full-stack activity feed backend for governance events, covering indexing, storage, and API querying with relevance-based filtering.
Indexer (
apps/indexer)feed_eventtable withtxHash,logIndex,type(VOTE, PROPOSAL, DELEGATION, TRANSFER),value, andtimestamp, indexed for efficient queryingfeed_eventrecords on every vote cast, proposal created, delegation change, and token transfer across all governor indexers (ENS, UNI, OP, SCR, COMP, OBOL, ZK, Nouns, GTC)logIndexnow passed through from all governor event handlers to support composite primary keysAPI (
apps/api)GET /feed/eventsendpoint with pagination (skip,limit), ordering (timestamp/value,asc/desc), date range filtering (fromDate/toDate), event type filtering, and relevance filteringTest plan
feed_eventrows for votes, proposals, delegations, and transfersGET /feed/eventswith different relevance levels (LOW, MEDIUM, HIGH) and confirm correct filteringDeployed for Obol on dev.