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

Update jooq repository to improve reusability #9424

Conversation

edwin-greene
Copy link
Contributor

Description:
Updates the Bound class to include fields.
Simplifies the JooqRepository to only accept Bounds as parameters.
Updates the JooqRepository to support N-numbered conditions.

Related issue(s):

Fixes #9379

Notes for reviewer:
This should not be merged until the work for pagination for airdrop nfts is completed in #9378

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
@edwin-greene edwin-greene added enhancement Type: New feature rest-java Area: Java REST API labels Sep 20, 2024
@edwin-greene edwin-greene added this to the 0.115.0 milestone Sep 20, 2024
@edwin-greene edwin-greene self-assigned this Sep 20, 2024
@edwin-greene edwin-greene changed the title 9379 update jooq repository conditionalfieldbounds to improve reusability Update jooq repository to improve reusability Sep 20, 2024
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 5 lines in your changes missing coverage. Please review.

Project coverage is 92.35%. Comparing base (90dca10) to head (ba15842).
Report is 72 commits behind head on main.

Files with missing lines Patch % Lines
...era/mirror/restjava/repository/JooqRepository.java 93.87% 0 Missing and 3 partials ⚠️
...m/hedera/mirror/restjava/common/RangeOperator.java 0.00% 0 Missing and 1 partial ⚠️
.../hedera/mirror/restjava/common/RangeParameter.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9424      +/-   ##
============================================
- Coverage     92.68%   92.35%   -0.33%     
- Complexity     6943     7267     +324     
============================================
  Files           896      923      +27     
  Lines         29553    30608    +1055     
  Branches       3745     3893     +148     
============================================
+ Hits          27390    28269     +879     
- Misses         1399     1488      +89     
- Partials        764      851      +87     

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

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
@edwin-greene edwin-greene marked this pull request as ready for review September 26, 2024 18:22
@edwin-greene edwin-greene requested a review from a team September 26, 2024 18:22
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
@edwin-greene edwin-greene modified the milestones: 0.115.0, 0.116.0 Oct 1, 2024
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
xin-hedera
xin-hedera previously approved these changes Oct 8, 2024
Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Edwin Greene <edwin@swirldslabs.com>
Copy link

sonarcloud bot commented Oct 8, 2024

@edwin-greene edwin-greene merged commit 75dc606 into main Oct 8, 2024
33 checks passed
@edwin-greene edwin-greene deleted the 9379-update-jooq-repository-conditionalfieldbounds-to-improve-reusability branch October 8, 2024 16:54
edwin-greene added a commit that referenced this pull request Oct 8, 2024
* Update jooqRepository and simplify conditionals

Signed-off-by: Edwin Greene <edwin@hashgraph.com>
(cherry picked from commit 75dc606)
edwin-greene added a commit that referenced this pull request Oct 8, 2024
Update jooq repository to improve reusability (#9424)

Signed-off-by: Edwin Greene <edwin@hashgraph.com>
(cherry picked from commit 75dc606)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature rest-java Area: Java REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Jooq Repository ConditionalFieldBounds to improve reusability
3 participants