Conversation
…project repository
…h new test scripts and also add a migration to fill the data of vesting schedules
…w test scripts add migration to fill token holders data
|
Caution Review failedThe pull request is closed. WalkthroughAdds project ranking support and data, extends social media enum with REEL_VIDEO and seeds related entries, introduces VestingSchedule and TokenHolder entities with repositories, resolvers, migrations, and tests, registers new entities/resolvers, creates and seeds vesting/token holder tables, and adds test scripts. Also updates project sorting to include rank. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant GraphQL
participant VestingScheduleResolver
participant VestingScheduleRepo
participant DB
Client->>GraphQL: Query vestingSchedules()
GraphQL->>VestingScheduleResolver: vestingSchedules
VestingScheduleResolver->>VestingScheduleRepo: findAllVestingSchedules()
VestingScheduleRepo->>DB: SELECT * FROM vesting_schedule ORDER BY start ASC
DB-->>VestingScheduleRepo: rows
VestingScheduleRepo-->>VestingScheduleResolver: schedules
VestingScheduleResolver-->>GraphQL: schedules
GraphQL-->>Client: data
sequenceDiagram
participant Client
participant GraphQL
participant TokenHolderResolver
participant TokenHolderRepo
participant DB
Client->>GraphQL: Query tokenHoldersByAddress(address)
GraphQL->>TokenHolderResolver: tokenHoldersByAddress(address)
TokenHolderResolver->>TokenHolderRepo: findTokenHoldersByAddress(address)
TokenHolderRepo->>DB: SELECT * FROM token_holder WHERE address=$1 ORDER BY projectName ASC
DB-->>TokenHolderRepo: rows
TokenHolderRepo-->>TokenHolderResolver: holders
TokenHolderResolver-->>GraphQL: holders
GraphQL-->>Client: data
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (24)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Data Migrations
Tests
Chores