Skip to content

feat(data-processing): contributor activity timeline builder (#876)#940

Open
CodeMayor wants to merge 5 commits into
Pulsefy:mainfrom
CodeMayor:feature/876-contributor-activity-timeline
Open

feat(data-processing): contributor activity timeline builder (#876)#940
CodeMayor wants to merge 5 commits into
Pulsefy:mainfrom
CodeMayor:feature/876-contributor-activity-timeline

Conversation

@CodeMayor

Copy link
Copy Markdown

Closes #876

Changes

  • Enhanced contributor_activity_timeline.py with dict + object support, project_id filter, case-insensitive contributor matching, and extended action categories (milestone, withdrawal)
  • Added get_contributor_activity_timeline() to PostgresService — queries contract_events table with parameterised SQL (no injection risk), sorted newest-first
  • Added Alembic migration 1810000000000 for composite index on (contributor, timestamp DESC) for fast timeline queries
  • Expanded test suite with 15+ unit + integration tests covering all acceptance criteria

Acceptance Criteria

  • Supports contributor-centric timeline queries (contributor + project_id filters)
  • Includes timestamps and action categories (deposit, contribution, registry, milestone, withdrawal, other)
  • Backed by testnet event data (queries contract_events table)
  • Output consumable by backend or frontend APIs (/contributors/{contributor}/timeline endpoint, returns clean JSON)

@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@CodeMayor Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@CodeMayor

@CodeMayor

Copy link
Copy Markdown
Author

@CodeMayor

@Cedarich thanks for the tag — did you have feedback or questions about this PR?

@Cedarich

Copy link
Copy Markdown
Contributor

Yes please fix the failing CI

@CodeMayor

Copy link
Copy Markdown
Author

sorry, i saw the message late but i've later worked on the CI.

@Cedarich

Copy link
Copy Markdown
Contributor

@CodeMayor

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.

Data-processing: Contributor activity timeline builder

2 participants