Skip to content
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

fix: filter gravity batches queried from paloma #299

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

byte-bandit
Copy link
Collaborator

This change adds some filtering when querying messages from Paloma, which by default will not be filtered by chain ID.

I don't know why this wasn't part of the original change that added the gravity stuff, I imagine it was simply overlooked. I tried to add some test coverage as well, but I find the current solution to be more than lacking. We define the protobuf stuff in Paloma, then we also generate the mocks there. There's no automation or go:generate for this, and most packages don't even include mocks for the protobuf parts.

So, even going ahead manually creating the mocks in Paloma, pushing the changes, updating the references in Pigeon and writing a test against it, there is 0 guarantee that a future dev (or me) will make changes to the proto definitions and simply not update the mocks.

If anything, the mocks should be created in Pigeon itself. It's something we should look at in the future. It also feeds into the protobuf definitions, which should probably rest in their own repository if we opt out of the monorepo approach.

@byte-bandit byte-bandit requested review from taariq and verabehr October 2, 2023 19:56
@byte-bandit byte-bandit force-pushed the clohr/filter-batches branch from d32eafa to 92c50b6 Compare October 2, 2023 19:56
@byte-bandit byte-bandit enabled auto-merge (squash) October 2, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants