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

Feature flag to allow null ledger data in responses #672

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Sep 19, 2018

This PR is a quickfix for #650 (and #538, #649). It introduces a new feature flag ALLOW_EMPTY_LEDGER_DATA_RESPONSES (default: false). When set to true it renders unavailable ledger data (like close_time) as null instead of sending 500 Internal Server Error response. This is not a breaking change as the default value is false. It can be released in 0.14.1 patch release.

@bartekn bartekn added this to the Horizon v0.14.x - patch releases milestone Sep 19, 2018
nikhilsaraf
nikhilsaraf previously approved these changes Sep 19, 2018
Copy link
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @bartekn !

@bartekn
Copy link
Contributor Author

bartekn commented Sep 19, 2018

Had to rebase because of the conflict. Thanks for 2nd 👍 .

@bartekn bartekn merged commit 7610793 into master Sep 19, 2018
@bartekn bartekn deleted the allow-empty-ledger-data-responses-feature-flag branch September 19, 2018 15:05
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