graph/db+refactor: surface all context.TODO()s#10610
graph/db+refactor: surface all context.TODO()s#10610ellemouton merged 30 commits intolightningnetwork:masterfrom
context.TODO()s#10610Conversation
Summary of ChangesHello @ellemouton, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request is a pure refactor aimed at improving context propagation throughout the codebase, particularly within graph and database-related operations. It modifies numerous functions and interfaces to explicitly accept Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request is a pure refactoring that surfaces context.TODO() calls from the graph/db methods to their call sites, or propagates a real context where available. The changes are consistent across the codebase and correctly apply this pattern. The introduction of invoiceGraphSource is a good adapter pattern to handle the interface change for invoicesrpc. The refactoring appears to be well-executed and achieves its stated goal.
199e9cd to
2606c80
Compare
2606c80 to
b1ab676
Compare
b1ab676 to
4def3c2
Compare
4def3c2 to
262e920
Compare
🔴 PR Severity: CRITICAL
🔴 Critical (3 files)
🟠 High (16 files)
🟡 Medium (2 files)
AnalysisThe highest-severity files are Additionally, two severity bump conditions are met (though they cannot raise beyond CRITICAL):
The bulk of the changes are in To override, add a |
Refactor the
graph/dbmethods to all take a context rather than creatingcontext.TODO()s. we instead move thecontext.TODO()s ot the call-sites or pass in contexts if they are available.This is a pure refactor