-
Notifications
You must be signed in to change notification settings - Fork 112
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 outstanding token airdrops to REST API #9286
Add outstanding token airdrops to REST API #9286
Conversation
Signed-off-by: Edwin Greene <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9286 +/- ##
============================================
- Coverage 93.15% 92.55% -0.61%
- Complexity 1092 7039 +5947
============================================
Files 363 912 +549
Lines 11285 29760 +18475
Branches 1642 3760 +2118
============================================
+ Hits 10513 27543 +17030
- Misses 633 1446 +813
- Partials 139 771 +632 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
...-rest-java/src/main/java/com/hedera/mirror/restjava/repository/AbstractCustomRepository.java
Outdated
Show resolved
Hide resolved
...-mirror-rest-java/src/main/java/com/hedera/mirror/restjava/common/IntegerRangeParameter.java
Outdated
Show resolved
Hide resolved
...-mirror-rest-java/src/main/java/com/hedera/mirror/restjava/common/IntegerRangeParameter.java
Outdated
Show resolved
Hide resolved
...r-rest-java/src/main/java/com/hedera/mirror/restjava/controller/TokenAirdropsController.java
Outdated
Show resolved
Hide resolved
...r-rest-java/src/main/java/com/hedera/mirror/restjava/dto/OutstandingTokenAirdropRequest.java
Outdated
Show resolved
Hide resolved
...rror-rest-java/src/test/java/com/hedera/mirror/restjava/service/TokenAirdropServiceTest.java
Outdated
Show resolved
Hide resolved
...rror-rest-java/src/test/java/com/hedera/mirror/restjava/service/TokenAirdropServiceTest.java
Outdated
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/NftAllowanceRepositoryCustomImpl.java
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/TokenAirdropRepositoryCustomImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Edwin Greene <[email protected]>
...st-java/src/test/java/com/hedera/mirror/restjava/controller/TokenAirdropsControllerTest.java
Show resolved
Hide resolved
Signed-off-by: Edwin Greene <[email protected]>
Can this even work? Serial number should be in the order part so as to limit the entries in the response. If we don't support seiral number pagination, we won't have it in the next url, then wouldn't the endpoint provide incomplete response? Or duplicate info? Or even stuck and never get to the next page? |
...r-rest-java/src/main/java/com/hedera/mirror/restjava/controller/TokenAirdropsController.java
Outdated
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/TokenAirdropRepositoryCustomImpl.java
Outdated
Show resolved
Hide resolved
hedera-mirror-importer/src/main/resources/db/migration/v1/V1.100.0__add_token_airdrop.sql
Outdated
Show resolved
Hide resolved
...rror-rest-java/src/test/java/com/hedera/mirror/restjava/common/NumberRangeParameterTest.java
Outdated
Show resolved
Hide resolved
...ra-mirror-rest-java/src/main/java/com/hedera/mirror/restjava/mapper/TokenAirdropsMapper.java
Outdated
Show resolved
Hide resolved
...rror-rest-java/src/main/java/com/hedera/mirror/restjava/service/TokenAirdropServiceImpl.java
Outdated
Show resolved
Hide resolved
...st-java/src/test/java/com/hedera/mirror/restjava/controller/TokenAirdropsControllerTest.java
Outdated
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/TokenAirdropRepositoryCustomImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
…endpoint-to-rest-api
Signed-off-by: Edwin Greene <[email protected]>
...rror-rest-java/src/test/java/com/hedera/mirror/restjava/common/NumberRangeParameterTest.java
Outdated
Show resolved
Hide resolved
...rror-rest-java/src/test/java/com/hedera/mirror/restjava/common/NumberRangeParameterTest.java
Outdated
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/TokenAirdropRepositoryCustomImpl.java
Outdated
Show resolved
Hide resolved
...va/src/main/java/com/hedera/mirror/restjava/repository/TokenAirdropRepositoryCustomImpl.java
Show resolved
Hide resolved
Signed-off-by: Edwin Greene <[email protected]>
Quality Gate passedIssues Measures |
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.
LGTM. I think we're missing corner case test coverage in the repository layer similar to what NftAllowanceRepositoryTest has. But probably we can figure out a way to have a common test framework for multi-column pagination in a follow up.
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.
LGTM
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.
LGTM
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.
LGTM
Description:
Adds the outstanding token airdrops endpoint to the REST API.
Related issue(s):
Fixes #8276
Notes for reviewer:
Currently only supports fungible token airdrops.
Checklist