-
Notifications
You must be signed in to change notification settings - Fork 502
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
Include operation information in the ingest.Change struct #5536
Include operation information in the ingest.Change struct #5536
Conversation
ba3ad68
to
d158205
Compare
@karthikiyer56 TestLiquidityPoolDepositDetails in master/services/horizon/internal/ingest/processors/transaction_operation_wrapper_test.go is one of the unit tests that is failing on your branch. I looked into it and the reason it is failing is because the ingest.LedgerTransaction instance in the test is not complete. It is missing the transaction envelope. The test exercises a code path where GetOperationChanges() is called on the ingest.LedgerTransaction instance. It fails there because you have modified the code to include operation details into the change. The operation info is pulled from the transaction envelope (which is the right thing to do). However, because the test case does not populate the ingest.LedgerTransaction instance with a transaction envelop, the operation is not found and that causes the test not to pass. |
Yup. So, i decided to simplify the data returned in the change structure 😓 At any rate,i thought the latest changes should not cause any unit test failures anymore. I'll look into the one that is failing now. Good call-out. |
services/horizon/internal/ingest/processors/operations_processor.go
Outdated
Show resolved
Hide resolved
… parameters_test.go to configure captive core - Add flags to capture state for upgrade version in test. - Add support to skip container deletion for debugging - Add test for upgrade related changes
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! I left a couple suggestions regarding style
PR Checklist
PR Structure
otherwise).
services/friendbot
, orall
ordoc
if the changes are broad or impact manypackages.
Thoroughness
.md
files, etc... affected by this change). Take a look in the
docs
folder for a given service,like this one.
Release planning
CHANGELOG.md
within the component folder structure. For example, if I changed horizon, then I updated (services/horizon/CHANGELOG.md. I add a new line item describing the change and reference to this PR. If I don't update a CHANGELOG, I acknowledge this PR's change may not be mentioned in future release notes.semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.
What
This PR deals with this github issue - #5535
Why
Details in the associated github issue - github issue - #5535
Tl;DR:
Known limitations
These extensions to the
Change
struct do not work when the compacting change reader is used.[TODO or N/A]