-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add logpoller.FilteredLogs and support for filtering on subkey #1020
Conversation
cce7156
to
256f1c7
Compare
256f1c7
to
ce7cdc2
Compare
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.
Its a bit hard to review because it has all the changes from the filter PR, can you point this to improve-lp-codec-usage
It's all in a single commit, so I figured it wouldn't be too difficult to look at... probably should have linked to the commit directly instead of the PR: The Log Processing PR has been waiting for CODEOWNER approval since Thursday, not sure what the holdup is I was hoping it would be merged already. Otherwise I would have raised this against that branch instead of against develop. Hopefully will get merged quickly on Tues so I can just rebase onto develop. |
ce7cdc2
to
085dc88
Compare
64460b6
to
6ee3ef2
Compare
# Conflicts: # pkg/solana/logpoller/log_poller.go # pkg/solana/logpoller/log_poller_test.go # pkg/solana/logpoller/test_helpers.go
Quality Gate failedFailed conditions |
This adds
FilteredLogs
to logPoller.Service to complete the LogPoller API, as well as these functions and types in parser.go to support filtering events by subkeys:func NewEventBySubkeyFilter(subkeyIndex uint64, valueComparers []primitives.ValueComparator) (query.Expression, error)
func (v *pgDSLParser) VisitEventSubkeysByValueFilter(p *eventBySubkeyFilter)
type IndexedValueComparator
Also adds a test for filtering on subkeys to
parser_test.go
Supports: #1016