Skip to content

API: Filtering for fields with 0 values#1670

Open
gmalouf wants to merge 2 commits into
algorand:mainfrom
gmalouf:zero-value-filtering
Open

API: Filtering for fields with 0 values#1670
gmalouf wants to merge 2 commits into
algorand:mainfrom
gmalouf:zero-value-filtering

Conversation

@gmalouf

@gmalouf gmalouf commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Summary

An approach to addressing #1668, TBD if tradeoffs/peculiarities are worth it.

  • Custom handle asset_id=0 and application_id=0 queries to detect creation transactions that would be filtered out based on underlying data storage. This implementation would result in corresponding creation transactions for a given app/asset being returned when filtering for app/asset id = 0 or app/asset id = actual id.

When complete, should close #1668

Test Plan

For asset_id/app_id zero cases, new e2e handler and a postgres query builder tests were added to explicitly exercise these scenarios.

@gmalouf gmalouf changed the title API: Filtering for fields with 0 values Aug 7, 2025
@gmalouf gmalouf self-assigned this Aug 7, 2025
@gmalouf gmalouf added the Bug-Fix label Aug 7, 2025
@gmalouf gmalouf removed their assignment Apr 2, 2026
@gmalouf gmalouf marked this pull request as ready for review May 26, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to filter some transactions where numerical fields are the value 0

1 participant