-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sweep: Support glob pattern to filer txs by action's type_id in query.transaction.ncTransactions
query
#87
Comments
Here's the PR! #89.⚡ Sweep Free Trial: I used GPT-4 to create this ticket. You have 3 GPT-4 tickets left for the month and 0 for the day. For more GPT-4 tickets, visit our payment portal. To retrigger Sweep, edit the issue.
Step 1: 🔍 Code SearchI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.NineChronicles.Headless/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs Lines 1 to 350 in f3f91fd
NineChronicles.Headless/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs Lines 128 to 293 in f3f91fd
NineChronicles.Headless/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs Lines 391 to 472 in f3f91fd
NineChronicles.Headless/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs Lines 1 to 191 in f3f91fd
NineChronicles.Headless/NineChronicles.Headless/GraphTypes/StandaloneMutation.cs Lines 10 to 208 in f3f91fd
Summaries of links found in the content: Step 2: 🧐 Snippet AnalysisFrom looking through the relevant snippets, I decided to make the following modifications:
Step 3: 📝 PlanningI have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request: Add support for glob pattern to filter txs by action's type_id in
Step 4: ⌨️ Coding
Step 5: 🔁 Code ReviewHere are my self-reviews of my changes at Here is the 1st review
I finished incorporating these changes. 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. |
There is
query.transaction.ncTransactions
query inNineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs
file.And users can use like the below example:
The action type is usually formatted as
<action_type: snake case string><action_version: number>
and it is changed when the protocol version is upgraded. So users must update theactionType
manually when every protocol upgrade. To help this problem, this issue wants to add an argument likeactionTypeGlobPattern
to filter action types with glob expression liketransfer_asset*
.See also
NineChronicles.Headless/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs
Lines 70 to 107 in f3f91fd
Checklist
NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs
The text was updated successfully, but these errors were encountered: