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

Add group-id filter to GET /v2/transactions #2

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

agodnic
Copy link

@agodnic agodnic commented Sep 9, 2024

Summary

This pull request adds the functionality to search by group ID to GET /v2/transactions.
Example:

cusl -Ss 'http://127.0.0.1:8980/v2/transactions?group-id=jtNGL2E2xWqEGkaaWDgxt5HxUcXewzwgpJTFrVHv7Zg='

Test Plan

Tested in a local environment, from a light indexer snapshot.

@agodnic agodnic requested a review from urtho September 9, 2024 00:34
@urtho
Copy link

urtho commented Sep 9, 2024

Nice!

@urtho urtho merged commit cb5b392 into main Sep 9, 2024
4 checks passed
@urtho
Copy link

urtho commented Sep 9, 2024

I need to deploy light-indexer to FNet as main indexer API so that everyone can test this functionality.

@urtho
Copy link

urtho commented Sep 9, 2024

Just noticed that we follow indexer API convention to use Base64Std instead of Base64URL encoding for URL params.

  • / = are not safe for URL.

Somehow it works for other endpoints - like box search.
We need a few test cases that include + / = in group_id Base64Std encoded string and see if this works (and why)

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