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: Ensure requests for asset/application id 0 check for the correct result #1622

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Aug 9, 2024

Summary

Make assetId and applicationId arguments pointers across several indexer queries for assets, apps, and transactions. Meant to resolve #1087, where requesting the 0 indexed asset/application resulted in a search query returning an incorrect creatable.

Test Plan

Existing tests are updated and passed. Manually tested the problematic queries.

…xer queries for assets, apps, and transactions. Meant to resolve issue 1087, where requesting the 0 indexed asset/application resulted in a search query returning an incorrect creatable.
@gmalouf gmalouf added the Bug-Fix label Aug 9, 2024
@gmalouf gmalouf self-assigned this Aug 9, 2024
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 4 lines in your changes missing coverage. Please review.

Project coverage is 68.71%. Comparing base (674516d) to head (0cbb2eb).

Files Patch % Lines
idb/postgres/postgres.go 81.81% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1622      +/-   ##
==========================================
+ Coverage   68.69%   68.71%   +0.02%     
==========================================
  Files          38       38              
  Lines        7529     7528       -1     
==========================================
+ Hits         5172     5173       +1     
+ Misses       1926     1924       -2     
  Partials      431      431              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmalouf gmalouf merged commit 316221e into algorand:main Aug 9, 2024
6 checks passed
@gmalouf gmalouf deleted the 1087-asset-id-o-handling branch August 9, 2024 20:27
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.

Lookup of asset id 0 yields unexpected behavior.
3 participants