-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 account_objects to disallow filtering by types that an account ca… #5056
Conversation
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.
The fix looks good as far as I'm concerned. However,
- I raised a concern about how test failures will be handled, and suggested how I would resolve it. But I'm open to other thoughts.
- I also raised a concern about lambda naming (in general) in the test file.
I pushed commits with my suggested fixes to this branch: https://github.com/scottschurr/rippled/commits/yinyiqian1-br_fix_invalid_type/
- My suggestions for improving test failure messages are in commit ad508ff
- My suggestions for renaming the lambdas are in this commit: b419bd0
You are welcome to look at, cherry-pick, or ignore those commits as you wish. But at the very least I hope for some discussion.
Thanks for the contribution!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5056 +/- ##
=========================================
- Coverage 71.4% 71.3% -0.0%
=========================================
Files 796 796
Lines 67031 67039 +8
Branches 10865 10886 +21
=========================================
- Hits 47830 47810 -20
- Misses 19201 19229 +28
|
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.
Looks great to me. Thanks for being willing to take on the drive-by naming fix! In my opinion things like that can help reduce bit rot in the code base.
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.
👍
* `account_objects` returns an invalid field error if `type` is not supported. This includes objects an account can't own, or which are unsupported by `account_objects` * Includes: * Amendments * Directory Node * Fee Settings * Ledger Hashes * Negative UNL
fix #4681
High Level Overview of Change
Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)