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

Ledger entry type filter for account_objects and ledger_data #1116

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

cindyyan317
Copy link
Collaborator

@cindyyan317 cindyyan317 commented Jan 16, 2024

Refactor the ledger entry type filter for account_objects and ledger_data.
Both handlers will use the LedgerUtils functions.
Unlike transaction type, the ledger entry string which is used by filter is not exported from xrpl.
To support new ledger entry type , we need to update the LEDGER_TYPES_MAP.

@cindyyan317 cindyyan317 marked this pull request as draft January 16, 2024 13:29
@cindyyan317 cindyyan317 changed the title Ledger entry type filter for account Ledger entry type filter for account_objects and ledger_data Jan 16, 2024
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (12bbed1) 59.68% compared to head (2eeea58) 59.74%.

Files Patch % Lines
src/util/LedgerUtils.cpp 91.66% 0 Missing and 2 partials ⚠️
src/rpc/handlers/AccountObjects.h 50.00% 0 Missing and 1 partial ⚠️
src/rpc/handlers/LedgerData.h 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1116      +/-   ##
===========================================
+ Coverage    59.68%   59.74%   +0.05%     
===========================================
  Files          207      208       +1     
  Lines        10478    10493      +15     
  Branches      5584     5589       +5     
===========================================
+ Hits          6254     6269      +15     
+ Misses        2637     2635       -2     
- Partials      1587     1589       +2     

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

@cindyyan317 cindyyan317 marked this pull request as ready for review January 16, 2024 16:52
@cindyyan317 cindyyan317 requested review from kuznetsss and godexsoft and removed request for kuznetsss January 16, 2024 16:52
Copy link
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

Few small things, otherwise it's good 👍

src/util/LedgerUtils.cpp Outdated Show resolved Hide resolved
unittests/util/TestGlobals.h Outdated Show resolved Hide resolved
@cindyyan317 cindyyan317 requested a review from godexsoft January 17, 2024 16:46
Rename

fix clang-tidy

fix compilation error

Fix comments
Copy link
Collaborator

@godexsoft godexsoft 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! 👍

@cindyyan317 cindyyan317 merged commit 28c8fa2 into XRPLF:develop Jan 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants