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: captured and added FileInfo query costs to metrics and hbar ratelimit class #2822

Conversation

quiet-node
Copy link
Member

Description:
captured and added FileInfo query costs to metrics and hbar ratelimit class

Related issue(s):

Fixes #2738

Notes for reviewer:

Checklist

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

… limit class

Signed-off-by: Logan Nguyen <[email protected]>

Revert "fix: captured and added FileInfo query costs to metrics and hbar rate limit class"

This reverts commit 3fe8bd80de5763b9d2803a0bb0e426f7c8ed2228.

Reapply "fix: captured and added FileInfo query costs to metrics and hbar rate limit class"

This reverts commit 8037a7a3baae152d18339e1589ddca37e12bd665.

s

Signed-off-by: Logan Nguyen <[email protected]>
@quiet-node quiet-node added the enhancement New feature or request label Aug 13, 2024
@quiet-node quiet-node added this to the 0.55.0 milestone Aug 13, 2024
@quiet-node quiet-node self-assigned this Aug 13, 2024
Copy link

sonarcloud bot commented Aug 13, 2024

Copy link

github-actions bot commented Aug 13, 2024

Acceptance Tests

  18 files  220 suites   28m 24s ⏱️
613 tests 607 ✔️ 4 💤 2
651 runs  645 ✔️ 4 💤 2

Results for commit 1e880f5.

♻️ This comment has been updated with latest results.

Copy link

Tests

       3 files     201 suites   54s ⏱️
1 005 tests 1 004 ✔️ 1 💤 0
1 018 runs  1 017 ✔️ 1 💤 0

Results for commit 1e880f5.

Copy link
Contributor

@acuarica acuarica left a comment

Choose a reason for hiding this comment

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

lg

Copy link
Collaborator

@ebadiere ebadiere left a comment

Choose a reason for hiding this comment

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

Good work. One nit and a code coverage warning. Can that be covered by a test?

@quiet-node
Copy link
Member Author

Good work. One nit and a code coverage warning. Can that be covered by a test?

The additional code was added to pretty much modify the code layout, but the overall flow remains unchanged. There are already acceptance and unit tests for that. I believe the warning is sort of based on only to the newly added code.

@ebadiere ebadiere self-requested a review August 14, 2024 21:23
@quiet-node quiet-node merged commit 59a808d into main Aug 14, 2024
39 of 41 checks passed
@quiet-node quiet-node deleted the 2738-capture-and-add-fileinfo-query-costs-to-metrics-and-hbar-rate-limiter-class-II branch August 14, 2024 21:24
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

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

Project coverage is 81.29%. Comparing base (7de2c45) to head (1e880f5).
Report is 5 commits behind head on main.

Files Patch % Lines
packages/relay/src/lib/clients/sdkClient.ts 80.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2822      +/-   ##
==========================================
+ Coverage   81.12%   81.29%   +0.17%     
==========================================
  Files          46       46              
  Lines        3386     3385       -1     
  Branches      707      706       -1     
==========================================
+ Hits         2747     2752       +5     
+ Misses        418      408      -10     
- Partials      221      225       +4     
Flag Coverage Δ
relay 80.95% <80.00%> (+0.21%) ⬆️
server 81.53% <ø> (ø)
ws-server 97.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/relay/src/lib/clients/sdkClient.ts 57.25% <80.00%> (+2.17%) ⬆️

ebadiere pushed a commit that referenced this pull request Aug 21, 2024
…limit class (#2822)

fix: captured and added FileInfo query costs to metrics and hbar rate limit class



Revert "fix: captured and added FileInfo query costs to metrics and hbar rate limit class"

This reverts commit 3fe8bd80de5763b9d2803a0bb0e426f7c8ed2228.

Reapply "fix: captured and added FileInfo query costs to metrics and hbar rate limit class"

This reverts commit 8037a7a3baae152d18339e1589ddca37e12bd665.

s

Signed-off-by: Logan Nguyen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capture and add FileInfo query costs to metrics and hbar rate limiter class
3 participants