-
Notifications
You must be signed in to change notification settings - Fork 44
fix(drive): fix group action query target as tree in stateless execution #2608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes update the construction of a query target in the group action signers power fetch logic to use a sum tree structure instead of a fixed-size value. Additionally, error messages in several GroveDB sum tree value retrieval functions are clarified to include the function name where the error occurs. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant FetchModule as fetch_action_id_signers_power
participant GroveOperations
Caller->>FetchModule: fetch_action_id_signers_power_and_add_operations_v0()
FetchModule->>GroveOperations: Query sum tree with QueryTargetTree(33, SumTree)
GroveOperations-->>FetchModule: Return sum tree value or error with function context
FetchModule-->>Caller: Return result
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
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. 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Self Reviewed. |
Issue being fixed or feature implemented
Updated query targets in the drive fetch action to use
QueryTargetTree
for better accuracy and clarity.What was done?
QueryTargetValue(8)
toQueryTargetTree(33, TreeType::SumTree)
infetch_action_id_signers_power
.grove_get_big_sum_tree_total_value
,grove_get_optional_sum_tree_total_value
, andgrove_get_sum_tree_total_value
to specify the context of the error more clearly.How Has This Been Tested?
Changes have been tested with existing unit tests that cover the affected functionalities.
Breaking Changes
None
Checklist
For repository code-owners and collaborators only
Summary by CodeRabbit
Bug Fixes
Refactor