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 restjava topics info endpoint ingress path regex #9670

Conversation

xin-hedera
Copy link
Collaborator

@xin-hedera xin-hedera commented Oct 28, 2024

Description:
This PR fixes the ingress path regex for restjava topics info endpoint

  • Add $ at the end

Related issue(s):

Fixes #9669

Notes for reviewer:

Ideally, we should use ^/api/v1/topics/(\d+\.){0,2}\d+$, so traefik matches using PathRegexp(``^/api/v1/topics/(\d+\.){0,2}\d+$``). However, k8s ingress spec mandates path begins with /.

The change has been manually applied to previewnet:

https://previewnet.mirrornode.hedera.com/api/v1/topics/0.0.3886/messages
https://previewnet.mirrornode.hedera.com/api/v1/topics/0.0.3886/messages/100

Checklist

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

@xin-hedera xin-hedera added this to the 0.117.0 milestone Oct 28, 2024
@xin-hedera xin-hedera requested a review from a team October 28, 2024 14:50
@xin-hedera xin-hedera self-assigned this Oct 28, 2024
@xin-hedera xin-hedera added bug Type: Something isn't working regression rest Area: REST API labels Oct 28, 2024
@xin-hedera xin-hedera marked this pull request as ready for review October 28, 2024 14:50
Copy link

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.36%. Comparing base (41c3ac6) to head (6a8e30e).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9670      +/-   ##
============================================
+ Coverage     92.21%   92.36%   +0.14%     
+ Complexity     7609     7505     -104     
============================================
  Files           932      910      -22     
  Lines         31940    31538     -402     
  Branches       4029     3987      -42     
============================================
- Hits          29455    29131     -324     
+ Misses         1535     1465      -70     
+ Partials        950      942       -8     

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

Copy link
Contributor

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

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

Looks good

@xin-hedera xin-hedera merged commit 1dc2e0b into main Oct 28, 2024
35 checks passed
@xin-hedera xin-hedera deleted the 9669-issue-to-retrieve-hcs-messages-from-topics-using-the-sequence-number branch October 28, 2024 15:34
xin-hedera added a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working regression rest Area: REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue to retrieve HCS messages from topics using the sequence number
3 participants