runtime/accounts: Include first-activity in API response#1229
Conversation
3c08a44 to
6502806
Compare
There was a problem hiding this comment.
Pull request overview
This pull request adds a first_activity field to runtime accounts to track the timestamp of the first transaction involving each account. This enhancement addresses issue #1214 by exposing when an account was first active on the runtime.
Key changes:
- Added
first_activitycolumn toruntime_accountstable with migration and backfill logic - Updated account queries and API responses to include the new timestamp field
- Modified fast-sync recomputation to recalculate first activity timestamps
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| storage/migrations/53_runtime_accounts_first_activity.up.sql | Database migration adding first_activity column and backfilling existing data |
| storage/client/queries/queries.go | Updated query to select first_activity field |
| storage/client/client.go | Added scanning of first_activity into account struct |
| analyzer/queries/queries.go | Added upsert and recompute queries for first_activity |
| analyzer/runtime/runtime.go | Integrated first_activity updates during processing and fast-sync |
| api/spec/v1.yaml | Added first_activity field to API schema |
| tests/e2e_regression/* | Updated test expectations with first_activity data |
| .changelog/1229.feature.md | Added changelog entry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6502806 to
f3adc2d
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 25 out of 25 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
404a33c to
6dfc41f
Compare
6dfc41f to
b564239
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 25 out of 25 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b564239 to
1356f56
Compare
1356f56 to
3fcf8db
Compare
Fixes: #1214