Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Conversation

@adinapoli-iohk
Copy link
Contributor

@adinapoli-iohk adinapoli-iohk commented Aug 28, 2018

Description

This PR wires the getInfo with some real logic allowing us to fully implement /api/v1/node-info using the new data layer.

Linked issue

https://iohk.myjetbrains.com/youtrack/issue/CBR-246

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

screen shot 2018-08-28 at 13 08 49

@adinapoli-iohk adinapoli-iohk requested a review from edsko August 28, 2018 11:10
Copy link
Contributor

@edsko edsko left a comment

Choose a reason for hiding this comment

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

LGTM. Minor correction on dealing with core.

, ConnectedPeers(..)

-- * Lenses
, ncLastKnownHeader_L
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to export this. Just use lensOf, following the same pattern as the other HasLens instances.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason it didn't work out of the box. Let me try.

Copy link
Contributor

@edsko edsko left a comment

Choose a reason for hiding this comment

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

LGTM :)

@adinapoli-iohk adinapoli-iohk merged commit 8a84111 into develop Aug 28, 2018
@adinapoli-iohk adinapoli-iohk deleted the adinapoli/feature/cbr-246-hook-sync-progress-to-info-api branch August 28, 2018 15:42
KtorZ pushed a commit that referenced this pull request Nov 9, 2018
…46-hook-sync-progress-to-info-api

[CBR-246] Implement getInfo with the new data layer
KtorZ pushed a commit to input-output-hk/cardano-wallet-legacy that referenced this pull request Nov 9, 2018
…hk/adinapoli/feature/cbr-246-hook-sync-progress-to-info-api

[CBR-246] Implement getInfo with the new data layer
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants