-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove first block from aggregate trading rewards roundtable task interval #965
Conversation
WalkthroughThe overall change entails updating the logging functionality within the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- indexer/services/roundtable/tests/tasks/aggregate-trading-rewards.test.ts (3 hunks)
- indexer/services/roundtable/src/tasks/aggregate-trading-rewards.ts (14 hunks)
Additional comments: 14
indexer/services/roundtable/src/tasks/aggregate-trading-rewards.ts (14)
74-74: The addition of
period: this.period
to thelogger.info
call provides more context for the logging, which aligns with the PR objectives to enhance logging for clarity in the aggregation process.130-130: The addition of
period: this.period
to thelogger.info
call within thedeleteIncompleteAggregatedTradingReward
method is consistent with the other logging improvements and provides useful context.139-139: The logging statement here has been enhanced with additional context (
period
,height
,time
), which is beneficial for tracking the deletion of aggregated trading rewards.164-164: The addition of
period: this.period
to thelogger.info
call within thegetTradingRewardDataToProcessInterval
method is consistent with the other logging improvements and provides useful context.201-206: The error logging here is crucial as it indicates a serious issue if there are no trading rewards in the database. The inclusion of
period: this.period
in the log provides necessary context for troubleshooting.304-304: The addition of
period: this.period
to thelogger.info
call within theupdateTradingRewardsAggregation
method is consistent with the other logging improvements and provides useful context.313-313: The logging statement here has been enhanced with additional context (
period
,error
,start
,end
), which is beneficial for tracking the failure in updating trading rewards aggregation.490-490: The addition of
period: this.period
to thelogger.info
call within thecreateAndUpdateAggregations
method is consistent with the other logging improvements and provides useful context.506-506: The logging statement here has been enhanced with additional context (
period
,count
), which is beneficial for tracking the creation of trading reward aggregations.519-519: The addition of
period: this.period
to thelogger.info
call within thecreateAndUpdateAggregations
method is consistent with the other logging improvements and provides useful context.535-535: The logging statement here has been enhanced with additional context (
period
,count
), which is beneficial for tracking the update of trading reward aggregations.545-545: The addition of
period: this.period
to thelogger.info
call within thesetProcessedTime
method is consistent with the other logging improvements and provides useful context.556-556: The logging statement here has been enhanced with additional context (
period
,processedTime
), which is beneficial for tracking the setting of processed time in the cache.392-392: The error logging here is crucial as it indicates a serious issue if no blocks are found after a certain time. The inclusion of
period: this.period
in the log provides necessary context for troubleshooting.
Changelist
Remove first block from aggregate trading rewards roundtable task interval. Turns the block time for the genesis block can be years ago. We don't need to calculate from the first block ever, we can just wait for the first trading reward to calculate aggregations.
Test Plan
Tested in staging, and works
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.