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

services/horizon: return null txmeta in api model when SKIP_TXMETA enabled #5228

Merged
merged 7 commits into from Mar 6, 2024

Conversation

sreuland
Copy link
Contributor

@sreuland sreuland commented Mar 4, 2024

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with name of package that is most changed in the PR, ex.
    services/friendbot, or all or doc if the changes are broad or impact many
    packages.

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated any docs (developer docs, .md
    files, etc... affected by this change). Take a look in the docs folder for a given service,
    like this one.

Release planning

  • I've updated the relevant CHANGELOG (here for Horizon) if
    needed with deprecations, added features, breaking changes, and DB schema changes.
  • I've decided if this PR requires a new major/minor version according to
    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

When SKIP_TXMETA is enabled the api resource model for Transaction.result_meta_xdr will be set to null.

Why

Closes #5221
prior work for eliding tx meta on SKIP_TXMETA for context - #5208

Known limitations

this will require a new horizon patch release 2.28.4
this will require a new go client sdk releast 0.16.0

To provide nullability on Transaction.result_meta_xdr, had to make breaking change on Transaction resource model, this will require propagating the nullable aspect to other SDK's to handle potential null's.

protocols/horizon/main.go Outdated Show resolved Hide resolved
@sreuland sreuland requested a review from tamirms March 4, 2024 21:17
…resource adapters instead of static dependency injection pattern
@urvisavla urvisavla merged commit 3e82931 into stellar:release-horizon-v2.28.4 Mar 6, 2024
28 checks passed
Shaptic pushed a commit to Shaptic/go that referenced this pull request Mar 12, 2024
…abled (stellar#5228)

* stellar#5221: fixed unit test for singleton usage of resourceadpater

* stellar#5221: updated changelogs on protocol and horizon

* stellar#5221: use functional composition to pass SKIP_TXMETA down to resource adapters instead of static dependency injection pattern

* stellar#5221: use empty string for result_meta_xdr and omitempty on json mapping, so field is absent from json

* stellar#5221: fixed client unit test
Shaptic pushed a commit to Shaptic/go that referenced this pull request Mar 12, 2024
…abled (stellar#5228)

* stellar#5221: fixed unit test for singleton usage of resourceadpater

* stellar#5221: updated changelogs on protocol and horizon

* stellar#5221: use functional composition to pass SKIP_TXMETA down to resource adapters instead of static dependency injection pattern

* stellar#5221: use empty string for result_meta_xdr and omitempty on json mapping, so field is absent from json

* stellar#5221: fixed client unit test
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.

None yet

4 participants